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

Remove zeebe:bindingType unless allowed #78

Merged
merged 2 commits into from
Jul 26, 2024
Merged

Remove zeebe:bindingType unless allowed #78

merged 2 commits into from
Jul 26, 2024

Conversation

philippfromme
Copy link
Collaborator

  • removes zeebe:bindingType when zeebe:formId (linked Camunda form) is removed
  • sets zeebe:formId when zeebe:bindingType is set

Related to camunda/camunda-modeler#4385

@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Jul 24, 2024
@philippfromme philippfromme changed the title Renive zeebe:bindingType unless allowed Remove zeebe:bindingType unless allowed Jul 24, 2024
const formDefinition = getFormDefinition(userTask);

expect(formDefinition.get('bindingType')).to.equal('latest'); // default value
expect(formDefinition.get('formId')).not.to.exist;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What UX flow do we support here? Is it really a use-case to set bindingType which internally sets formId? I'd assume this is "undefined behavior", in case this is not in the happy path.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the otherhand this is well tested and simple enough; just wondering what is our strategy here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not possible through the properties panel since the Binding field only appears once a formId has been set. But users of the API could technically set the bindingType directly.

@philippfromme philippfromme merged commit 3c42bfe into main Jul 26, 2024
7 checks passed
@philippfromme philippfromme deleted the binding-type branch July 26, 2024 11:03
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Jul 26, 2024
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

Successfully merging this pull request may close these issues.

2 participants