-
Notifications
You must be signed in to change notification settings - Fork 109
Fix provided / injected extension list of BaseReader #2628
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
Conversation
|
Rebased |
mejo-
left a comment
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 tested the commit and it indeed fixes the issue in Collectives. Would prefer a second opinion on the actual code changes though.
|
/compile |
max-nextcloud
left a comment
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.
Code wise looks good to me and makes sense. Have not tested it though.
|
Thanks so much for looking into this @susnux! Could you push the compiled JS assets so the CI can run against them? Also, if you don't mind, you could request to become part of https://github.com/nextcloud (to my understanding it's open to regular contributors). That way you could push your branches directly (no need to maintain a personal fork) and CI jobs would run automatically against your PRs. |
|
/backport to stable24 |
|
/compile amend |
|
@susnux unfortunately the node CI job fails because apparently the compiled assets have a diff after being recompiled in the CI. We have the same issue in our development team and I'm not gonna lie: it's cumbersome and we need a better solution. But for us at least the I'm really sorry for this inconvenience and I hope that we're a better working solution soon. Another option would be that one of our team pushes your branch to our repo and creates a PR. Just drop me a note if you prefer this option. |
Provide functions are neither called on the providing object nor on the injecting object, so using `this` within provided functions will refer to the global `this` for which `$emit` is not defined. This uses a factory pattern so that `this` is bound to the injecting object. Also forwarding the `click-link` event is needed. Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Noticed that too. Even using exactly the same npm and node version as the CI does not work. This seems related to: webpack/webpack#3603
That required the invite so thank you for arranging this :)
Thank you! |
Summary
BaseReader: Use a factory pattern for creating the extension list
Provide functions are neither called on the providing object nor
on the injecting object, so using
thiswithin provided functionswill refer to the global
thisfor which$emitis not defined.This uses a factory pattern so that
thisis bound to the injectingobject.
Also forwarding the
click-linkevent is needed.