-
Notifications
You must be signed in to change notification settings - Fork 34
Search by catalog number in user's collection: add the simplest implementation #1098
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
Comments
I looked at the model SeriesInfoDto which is returned by the repository. We have an Id attribute in there.
|
Whoops, I meant
|
|
Ok. This means we need to iterate over records and call the api for each
record.
Collect the matching elements and send in the response.
Do we have a batch API to check the series id?
Thanks
…On Tue 23 Jul, 2019, 2:14 PM Slava Semushin, ***@***.***> wrote:
How do we know about the Series in a User collection?
CollectionService.isSeriesInCollection() method should help us -- we
provide a user and a series and it gives an answer to the question "whether
this series in a collection of this user".
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#1098?email_source=notifications&email_token=AAJPE6AW77GPKR3R4WOD6QDQA3AGTA5CNFSM4IF4DKYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SMIQY#issuecomment-514114627>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJPE6F6J42YUPGQ6UOILH3QA3AGTANCNFSM4IF4DKYA>
.
|
Yes, that's correct.
Not yet. Could be added in one of the iterations later. At this point, we'll check one by one. |
…ollection Part of php-coder#673 Fix php-coder#1098
…ollection Part of php-coder#673 Fix php-coder#1098
…ollection Part of php-coder#673 Fix php-coder#1098
…ollection Part of php-coder#673 Fix php-coder#1098
…ollection Part of php-coder#673 Fix php-coder#1098
…ollection Part of php-coder#673 Fix php-coder#1098
…ollection Part of php-coder#673 Fix php-coder#1098
…alog number in user's collection. Part of php-coder#673 Fix php-coder#1098
…alog number in user's collection. Part of php-coder#673 Fix php-coder#1098
…alog number in user's collection. Part of php-coder#673 Fix php-coder#1098
@php-coder the puzzle #1101 is still not solved. |
Here is the simplest implementation that even doesn't introduce new methods:
SeriesController.searchSeriesByCatalog()
method to do the following:switch
) but right before passing the results to a view (model.addAttribute()
)CollectionService.isSeriesInCollection()
)Yeah, this is kind of ugly, use extra memory, leads to N+1 query to database but it's fastest approach to implement without adding a lot of code.
This is part of #673
The text was updated successfully, but these errors were encountered: