-
Notifications
You must be signed in to change notification settings - Fork 555
feat: Add Speakers Section #1606
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 Speakers Section #1606
Conversation
1fcfead to
c076d7c
Compare
c076d7c to
1e4031f
Compare
|
@iamareebjamal @liveHarshit please review |
liveHarshit
left a comment
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.
IMO, no need to store in offline database
|
This can be stored |
|
We'll be a needing a speakerswithevent table |
|
Because same speaker can be in two different events and it will make things complicated |
|
It won't |
aggarwalpulkit596
left a comment
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.
It won't
@iamareebjamal so should i use the table i created or make it work like event-topic
app/src/main/java/org/fossasia/openevent/general/speakers/SpeakerWithEvent.kt
Show resolved
Hide resolved
efc88ad to
f8a13e7
Compare
|
I tried to save information in a 3rd table and accordingly get back result as list of live data instead of flowable list i was able to save them but couldn't figure how to return that saved data |
app/src/main/java/org/fossasia/openevent/general/event/EventService.kt
Outdated
Show resolved
Hide resolved
|
Will take a look |
|
@iamareebjamal any update ? |
f8a13e7 to
df0c165
Compare
|
@liveHarshit please review now |
|
@liveHarshit review this one as well |
|
lgtm |
app/src/main/java/org/fossasia/openevent/general/speakers/Speaker.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/fossasia/openevent/general/speakers/Speaker.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/fossasia/openevent/general/speakers/Speaker.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/fossasia/openevent/general/speakers/Speaker.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/fossasia/openevent/general/speakers/SpeakerDao.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/fossasia/openevent/general/speakers/SpeakerDao.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/fossasia/openevent/general/speakers/SpeakerWithEventDao.kt
Outdated
Show resolved
Hide resolved
9aeb6ce to
aa0735b
Compare
app/src/main/java/org/fossasia/openevent/general/event/EventDetailsViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/fossasia/openevent/general/event/EventDetailsViewModel.kt
Show resolved
Hide resolved
aa0735b to
86eb5e6
Compare
|
@iamareebjamal updated |
app/src/main/java/org/fossasia/openevent/general/event/EventDetailsViewModel.kt
Outdated
Show resolved
Hide resolved
86eb5e6 to
cfcbb25
Compare
cfcbb25 to
2f291c7
Compare
app/src/main/java/org/fossasia/openevent/general/event/EventDetailsViewModel.kt
Show resolved
Hide resolved
2f291c7 to
4ad61c3
Compare
app/src/main/java/org/fossasia/openevent/general/event/EventDetailsViewModel.kt
Show resolved
Hide resolved
4ad61c3 to
7fd306c
Compare
|
Everything working as expected? |
|
@iamareebjamal yup |
| } | ||
|
|
||
| fun loadEventSpeakers(id: Long): LiveData<List<Speaker>> { | ||
| val speakerList = speakerService.fetchSpeakersFromDb(id) |
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.
Store this in the ViewModel. What use is this variable, you're just returning it
nikit19
left a comment
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.
Rest looks good
app/src/main/java/org/fossasia/openevent/general/speakers/SpeakerService.kt
Show resolved
Hide resolved
2a8bffe to
e0ad13b
Compare
|
@iamareebjamal updated |
|
@nikit19 please review now |
|
schema JSON is not updated |
e0ad13b to
44000c2
Compare
|
@iamareebjamal updated JSON Schema and resolved conflicts |
Fixes #1604
Changes:Added Speakers section in Event Details
[WIP]Add a speaker page
Screenshots for the change:
