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: group activity's mentions infinite loading #27070

Merged
merged 1 commit into from
May 17, 2024

Conversation

ZogStriP
Copy link
Member

In 07ecbb5 we ensure the mentions in a group's activity page worked properly but we missed adding proper support for infinite loading.

The client is using the before parameter instead of the before_post_id to do the pagination.

This adds support for before as well as some tests to ensure it doesn't regress.

I also added tests to the group's activity posts as well since those were missing.

Finally I deleted some unused code (group.messages_for) which is not used anymore.

Context - https://meta.discourse.org/t/-/308044/9

In 07ecbb5 we ensure the mentions in a group's activity page worked properly but we missed adding proper support for infinite loading.

The client is using the `before` parameter instead of the `before_post_id` to do the pagination.

This adds support for `before` as well as some tests to ensure it doesn't regress.

I also added tests to the group's activity posts as well since those were missing.

Finally I deleted some unused code (`group.messages_for`) which is not used anymore.

Context - https://meta.discourse.org/t/-/308044/9
@discoursebot
Copy link

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

https://meta.discourse.org/t/viewing-mentions-at-groups-activity-page-is-broken/308044/10

@ZogStriP ZogStriP merged commit bf80688 into main May 17, 2024
16 checks passed
@ZogStriP ZogStriP deleted the fix-group-activity-mentions-infinite-loading branch May 17, 2024 22:26
@discoursebot
Copy link

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

https://meta.discourse.org/t/daily-summary-5am-utc/291851/125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants