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
Add EventSource to the public API #10739
Conversation
🚀 Test Passed. 🚀 |
@icewind1991 A test case would be really nice |
yes - please - besides that: looks good 👍 |
@icewind1991 squash and rebase please |
test case means how to test this change (manually) |
f1c92c0
to
6482890
Compare
🚀 Test Passed. 🚀 |
Basic manual test: run |
@@ -492,4 +492,13 @@ function getCertificateManager($user = null) { | |||
} | |||
return new CertificateManager($user); | |||
} | |||
|
|||
/** | |||
* Returns a search instance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the comment.
It's important to state that this will CREATE a new event source, as the class itself doesn't have any "open()" method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd almost even prefer calling it createEventSource()
, because when seeing getEventSource()
used somewhere it is not clear that we are getting new instance instead of a possibly cached one.
If you compare with other services above they all seem to have singletons.
@PVince81 switched to |
449fa21
to
e45ee87
Compare
🚀 Test Passed. 🚀 |
👎
|
This appears in my log once the filescan is triggered. |
and reappears on every file scan |
e45ee87
to
fa33936
Compare
A new inspection was created. |
@MorrisJobke should be fixed now |
🚀 Test Passed. 🚀 |
|
@owncloud-bot retest this please |
🚀 Test Passed. 🚀 |
👍 |
Add EventSource to the public API
Also fixes EventSource to not start sending output the moment we construct it but wait until we start sending data.
cc @PVince81 @DeepDiver1975 @MorrisJobke