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

Prevention of synchronization if depedency is not available / valid #250

Open
bielu opened this issue Nov 27, 2024 · 2 comments
Open

Prevention of synchronization if depedency is not available / valid #250

bielu opened this issue Nov 27, 2024 · 2 comments

Comments

@bielu
Copy link

bielu commented Nov 27, 2024

Is your feature request related to a problem? Please describe.
Hey this both feature request and question, is it possible to validate document by depedency?
Describe the solution you'd like
Being able to say some document/media/form is invalid when preparing usync pull/push.

Describe alternatives you've considered
using usync notifications (uSyncImportingItemNotification and uSyncImportedItemNotification)

Additional context
We have custom rule on media which prevents it from being routable, and we would like to be able to prevent sync as long this media not passing validation (I can do directly on item), but can i prevent it from creating whole sync even if item is not main exported item, but depedency?

@KevinJump
Copy link
Member

Just to get my head around this.

Is this
a) you push a media item and it shouldn't be pushed because it is of a certyain type.
or
b) you push a content item that contains a media item, and you don't want the media item and/or the media item to be published because of the media item being a certain type ?

I suspect you mean a) but i wanted to check.

@bielu
Copy link
Author

bielu commented Nov 27, 2024

@KevinJump in this case, we want prevent it base on 2 properties, one or other has to be populated, if not - they are not valid and they shouldn't be sync.
So both cases of specific item shouldn't be pushed and any content referencing it also should be blocked,

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