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

Ensure PolicyListRevisionIssuers and their dependents are intialized in a consistent way #3

Open
Gnuxie opened this issue Oct 21, 2023 · 1 comment

Comments

@Gnuxie
Copy link
Owner

Gnuxie commented Oct 21, 2023

This can be done by enforcing that the initial data that is used to build a revision (e.g. when fetching state for the first time) is done so from calling reviseFromChanges/reviseFromState on an empty revision (blankRevision). Then adding a flag to the revision event (or an event that can be subscribed to with once (i don't think the latter is necessary given everything will need to subscribe to this events, and only client code will need to distinguish between the two).

@Gnuxie
Copy link
Owner Author

Gnuxie commented Oct 25, 2023

Distinguishing whether the changes are from initialising the revision or not can be done by checking if the previous revision was empty.

Gnuxie added a commit that referenced this issue Oct 26, 2023
- User rules shouldn't return server rules unless asked for explicitly,
  this was weird behavior from mjolnir.
- Add better mechanisms for finding rules for entities,
  these aren't great, and there probably is a better way to optimize.
- We now need to implement #3
Gnuxie added a commit that referenced this issue Oct 26, 2023
Related #3.
Though I don't think it fixes it, since propagator revision issuers
don't have a way to signal that they've added/removed entire revisions
from their incorperated revision.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant