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

Consolidate content versioning #22227

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

licitdev
Copy link
Member

Scope

What's changed:

  • Added a new delta field to the directus_versions table
    • Contains the final delta which is the combination of all revisions

Potential Risks / Drawbacks

  • Updates to existing revisions during the migration may result in an incorrect final delta stored
    • This happens when an existing instance of Directus is performing the patch
    • The final delta could be fully repopulated in a subsequent release

Review Notes / Questions

  • The existing versions field in the directus_revisions table will be removed in a subsequent release
  • If the delta field in directus_versions is empty, the existing behaviour of fetching from directus_revisions remains
  • Needs further testing to ensure content versioning remains fully operational

Related to #17894

Copy link

changeset-bot bot commented Apr 17, 2024

🦋 Changeset detected

Latest commit: d50f17a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 21 packages
Name Type
@directus/system-data Patch
@directus/types Patch
@directus/api Patch
@directus/sdk Patch
@directus/utils Patch
@directus/composables Patch
@directus/extensions-sdk Patch
@directus/extensions Patch
@directus/themes Patch
@directus/validation Patch
directus Patch
@directus/env Patch
@directus/extensions-registry Patch
@directus/memory Patch
@directus/pressure Patch
@directus/storage-driver-azure Patch
@directus/storage-driver-cloudinary Patch
@directus/storage-driver-gcs Patch
@directus/storage-driver-s3 Patch
@directus/storage-driver-supabase Patch
create-directus-extension Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@licitdev licitdev requested a review from br41nslug April 17, 2024 16:35
@licitdev licitdev marked this pull request as ready for review April 18, 2024 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 Needs Triage
Development

Successfully merging this pull request may close these issues.

None yet

2 participants