-
Notifications
You must be signed in to change notification settings - Fork 553
feat: add event types for search #1521
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
feat: add event types for search #1521
Conversation
3eb8cd6
to
fb13f09
Compare
@liveHarshit please review i'm not able to show results in the list view but the api call is happening you might find something |
Why you are using offline database? |
What is the API response? |
@liveHarshit api response is the list of all event types |
@liveHarshit sorry i didn't get that |
@liveHarshit https://open-event-api-dev.herokuapp.com/v1/event-types?sort=name this is response to be precise |
For Dao file |
But on what basis you are shorting events. Replace name with the sorting parameter. |
@liveHarshit we dont to fetch the event type every time and i've implemented it similar to eventbrite |
@liveHarshit in this api call i just want list of all the event types so that user can select from one of them |
The user should select event type first, then call API for sorting events accordingly. |
else | ||
eventTypesApi.getEventTypes() | ||
.map { | ||
eventTypesDao.insertEventTypes(it) |
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.
Don't insert these into DB, let them be fetched from network every time
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.
@iamareebjamal okay will revert this
fb13f09
to
dfffcab
Compare
@iamareebjamal @liveHarshit review |
dfffcab
to
90ef0aa
Compare
@iamareebjamal I'm having trouble understanding the query part for loading event can you help me out there rest all is implemented just i need to add event param to search query |
I don't understand? |
ad37433
to
e007ca9
Compare
@liveHarshit @iamareebjamal please review |
@iamareebjamal any update ? |
app/src/main/java/org/fossasia/openevent/general/event/EventService.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/fossasia/openevent/general/search/SearchFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/fossasia/openevent/general/search/SearchTypeFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/fossasia/openevent/general/search/SearchTypeViewModel.kt
Show resolved
Hide resolved
db28c72
to
5e32268
Compare
5e32268
to
3e273c8
Compare
Fixes #1519
Changes: Add filtering using event types
Screenshots for the change:
