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

LPS-41112 Move logic up to avoid having 2 heads #2232

Conversation

sergiogonzalez
Copy link

Hey Brian,

We need to move the logic up because otherwise we end up having 2 versions of the same page with head = true. The reason why that's happening is because the calls to the service for revert already sets head=true for the right version, and then, after that we call the persistance.update with a page version that also has head=true so even though it was modified in the service, it's also modified in the persistance, and then we end up with 2 head=true

If we move that logic up, the service takes care of everything and we don't need to set again head=false.

@brianchandotcom
Copy link
Owner

Merged. Thank you.
View total diff: 4dcdc21...0099069

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants