-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: introduce new columns for session ratings & switch to ember table #3198
Conversation
6037cc3
to
80586db
Compare
80586db
to
203bad0
Compare
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.
@shreyanshdwivedi read through ember docs ... don't reinvent the wheel
@shreyanshdwivedi Status? |
Been busy with more pressing bugs. Will work on it once they are resolved. |
203bad0
to
936e5ba
Compare
936e5ba
to
7765d38
Compare
I've added the final gif to the PR description. Please review |
There is a bug in this implementation. When I rate a session the refresh isn't working properly. It is recorded to the server but the rows aren't loaded and so when I rate it again, the FE is sending to create a session rather than updating it so new instance is created on server. @niranjan94 what could be the problem here? |
9dc4574
to
e1b4896
Compare
@shreyanshdwivedi Try triggering ‘RefreshRoute’ action after the ratings input is taken. |
bd2c2f8
to
e26dea0
Compare
@kushthedude in today's meeting, @CosmicCoder96 told that this issue is persistent in almost every table we are using for now. He'll handle this in another PR |
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.
@shreyanshdwivedi Sorting is not working, I suggest making the change or leave the sorting for now, As Sessions Table
is broke on production now due to Ember Table in Speakers
and Model Table in Sessions
.
So let's make this PR merge asap.
@shreyanshdwivedi Are the missing columns expected? |
@kushthedude they are appearing for me. Can you try by clicking on |
@shreyanshdwivedi I did it, Its strange when I refresh the page |
@kushthedude I tested this and encountered this earlier but to fix it I introduced new cell-name.hbs template |
@shreyanshdwivedi One more thing, When I refresh the page at |
e26dea0
to
c89f833
Compare
@CosmicCoder96 please have a look now. There are a few glitches but it exist in all the tables for now. Can we move ahead with this PR as it blocks one of the enhancement? |
add ratedSessions to controllers update ratedSessions and remove extra vars introduce ember-table and es6 update template and session table updates route and helper
c89f833
to
e0757f4
Compare
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.
Get it peer reviewed first. Then you can merge it.
@uds5501 @mrsaicharan1 @kushthedude please review this. We need to move forward with this PR for further enhancement so review this on priority please. |
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 this will do. LGTM. Let's continue with the other parts ASAP
Fixes #3195
Short description of what this resolves:
Adds columns -
| Rating | Avg Rating | No. of ratings |
Changes proposed in this pull request:
updateRating
functionAvg Rating
andNo. of ratings
Checklist
development
branch.