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

[EAK-456] DependsOn: add a communication mechanism for third-party "frameworks" to commuticate with DependsOn about the field state #456

Closed
liubou-masiuk opened this issue Jun 15, 2023 · 0 comments · Fixed by #461
Assignees
Labels
arch Changes in general project structure and/or dependencies javascript JavaScript code contribution

Comments

@liubou-masiuk
Copy link
Collaborator

liubou-masiuk commented Jun 15, 2023

We have encountered cases where DependsOn and other UI mechanisms of field state management (e.g. field inheritance or several nested disabling conditions) are in conflict with each other and update the field state without considering each other. The goal of this ticket is to create a communication mechanism on DependsOn API side.
There are 2 main ideas:

  1. extend DependsOn internal API to allow third-party code to register "side-effects" (additional action conditions that are submitted to DependsOn by third-party code)
  2. add some kind of a "semafore" property that will register all "actors" that try to disable/enable a field. DependsOn will enable the field only after all actors that disabled it, have requested enabling

the second option seems to be quicker, the first - more flexible.
This ticket blocks #457

@liubou-masiuk liubou-masiuk added this to To do in Development tasks via automation Jun 15, 2023
@liubou-masiuk liubou-masiuk added arch Changes in general project structure and/or dependencies javascript JavaScript code contribution labels Jun 15, 2023
@ala-n ala-n self-assigned this Jun 29, 2023
@ala-n ala-n moved this from To do to In progress in Development tasks Jun 29, 2023
@ala-n ala-n closed this as completed in #461 Jul 4, 2023
Development tasks automation moved this from In progress to Done Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch Changes in general project structure and/or dependencies javascript JavaScript code contribution
Projects
Development

Successfully merging a pull request may close this issue.

2 participants