-
Notifications
You must be signed in to change notification settings - Fork 13
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
Syncing resources multiple times creates duplicates. #203
Comments
Hi, Can you describe how you run the tool? State is supposed to be saved locally, this is what should prevent duplicates. What's the version you're using? Thanks. |
Hi, I am using a config file to store the source and destination app and api keys. and mentioning resources and filter in the same config file. Thats how the config file looks like (didnt mention keys here though).
Then we run the below commands.
|
Can you verify what's present in the |
I tihnk that was the reason. The resources directory was removed and as a result it created the resources with a new ID and synced those. This can be closed. thanks |
I had something similar happen where they got duplicated. Are we saying here we have to store the resources folder forever? Does it not simply check the target list before adding it again? Is there no unique ID such as the title which can be the key? |
Yes you have to keep the resources folder around. Things like titles are not unique identifier, so we need to keep a mapping of IDs between the 2 orgs. |
In any case is there no way that refreshing the resources can pull a unique id from the server side? Having to keep a cache folder around isn't practical. If you send to multiple sources\destinations does the single resources folder remember them all? |
As of today there is no such mechanism no.
No if you have multiple source and destination organizations you should keep different resources folder. |
Overview of issue:
Steps to reproduce the issue:
Describe the results you received:
Dashboard was duplicated in destination org when the sync command is rerun.
Describe the results you expected:
Dashboard should not be duplicated in destination org when the sync command is rerun
Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: