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

Add errors group to input output tab #435

Merged
merged 1 commit into from
Mar 5, 2021

Conversation

azeghers
Copy link
Contributor

@azeghers azeghers commented Feb 26, 2021

Related to camunda/camunda-modeler#2070

This PR adds the UI component of the camunda:ErrorEventDefinition elements in the properties panel, in the input/output tab.

2 missing features to note :
-Copying and pasting a service task with a camunda:ErrorEventDefinition that references a bpmn:Error doesn't apply the reference on paste.
-Changing the type of a service task with camunda:ErrorEventDefninitions won't delete them, just hide the errors group in the input/output tab

Those features will be added at a later stage.

Acceptance Criteria

  • Corresponds to the concept
  • Corresponds to the design

Definition of Done

@bpmn-io-tasks bpmn-io-tasks bot added the in progress Currently worked on label Feb 26, 2021
@azeghers azeghers force-pushed the 422-add-errors-subsection-to-input-output-tab branch from 4b97d34 to ddc45ea Compare March 1, 2021 13:22
@azeghers azeghers requested review from a team, philippfromme, barmac and andreasgeier and removed request for a team March 3, 2021 15:17
@azeghers azeghers marked this pull request as ready for review March 3, 2021 15:17
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed in progress Currently worked on labels Mar 3, 2021
@azeghers azeghers force-pushed the 422-add-errors-subsection-to-input-output-tab branch from 22bc9e1 to 740ced3 Compare March 3, 2021 15:19
@azeghers azeghers requested review from pinussilvestrus and removed request for philippfromme March 3, 2021 16:44
@pinussilvestrus
Copy link
Contributor

Maybe we should squash the commits beforehand.

@azeghers azeghers force-pushed the 422-add-errors-subsection-to-input-output-tab branch from 740ced3 to db1b6f1 Compare March 4, 2021 09:09
Copy link
Contributor

@pinussilvestrus pinussilvestrus left a comment

Choose a reason for hiding this comment

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

Some things we should consider in the implementation & tests, besides, good job so far 👏

entries: [],

enabled: function(element, node) {
return is(element, 'bpmn:ServiceTask') && getBusinessObject(element).type === 'external';
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we would get safer if we use internal helpers for this.

return ImplementationTypeHelper.getImplementationType(element) === 'external';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure thing!

styles/properties.less Show resolved Hide resolved
test/spec/provider/camunda/ErrorsPropsSpec.js Show resolved Hide resolved
@azeghers azeghers requested a review from pinussilvestrus March 4, 2021 14:26
@azeghers azeghers force-pushed the 422-add-errors-subsection-to-input-output-tab branch from db1b6f1 to 8b0cc48 Compare March 4, 2021 14:26
@andreasgeier
Copy link

Checked the latest artifact right now - looks and behaves as expected. ✅

Copy link
Contributor

@pinussilvestrus pinussilvestrus left a comment

Choose a reason for hiding this comment

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

Changes LGTM 👍

@azeghers azeghers merged commit 00bbcfb into master Mar 5, 2021
@azeghers azeghers deleted the 422-add-errors-subsection-to-input-output-tab branch March 5, 2021 09:22
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Mar 5, 2021
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.

4 participants