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

Same named files are overridden from a different File Record #54

Open
liny01-nbsa opened this issue Dec 28, 2022 · 1 comment
Open

Same named files are overridden from a different File Record #54

liny01-nbsa opened this issue Dec 28, 2022 · 1 comment

Comments

@liny01-nbsa
Copy link

Hi @dynamicdan,

Thank you for making and maintaining this very useful tool.

I'm running into a weird issue, I have the following (simplified) folder records:

└───ui_actions
    ├───table1
    │   └───client_true
    │       └───process.js  # (file 1)
    └───table2
        └───client_true
            └───process.js  # (file 2)

There are 2 same named UI Actions that's associated with 2 different tables. When a --resync is done. file 1 would be override with the content of file 2. This can be fixed by a pull-down of only file 1 again.

  • .\app.js --download --search sys_ui_action_<file_1_sys_id>
@dynamicdan
Copy link
Owner

Hi @liny01-nbsa,
There is an option to save the sys_id in the file name. You can set "ensureUniqueNames" in your config. Please see if this rectifies the issue.
I'm not investing much time into sn-filesync right now so if you can debug more into what's happening then I can perhaps provide a better fix.
Also, please double check the .sync_data folder to see if the correct data is saved there. IIRC, the app should be looking up the relevant meta data file to decide what record to pull down. It could be that both table1 and table2 folders have the same sys_id in the meta data file for some reason. If the data is correct, then there is a bug in the app logic.
I hope that helps.

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

No branches or pull requests

2 participants