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(users): improve recently active search #48559

Merged
merged 3 commits into from
Oct 30, 2024
Merged

Conversation

Altahrim
Copy link
Collaborator

@Altahrim Altahrim commented Oct 3, 2024

Summary

  • Remove DISTINCT clause to fix PgSQL
  • Use data from users only if necessary (search)
  • Don't show people who never connected in active list
  • Add test
  • Add hard limit on list (100 users max)

TODO

  • badge still count all users instead of actives ones

Checklist

@Altahrim Altahrim self-assigned this Oct 3, 2024
@Altahrim Altahrim added bug 2. developing Work in progress labels Oct 3, 2024
@Altahrim
Copy link
Collaborator Author

Altahrim commented Oct 3, 2024

/backport to stable30

@Altahrim Altahrim requested review from a team, ArtificialOwl, artonge and come-nc and removed request for a team October 3, 2024 14:34
@Altahrim Altahrim marked this pull request as ready for review October 3, 2024 14:34
tests/lib/User/ManagerTest.php Outdated Show resolved Hide resolved
@Altahrim Altahrim force-pushed the fix/recently_active_pgsql branch 9 times, most recently from 3287967 to b0f7fe8 Compare October 16, 2024 09:54
@Altahrim Altahrim force-pushed the fix/recently_active_pgsql branch 2 times, most recently from 157fd45 to 22061d1 Compare October 17, 2024 07:37
@artonge artonge force-pushed the fix/recently_active_pgsql branch 4 times, most recently from 6f585ca to 9c11ec8 Compare October 24, 2024 16:51
@Altahrim Altahrim force-pushed the fix/recently_active_pgsql branch 7 times, most recently from c463a32 to cb83cef Compare October 29, 2024 16:39
Signed-off-by: Benjamin Gaussorgues <[email protected]>
- Remove DISTINCT clause to fix PgSQL
- Join user table only if necessary
- Don't show people who never connected in active list
- Add test

Signed-off-by: Benjamin Gaussorgues <[email protected]>
Signed-off-by: Benjamin Gaussorgues <[email protected]>
@Altahrim Altahrim merged commit dac15d1 into master Oct 30, 2024
177 checks passed
@Altahrim Altahrim deleted the fix/recently_active_pgsql branch October 30, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: accounts -> recently active does not work on pgsql
3 participants