Skip to content

LDAP: remove unused methods and DB values - #22583

Merged
rullzer merged 2 commits into
masterfrom
fix/noid/remove-unused-code
Sep 6, 2020
Merged

LDAP: remove unused methods and DB values#22583
rullzer merged 2 commits into
masterfrom
fix/noid/remove-unused-code

Conversation

@blizzz

Copy link
Copy Markdown
Member

We were still having the update() method on LDAP's User class as well as related values we stored with the users. In the past we changed updating of user records to happen initially (on first importing), in the background, and on login. The use case to do it inline was not given anymore. update() was now only referenced by unit tests. It made use of some other methods and also of the lastFeatureRequest marker in the database. This is not needed anymore, and thus we do not need to write it anymore on every background run. The repair steps take care of removing these rows from the database.

@blizzz

Copy link
Copy Markdown
MemberAuthor

/backport to stable19

@blizzz

Copy link
Copy Markdown
MemberAuthor

/backport to stable18

@rullzerrullzer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🚀

@blizzz
blizzzforce-pushed the fix/noid/remove-unused-code branch 2 times, most recently from 64341f1 to 18c6b98CompareSeptember 4, 2020 09:04
@faily-bot

This comment has been minimized.

- only references were in unit tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Comment threadapps/user_ldap/lib/Migration/RmRefreshTime.php Outdated
@blizzz
blizzzforce-pushed the fix/noid/remove-unused-code branch from 18c6b98 to bb02c29CompareSeptember 4, 2020 10:56

@juliusknorrjuliusknorr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Small naming suggestion, otherwise 👍

… prefs
- also removes related app setting "updateAttributesInterval"
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz
blizzzforce-pushed the fix/noid/remove-unused-code branch from bb02c29 to aa2d754CompareSeptember 4, 2020 11:00
@blizzzblizzz added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Sep 4, 2020

@ChristophWurstChristophWurst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍 🚀 🧹

@rullzerrullzer mentioned this pull request Sep 6, 2020
13 tasks
@rullzer
rullzer merged commit 06a1cfc into masterSep 6, 2020
@rullzer
rullzer deleted the fix/noid/remove-unused-code branch September 6, 2020 17:55
pullBot pushed a commit to stefancooetzee/documentation that referenced this pull request May 27, 2026
…vior
The updateAttributesInterval occ config key was removed in NC20 via
the RemoveRefreshTime migration (nextcloud/server#22583). The background
sync interval is now auto-calculated in Jobs/Sync.php based on the number
of mapped users and the minimum paging size, clamped to 30 min–12 h,
targeting one full sync per day.
Replace the stale "Attribute update interval" section (which still
referenced the removed occ command) with an accurate description of
the current auto-calculated behavior.
Fixesnextcloud#11088
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugfeature: ldaptechnical debt🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@blizzz@rullzer@ChristophWurst@juliusknorr