Skip to content

read all relevant user attributes on login and user search, in one qu… - #18469

Merged
DeepDiver1975 merged 3 commits into
masterfrom
ldap-batch-read-attrs-ng
Sep 28, 2015
Merged

read all relevant user attributes on login and user search, in one qu…#18469
DeepDiver1975 merged 3 commits into
masterfrom
ldap-batch-read-attrs-ng

Conversation

@blizzz

@blizzz blizzz commented Aug 20, 2015

Copy link
Copy Markdown
Contributor

…ery. saves us some.

obsolotes #12943

fixes #17362

Basically it does what #12943 did, but also reads the user attributes when users are being fetched, for instance in share dialog (except: avatar image).

  • TODO: check performance impact (expectation: all in all better: saves LDAP requests, might cause more DB traffic)

Please review @MorrisJobke @Xenopathic @esakol @tkaufm or others

@blizzz

blizzz commented Aug 25, 2015

Copy link
Copy Markdown
Contributor Author

@rperezb could you get us some testing?

@tkaufm

tkaufm commented Aug 25, 2015

Copy link
Copy Markdown

@blizzz
on my test-system it seems to work in first glance (quick and dirty).
Please be aware that I didn't had time by now for intensive tests, also regarding the performance, I will try to get back as soon i got some time.

Happy to help
Tobias

@MorrisJobke

Copy link
Copy Markdown
Contributor

@blizzz This contains a merge conflict due to #18042 Can you have a look?

@blizzz

blizzz commented Aug 26, 2015

Copy link
Copy Markdown
Contributor Author

@MorrisJobke yes, already on my list, gonna rebase it in a few.

@blizzz
blizzz force-pushed the ldap-batch-read-attrs-ng branch from db72a1e to 33b94cb Compare August 26, 2015 13:34
@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@blizzz

blizzz commented Aug 26, 2015

Copy link
Copy Markdown
Contributor Author

rebased, an adjustedment to changed codebase was necessary.

@tkaufm if you could confirm again with the latest changes, this would be awesome :)

Comment thread apps/user_ldap/lib/user/user.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is fired even if my home folder naming rule is an empty string.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Previously this was inside the if( strpos($this->access->connection->homeFolderNamingRule, 'attr:') === 0 && $this->access->connection->homeFolderNamingRule !== 'attr:')

@rperezb rperezb added the QA label Sep 9, 2015
@PVince81

Copy link
Copy Markdown
Contributor

@blizzz any update ? (after your vacation)

@MorrisJobke

Copy link
Copy Markdown
Contributor

@blizzz Ping :)

@blizzz

blizzz commented Sep 23, 2015

Copy link
Copy Markdown
Contributor Author

lol, added another commit (locally) this second to fix your finding

@blizzz
blizzz force-pushed the ldap-batch-read-attrs-ng branch from 33b94cb to 002b6bf Compare September 23, 2015 15:27
@blizzz

blizzz commented Sep 23, 2015

Copy link
Copy Markdown
Contributor Author

@MorrisJobke fixed, includes tests. Please try again, sänk ju.

@MorrisJobke

Copy link
Copy Markdown
Contributor

Tested and works with existing users 👍

@MorrisJobke

Copy link
Copy Markdown
Contributor

@rperezb @davitol Can we get this in a QA cycle? Thanks :)

@blizzz

blizzz commented Sep 25, 2015

Copy link
Copy Markdown
Contributor Author

Tested positively by @davitol #17362 (comment)

@blizzz

blizzz commented Sep 25, 2015

Copy link
Copy Markdown
Contributor Author

@DeepDiver1975 merge?

DeepDiver1975 added a commit that referenced this pull request Sep 28, 2015
read all relevant user attributes on login and user search, in one qu…
@DeepDiver1975
DeepDiver1975 merged commit 0479cef into master Sep 28, 2015
@DeepDiver1975
DeepDiver1975 deleted the ldap-batch-read-attrs-ng branch September 28, 2015 09:44
@MorrisJobke

Copy link
Copy Markdown
Contributor

@blizzz Can you create the backport request? This should go into 8.1.4 ;)

@blizzz

blizzz commented Sep 28, 2015

Copy link
Copy Markdown
Contributor Author

Will do.

blizzz added a commit that referenced this pull request Sep 28, 2015
…search, in one query)

read all relevant user attributes on login and user search, in one query. saves us some.

Conflicts:
	apps/user_ldap/user_ldap.php

adjust to nested group fix

do not throw exception when no attribute is specified
blizzz added a commit that referenced this pull request Sep 28, 2015
@PVince81

Copy link
Copy Markdown
Contributor

Regression: #19816

blizzz added a commit that referenced this pull request Oct 22, 2015
…search, in one query)

read all relevant user attributes on login and user search, in one query. saves us some.

Conflicts:
	apps/user_ldap/user_ldap.php

adjust to nested group fix

do not throw exception when no attribute is specified
blizzz added a commit that referenced this pull request Oct 22, 2015
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sharing notification by email not working for never logged on users

8 participants