Skip to content
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

FIX: review queue scrolling is not working after take an action. #16346

Merged
merged 1 commit into from Apr 4, 2022

Conversation

vinothkannans
Copy link
Member

reject method for Reviewable model is returning an array. So if we use this.set method to update reviewables attribute in controller then it replaces the model with an array of objects wrongly. This is now fixed by using the setObjects method of the model.

`reject` method for `Reviewable` model is returning an array. So if we use `this.set` method to update `reviewables` attribute in controller then it replaces the model with an array of objects wrongly. This is now fixed by using the `setObjects` method of the model.
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/review-queue-pagination-infinite-scrolling-after-taking-an-action/153178/10

Copy link
Contributor

@CvX CvX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I hear it's a good form to ask if it's possible to add a test 😉)

@vinothkannans
Copy link
Member Author

vinothkannans commented Apr 1, 2022

@CvX for that, we should add 10 more reviewable items at least. Since the problem is occurring only when scrolling to the 11th item. I thought we don't need a big change in tests for this small fix. Let me know if you like to add.

@vinothkannans vinothkannans merged commit 415c4fa into main Apr 4, 2022
@vinothkannans vinothkannans deleted the fix-reviewable-scroll branch April 4, 2022 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants