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

feat: add ability to sort by last login #45249

Merged
merged 25 commits into from
Jul 9, 2024

Conversation

yemkareems
Copy link
Contributor

@yemkareems yemkareems commented May 10, 2024

  • Resolves: #

Summary

TODO

  • ...

Checklist

@yemkareems yemkareems added the 3. to review Waiting for reviews label May 10, 2024
@yemkareems yemkareems self-assigned this May 10, 2024
@yemkareems yemkareems added this to the Nextcloud 30 milestone May 10, 2024
@kesselb kesselb added 2. developing Work in progress and removed 3. to review Waiting for reviews labels May 11, 2024
lib/public/IUserManager.php Outdated Show resolved Hide resolved
lib/private/User/Database.php Outdated Show resolved Hide resolved
lib/private/User/Database.php Outdated Show resolved Hide resolved
lib/private/User/Manager.php Outdated Show resolved Hide resolved
lib/private/User/Manager.php Outdated Show resolved Hide resolved
@Pytal Pytal mentioned this pull request May 24, 2024
4 tasks
@yemkareems yemkareems force-pushed the feature/add-ability-to-sort-by-last-login branch from fdba92d to 0de617e Compare June 26, 2024 07:44
@yemkareems yemkareems requested review from kesselb and Pytal June 26, 2024 08:06
@yemkareems yemkareems added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jun 26, 2024
@yemkareems yemkareems requested a review from come-nc July 2, 2024 04:48
apps/provisioning_api/lib/Controller/UsersController.php Outdated Show resolved Hide resolved
apps/provisioning_api/lib/Controller/UsersController.php Outdated Show resolved Hide resolved
lib/private/AllConfig.php Outdated Show resolved Hide resolved
lib/private/User/Manager.php Outdated Show resolved Hide resolved
lib/public/IConfig.php Outdated Show resolved Hide resolved
apps/provisioning_api/lib/Controller/UsersController.php Outdated Show resolved Hide resolved
@yemkareems yemkareems requested a review from come-nc July 4, 2024 07:43
apps/provisioning_api/lib/Controller/UsersController.php Outdated Show resolved Hide resolved
apps/provisioning_api/lib/Controller/UsersController.php Outdated Show resolved Hide resolved
lib/private/AllConfig.php Outdated Show resolved Hide resolved
lib/private/AllConfig.php Outdated Show resolved Hide resolved
lib/private/User/Manager.php Outdated Show resolved Hide resolved
lib/private/AllConfig.php Outdated Show resolved Hide resolved
lib/private/AllConfig.php Outdated Show resolved Hide resolved
lib/private/AllConfig.php Outdated Show resolved Hide resolved
lib/private/AllConfig.php Outdated Show resolved Hide resolved
lib/private/AllConfig.php Outdated Show resolved Hide resolved
lib/public/IConfig.php Outdated Show resolved Hide resolved
@yemkareems yemkareems requested a review from come-nc July 4, 2024 12:31
lib/private/AllConfig.php Fixed Show fixed Hide fixed
…rder is lastLogin DESC

Signed-off-by: yemkareems <yemkareems@gmail.com>
Signed-off-by: yemkareems <yemkareems@gmail.com>
… uid asc. enable email search by changing query

Signed-off-by: yemkareems <yemkareems@gmail.com>
fix: added a new endpoint users/recent and getting users based on last login info in the same. Reverted old code that was breaking LDAP

Signed-off-by: yemkareems <yemkareems@gmail.com>
Signed-off-by: yemkareems <yemkareems@gmail.com>
…s sort and order are not required here

Signed-off-by: yemkareems <yemkareems@gmail.com>
…s sort and order are not required here

Signed-off-by: yemkareems <yemkareems@gmail.com>
Signed-off-by: yemkareems <yemkareems@gmail.com>
Signed-off-by: yemkareems <yemkareems@gmail.com>
…by lastLogin

Signed-off-by: yemkareems <yemkareems@gmail.com>
Signed-off-by: yemkareems <yemkareems@gmail.com>
…as per getDisplayNames function. limit and offset added to query. default limit set to 25.

Signed-off-by: yemkareems <yemkareems@gmail.com>
…hed or if limit is given limit number of users are fetched

Signed-off-by: yemkareems <yemkareems@gmail.com>
…. removed getUsersSortedByLastLogin from Manager and instead used the config in controller

Signed-off-by: yemkareems <yemkareems@gmail.com>
… login

Signed-off-by: yemkareems <yemkareems@gmail.com>
… available

Signed-off-by: yemkareems <yemkareems@gmail.com>
Signed-off-by: yemkareems <yemkareems@gmail.com>
Signed-off-by: yemkareems <yemkareems@gmail.com>
Signed-off-by: yemkareems <yemkareems@gmail.com>
Signed-off-by: yemkareems <yemkareems@gmail.com>
Signed-off-by: yemkareems <yemkareems@gmail.com>
…r/Manager

Signed-off-by: yemkareems <yemkareems@gmail.com>
@yemkareems yemkareems force-pushed the feature/add-ability-to-sort-by-last-login branch from dd27c57 to 4eba967 Compare July 8, 2024 10:12
Signed-off-by: provokateurin <kate@provokateurin.de>
@yemkareems yemkareems merged commit f727040 into master Jul 9, 2024
165 checks passed
@yemkareems yemkareems deleted the feature/add-ability-to-sort-by-last-login branch July 9, 2024 07:45
* @return list<string> list of user IDs
* @since 30.0.0
*/
public function getLastLoggedInUsers(?int $limit = null, int $offset = 0, string $search = ''): array;
Copy link
Member

@nickvergessen nickvergessen Jul 18, 2024

Choose a reason for hiding this comment

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

@nickvergessen nickvergessen added the pending documentation This pull request needs an associated documentation update label Jul 18, 2024
@blizzz blizzz mentioned this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews pending documentation This pull request needs an associated documentation update 🍂 2024-Autumn
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants