-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
re #1633: finish preprint->repository refactor for searching preprints #1763
Conversation
hardyoyo
commented
Aug 10, 2020
- use correct object models throughout
- tweak search form to use a name for the search_term input
- tweak list page to indicate the search_term if it's present
…ng preprints - use correct object models throughout - tweak search form to use a name for the search_term input - tweak list page to indicate the search_term if it's present
src/repository/views.py
Outdated
authors__in=from_author, | ||
stage=submission_models.STAGE_PREPRINT_PUBLISHED, | ||
date_published__lte=timezone.now())] | ||
# preprints_from_author = [preprint for preprint in models.Preprint.objects.filter( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops... I forgot that I'd commented the author and institution search to get this working... that remains to be done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'm in over my head with this... I can't seem to make progress on searching by author name or institution... we may want to defer that functionality for a future ticket?
I'll take a look the AM.
…On Mon, 10 Aug 2020, 23:48 Hardy Pottinger, ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/repository/views.py
<#1763 (comment)>:
>
- articles_from_author = [article for article in submission_models.Article.preprints.filter(
- authors__in=from_author,
- stage=submission_models.STAGE_PREPRINT_PUBLISHED,
- date_published__lte=timezone.now())]
+ # preprints_from_author = [preprint for preprint in models.Preprint.objects.filter(
I think I'm in over my head with this... I can't seem to make progress on
searching by author name or institution... we may want to defer that
functionality for a future ticket?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1763 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB7PSYTZUF4ZLSJOH7XT6LTSAB2KHANCNFSM4P2GXRSA>
.
|
… results, yet, but doesn't error
…ll doesn't return matches on author names
…om_author filter, still doesn't work, but is more correct than pk, keeping it, also reworded a comment to make it more correct
superseded by #1766, closing this |