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

can uSync create and delete dictionary keys (just not update/overwrite existing) #368

Open
shearer3000 opened this issue Mar 9, 2022 · 6 comments
Labels
enhancement New feature or request Investigating Looking at this issue to see if we can identify a root cause

Comments

@shearer3000
Copy link

Hello

By default the DictionaryHandler is treated as a content handler, so Dictionary items are synced when you sync content.

That’s great for new and deleted dictionary keys, however, unchanged dictionary keys would lose values the content editor has entered as they are ‘updated’.

Looking at the documentation https://usync.jumoo.co.uk/docs/uSync/guides/dictionary the only possible option other than the default content handler way is to allow ‘create only’? Is a Create and Delete Only option/mode possible? (just not update)

This seems to be a follow on from #157

Thanks
Andrew

Using usync 9.2

@KevinJump
Copy link
Owner

HI At the moment the 'create only' option is the main one, this will not then overwrite the updates but we don't support "delete only" just now,

but we will add it to the backlog, to see how hard it is to do.

@KevinJump KevinJump added Investigating Looking at this issue to see if we can identify a root cause enhancement New feature or request labels Mar 10, 2022
@Sven883
Copy link

Sven883 commented May 20, 2022

Hello @KevinJump, our handler is set like this:
<Handler Alias="dictionaryHandler" Enabled="true" Actions="All" />
But this also syncs updates to existing dictionary items. We would like to have create and if possible the delete not an update.
How would we do that?

I've read the documentation and the options All,Import,Export,Events.
I've tried using export but when I'm making a new dictonary item there is no usync config made of that translation.

Thanks!

@tomotrepo
Copy link

Hi,

(Umbraco v11, uSync11.2.1)

I have settings like this, while I want everything to be 'manual'.

image

I want dictionary items just to be created - but everytime when I update the translation it get exported. Is this settings OK, or I'm missing something?

Regards

@KevinJump
Copy link
Owner

Hi,

If the events are still firing despite "ExportOnSave" : being set to none i would restart the site just to check the setting has been loaded.

But when in create only mode (when exporting or if the "ExportOnSave" is "on") - the file will still get saved to disk, it just won't get imported - because that is when the create only check is made.

Kevin

@tomotrepo
Copy link

... the file will still get saved to disk, it just won't get imported

thnx for clarifying.

Regards

@farhanalie
Copy link

HI At the moment the 'create only' option is the main one, this will not then overwrite the updates but we don't support "delete only" just now,

but we will add it to the backlog, to see how hard it is to do.

Hi @KevinJump, Does uSync support "delete only" now, or it's still in the backlog? we have a similar situation that we want just to create and delete but not update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Investigating Looking at this issue to see if we can identify a root cause
Projects
None yet
Development

No branches or pull requests

5 participants