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

Fix the Permission Manager sending too many observer updates #1359

Merged

Conversation

joeljfischer
Copy link
Contributor

Fixes #965

This PR is ready for review.

Risk

This PR makes no API changes.

Testing Plan

Unit tests have been updated

Summary

OnPermissionChange is sent with all RPCs, not just the changed RPCs. Therefore the SDLPermissionManager sends observer updates with too many changes on the filters. Now, we will check the observer update against our currently known permissions to see if they actually did change.

Changelog

Bug Fixes
  • Fixed SDLPermissionManager notifying observers of permission changes when things didn't actually change.

CLA

* Check that updated permissions actually changed. If they didn't, then exclude them from the update
* Add spec test
@joeljfischer joeljfischer added the bug A defect in the library label Jul 24, 2019
@joeljfischer joeljfischer added this to the 6.4.0 milestone Jul 24, 2019
@joeljfischer joeljfischer self-assigned this Jul 24, 2019
@joeljfischer joeljfischer added this to In progress in v6.4 via automation Jul 24, 2019
@joeljfischer joeljfischer changed the base branch from master to develop July 30, 2019 18:08
v6.4 automation moved this from In progress to Reviewer approved Jul 30, 2019
@joeljfischer joeljfischer merged commit 74ea72e into develop Jul 30, 2019
v6.4 automation moved this from Reviewer approved to Done Jul 30, 2019
@joeljfischer joeljfischer deleted the bugfix/issue_965_permission_manager_notified_too_often branch July 30, 2019 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library
Projects
No open projects
v6.4
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants