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

VIVO-4020 Order user accounts by last login time in descending order #492

Merged
merged 3 commits into from
Mar 6, 2025

Conversation

litvinovg
Copy link
Member

VIVO GitHub issue

  • Other Relevant Links (Mailing list discussion, related pull requests, etc.)

What does this pull request do?

Changes default default sorting field to last login time.
Changes default order to descending.

How should this be tested?

  • Reproduce the problem in the issue
  • Verify that by default user accounts are sorted by last login time in descending order.

Interested parties

@hauschke @vivo-project/vivo-committers

Reviewers' expertise

Candidates for reviewing this PR should have some of the following expertises:

  1. Java

Reviewers' report template

General comment

A reviewer should provide here comments and suggestions for requested changes if any.

Testing

A reviewer should briefly describe here how it was tested

Code reviewing

A reviewer should briefly describe here which part was code reviewed

@chenejac chenejac self-requested a review March 5, 2025 09:58
@@ -33,6 +32,9 @@ public class UserAccountsSelectorTest extends AbstractTestClass {

private static final String NS_MINE = "http://vivo.mydomain.edu/individual/";

private static final UserAccountsOrdering DEFAULT_ORDERING = new UserAccountsOrdering(
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest to change name of this static attribute to ACCOUNTS_ORDERING. It is not default ordering anymore (it is now last login, descending).

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@chenejac chenejac merged commit 7bccc5f into vivo-project:main Mar 6, 2025
1 check passed
@hauschke
Copy link
Member

hauschke commented Mar 6, 2025

Thanks a lot! A tiny change, but it is/was a really annoying thing to always reorder that page. 👍

ivanmrsulja pushed a commit to ivanmrsulja/Vitro that referenced this pull request Apr 1, 2025
…ivo-project#492)

* Order user accounts by last login time in descending order

* fixed tests

* Renamed ordering attribute in user accounts selector test
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.

Default sorting after last login for user account page in SiteAdmin
3 participants