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

clones req with the right mode before to insert or update #59

Merged
merged 3 commits into from
Mar 19, 2024

Conversation

ValJed
Copy link
Contributor

@ValJed ValJed commented Mar 19, 2024

PRO-5624

Summary

When importing draft documents they had corrupted data because req.mode needs to match doc.aposMode otherwise the core beforeInsert does weird stuff reassigning only aposMode of the document based on req.mode.

What are the specific steps to test this change?

When importing you never end up with data like that:

    _id: 'cltx1oo3m000lqvmd6yy1cwnw:en:draft',
    title: 'test',
    aposLocale: 'en:draft',
    aposMode: 'published',

What kind of change does this PR introduce?

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Build-related changes
  • Other

Make sure the PR fulfills these requirements:

  • It includes a) the existing issue ID being resolved, b) a convincing reason for adding this feature, or c) a clear description of the bug it resolves
  • The changelog is updated
  • Related documentation has been updated
  • Related tests have been updated

Copy link

linear bot commented Mar 19, 2024

@ValJed ValJed force-pushed the pro-5624-fix-authorized-published-actions branch from d835252 to c8993d6 Compare March 19, 2024 10:24
@ValJed ValJed requested a review from boutell March 19, 2024 10:25
@ValJed ValJed merged commit bd3fb62 into main Mar 19, 2024
9 checks passed
@ValJed ValJed deleted the pro-5624-fix-authorized-published-actions branch March 19, 2024 13:59
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

Successfully merging this pull request may close these issues.

2 participants