Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

fix: pagination behaviour of user active threads API [BD-38] - #389

Merged
asadazam93 merged 1 commit into
masterfrom
kshitij/fix-unread-pagination
Nov 8, 2022
Merged

fix: pagination behaviour of user active threads API [BD-38]#389
asadazam93 merged 1 commit into
masterfrom
kshitij/fix-unread-pagination

Conversation

@xitij2000

Copy link
Copy Markdown
Contributor

When using the default user_activity filter for the active threads API, the
pagination and sorting happens in Ruby instead of MongoDB. In addition, when
using the unread filter, the pagination mechanism is different. This code
introduces a fix for when they are both used together.

@openedx-webhooks openedx-webhooks added the blended PR is managed through 2U's blended developmnt program label Sep 9, 2022
@openedx-webhooks

Copy link
Copy Markdown

Thanks for the pull request, @xitij2000!

When this pull request is ready, tag your edX technical lead.

Comment thread api/users.rb

@kaustavb12 kaustavb12 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

  • I tested this: I tested the expected behaviour of the API
  • I read through the code
  • I checked for accessibility issues
  • Includes documentation
  • I made sure any change in configuration variables is reflected in the corresponding client's configuration-secure repository.

@mtyaka

mtyaka commented Sep 16, 2022

Copy link
Copy Markdown
Contributor

👍

  • I read through the code
  • I checked for accessibility issues
  • Includes documentation

@asadazam93

Copy link
Copy Markdown
Contributor

@xitij2000 can you please rebase this?

When using the default `user_activity` filter for the active threads API, the
pagination and sorting happens in Ruby instead of MongoDB. In addition, when
using the unread filter, the pagination mechanism is different. This code
introduces a fix for when they are both used together.
@xitij2000
xitij2000 force-pushed the kshitij/fix-unread-pagination branch from 12cbcac to 5f227e1 Compare November 7, 2022 11:10
@asadazam93
asadazam93 merged commit 1a2d712 into master Nov 8, 2022
@asadazam93
asadazam93 deleted the kshitij/fix-unread-pagination branch November 8, 2022 10:33
@openedx-webhooks

Copy link
Copy Markdown

@xitij2000 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

blended PR is managed through 2U's blended developmnt program

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants