Skip to content
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

[Vue] emit/broadcast on scope the method was called on not rootScope #18419

Merged
merged 2 commits into from Dec 2, 2021

Conversation

diosmosis
Copy link
Member

Description:

AngularJS scopes inherit directly from their parent, so overwriting $emit/$broadcast on the $rootScope changes it for everyone. Which is a problem if the overwritten function uses $rootScope directly to broadcast, and not the given scope. ('$destroy' on a child scope for example can destroy many scopes it shouldn't).

Review

@diosmosis diosmosis added the Regression Indicates a feature used to work in a certain way but it no longer does even though it should. label Dec 1, 2021
@diosmosis diosmosis added this to the 4.6.1 milestone Dec 1, 2021
@tsteur
Copy link
Member

tsteur commented Dec 1, 2021

Do we know what this breaks for the user? Generally we could merge it as long as we don't break anything else with it.
For it to be in 4.6.2 we would need a PR against next_release branch

@sgiehl
Copy link
Member

sgiehl commented Dec 1, 2021

This caused at least the problem in ActivityLog, not sure if anything else is still undiscovered

@diosmosis diosmosis changed the base branch from 4.x-dev to next_release December 1, 2021 23:18
@diosmosis
Copy link
Member Author

Updated the base branch

@tsteur
Copy link
Member

tsteur commented Dec 2, 2021

@diosmosis some UI tests are now failing, not sure if this is expected?

@diosmosis
Copy link
Member Author

@tsteur no not expected, looking into it now

@diosmosis
Copy link
Member Author

@tsteur most failures are random, the rest are due to database version being different in the screenshot. I updated those.

@tsteur
Copy link
Member

tsteur commented Dec 2, 2021

👍 good to merge then

@tsteur
Copy link
Member

tsteur commented Dec 2, 2021

it's probably not needed to update screenshots in next_release as it might be fixed then in 4.x-dev I would assume. Not sure what best flow is there

@diosmosis
Copy link
Member Author

@tsteur ok, I won't update (I actually pushed them to the wrong branch)

@diosmosis diosmosis merged commit 16767ba into next_release Dec 2, 2021
@diosmosis diosmosis deleted the vue-post-event-regression branch December 2, 2021 01:37
justinvelluppillai added a commit that referenced this pull request Dec 16, 2021
* Fix for misaligned evolution trend icons (#18323)

* Aligned evolution trend icons, text tweak

* Update plugins/MultiSites/angularjs/dashboard/dashboard.directive.less

Co-authored-by: Stefan Giehl <stefan@matomo.org>

* Hide feedback banner in zen mode (#18329)

* [Vue] 4.6.0 fixes (#18334)

* feedback plugin may not be loaded

* fix copy paste

* async/await not supported

* built UMDs

* [Vue] use jQuery click for expand on click (#18341)

* use jQuery click for expand on click

* undo submodule change

* 4.6.0-rc2

* [Vue] fix modal notification placement (#18377)

* Use separate div in modals to display notifications otherwise Vue will erase modal content when initializing NotificationGroup component.

* built vue files

* Updating version to 4.6.0

* [Vue] date picker viewDate property is not kept up to date (#18385)

* viewDate ref is not kept up to date

* rebuild corehome

* 4.6.1-rc1

* 4.6.1

* [Vue] emit/broadcast on scope the method was called on not rootScope (#18419)

* emit/broadcast on correct scope in wrapper

* rebuild vue

* remove plugin.json from CoreVue, it is not needed and causes some UI tests to fail (#18421)

* Ensure UTF8mb4 conversion command always enables tracking again (#18444)

* Ensure UTF8mb4 conversion command always enables tracking again

* apply review feedback

* small code improvement

* Ignore segment errors in update script (#18455)

* 4.6.2-rc1

* Ensure update to 4.6.2 removes some files (#18473)

* 4.6.2 release!

* built vue files

Co-authored-by: Ben Burgess <88810029+bx80@users.noreply.github.com>
Co-authored-by: Stefan Giehl <stefan@matomo.org>
Co-authored-by: dizzy <diosmosis@users.noreply.github.com>
Co-authored-by: Matthieu Aubry <mattab@users.noreply.github.com>
Co-authored-by: justinvelluppillai <justinvelluppillai@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Regression Indicates a feature used to work in a certain way but it no longer does even though it should.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants