Uh oh!
There was an error while loading. Please reload this page.
provide event class and typed event to LDAP loaded event; also fixing a logged deprecation message - #22221
Conversation
blizzz
commented
Aug 12, 2020
/backport to stable19 |
blizzz
commented
Aug 12, 2020
/backport to stable18 |
3658f08 to
698a884Compare* and also dispatch the typed event as current approach to it Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
698a884 to
44cad17Compare🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 31703: failureacceptance-app-files
Show full log |
MorrisJobke
commented
Aug 12, 2020
TBH: I couldn't find any users of this event. Let's just remove it? Why should we add an event where there is no use case? If there is one we can still add it properly. |
Uh oh!
There was an error while loading. Please reload this page.
blizzz
commented
Aug 13, 2020
There is, but the way it is pre-20 is not working, because the event is fired to early due to app loarding order. |
MorrisJobke
commented
Aug 13, 2020
Where? |
blizzz
commented
Aug 13, 2020
ldap_write_support (and upstream) would have taken advantage of it |
MorrisJobke
left a comment
There was a problem hiding this comment.
Please add a deprecation notice to #20953 for 'OCA\\User_LDAP\\User\\User::postLDAPBackendAdded' and that the new event should be used.
blizzz
commented
Aug 14, 2020
done |
MorrisJobke
commented
Aug 14, 2020
I added it to the table we have in that ticket |
blizzz
commented
Aug 14, 2020
oh, that's better. (life's too short to scroll down though 😳 ) |
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
MorrisJobke
commented
Oct 29, 2020
ref #14552 |
See nextcloud/server#22221 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
See nextcloud/server#22221 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
fixes#19097
I am not aware of any current consumers. The event is not very usable as it is fired before most apps are loaded. To keep things stable and avoid surprises nevertheless, this is the safe, backportable approach (code diverted a bit, but no biggy). With 20 and the
IBootstrapbits from @ChristophWurst it should be a viable approach to subscribe to the typed event.