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: bulk publish #6006

Merged
merged 2 commits into from Apr 24, 2024
Merged

fix: bulk publish #6006

merged 2 commits into from Apr 24, 2024

Conversation

DanRibbens
Copy link
Contributor

@DanRibbens DanRibbens commented Apr 24, 2024

Description

Some tests had to be changed in order to match the intended functionality of how drafts and _status. This may seem unexpected at first. The issue is that the draft arg alone is not sufficient in telling Payload's update and updateByID operations that you are saving as a draft.

Note: you may need to improve any payload local API calls to include _status: 'published' or _status: 'draft'. Previously a document saved with draft: true would not make write to the collection even if _status: 'published' was in the data of the request.

fixes #5977

  • I have read and understand the CONTRIBUTING.md document in this repository.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have added tests that prove my fix is effective or that my feature works
  • Existing test suite passes locally with my changes
  • I have made corresponding changes to the documentation

@DanRibbens DanRibbens mentioned this pull request Apr 24, 2024
@DanRibbens DanRibbens merged commit c11600a into main Apr 24, 2024
33 checks passed
@DanRibbens DanRibbens deleted the fix/#5977-bulk-publish branch April 24, 2024 19:04
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.

Bulk updating in 2.13.0 causing very inconsistent behaviour
1 participant