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

Sort prs by added date #15

Merged
merged 5 commits into from
Oct 4, 2019
Merged

Sort prs by added date #15

merged 5 commits into from
Oct 4, 2019

Conversation

m-akinc
Copy link
Collaborator

@m-akinc m-akinc commented Oct 2, 2019

Before separating PR dashboard rows into different buckets (e.g. Drafts, Approved, etc), set their relative order based on when the user was (most recently) added to the review.

The most direct way I know of to get that information is by looking for the comment thread that announces when a reviewer is added to the PR. We were already querying the threads for PRs that the user had approved (in order to check for "notable activity"), but now we have to do this for all PRs the user is on. That will result in a performance hit, but it should be acceptable.

Copy link
Owner

@alejandro5042 alejandro5042 left a comment

Choose a reason for hiding this comment

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

Overall, awesome. Few pieces of feedback to address.

src/azdo-pr-dashboard.user.js Show resolved Hide resolved
src/azdo-pr-dashboard.user.js Outdated Show resolved Hide resolved
src/azdo-pr-dashboard.user.js Show resolved Hide resolved
Copy link
Owner

@alejandro5042 alejandro5042 left a comment

Choose a reason for hiding this comment

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

With suggestions.

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

Successfully merging this pull request may close these issues.

None yet

2 participants