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

Collection not delete when sync to another instance #123

Open
mason5991 opened this issue Dec 10, 2024 · 2 comments
Open

Collection not delete when sync to another instance #123

mason5991 opened this issue Dec 10, 2024 · 2 comments
Labels
directus-related This issue is related to Directus itself

Comments

@mason5991
Copy link

Describe the bug
There are same collection(testPost ) in two instances A and B. I have deleted the collection in instance A and try to run directus sync to instance B, but the collection did not get deleted.

diff: {
      "collections": [
        {
          "collection": "testPost",
          "diff": [
            {
              "kind": "D",
              "lhs": {
                "collection": "testPost",
                "meta": {
                  "accountability": "all",
                  "archive_app_filter": true,
                  "archive_field": null,
                  "archive_value": null,
                  "collapse": "open",
                  "collection": "testPost",
                  "color": "#FFC23B",
                  "display_template": null,
                  "group": "mysharepost",
                  "hidden": false,
                  "icon": null,
                  "item_duplication_fields": null,
                  "note": null,
                  "preview_url": null,
                  "singleton": false,
                  "sort": 4,
                  "sort_field": null,
                  "translations": null,
                  "unarchive_value": null,
                  "versioning": false
                },
                "schema": {
                  "name": "testPost"
                }
              }
            }
          ]
        }
      ],
      "fields": [],
      "relations": []
    } 

To Reproduce
Steps to reproduce the behavior:

  1. Instance A delete a collection
  2. Run directus-sync pull and push to Instance B
  3. Diff log showing there is a collection will be deleted
  4. Collection still exist in Instance B. Diff log keeps showing the same.

Expected behavior
Collection should be deleted

Versions (please complete the following information):

  • Directus-Sync version: 3.1.5
  • Directus version: 11.1.1
  • Directus environment Docker
@EdouardDem
Copy link
Member

Hi @mason5991, I will try to reproduce the bug on my side.
I have few question :

  • Which database are you using ?
  • Do you have any error during the push operation ?
  • Did you try to use the --force flag during the push ?

@mason5991
Copy link
Author

Hi @mason5991, I will try to reproduce the bug on my side. I have few question :

  • Which database are you using ?
  • Do you have any error during the push operation ?
  • Did you try to use the --force flag during the push ?

I am using pg v16.
No error shown during push operation.
Didn't try --force as I am afraid any harm to existing setup.

@EdouardDem EdouardDem added the directus-related This issue is related to Directus itself label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
directus-related This issue is related to Directus itself
Projects
None yet
Development

No branches or pull requests

2 participants