We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if collection was removed localy and when generate schema. Collection not removed on server
collection not removed
api/src/utils/apply-diff.ts -> deleteCollections has condition return collectionDiff.kind === DiffKind.DELETE && collectionDiff.lhs?.meta?.group === null;
return collectionDiff.kind === DiffKind.DELETE && collectionDiff.lhs?.meta?.group === null;
remove collectionDiff.lhs?.meta?.group === null in condition
v12.1.2
Self-Hosted (Docker Image)
The text was updated successfully, but these errors were encountered:
Hi there! :) So I applied a schema, which worked.
[14:38:40.859] INFO: Snapshot applied successfully
Now check the diff for removing the collection in the folder, like you mentioned:
Collections: - Delete temp_todo_delete Would you like to continue? Yes [14:43:50.683] INFO: Snapshot applied successfully
Looks correct but now like you mention, it is indeed not deleted!
Very nice find, thank you for the concise writeup! <3 🚀
Sorry, something went wrong.
Duplicate of #16683
DanielBiegler
Successfully merging a pull request may close this issue.
Describe the Bug
if collection was removed localy and when generate schema. Collection not removed on server
To Reproduce
result:
collection not removed
reason:
api/src/utils/apply-diff.ts -> deleteCollections has condition
return collectionDiff.kind === DiffKind.DELETE && collectionDiff.lhs?.meta?.group === null;
solution
remove collectionDiff.lhs?.meta?.group === null in condition
Directus Version
v12.1.2
Hosting Strategy
Self-Hosted (Docker Image)
The text was updated successfully, but these errors were encountered: