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

Field length error message #95

Closed
wants to merge 5 commits into from
Closed

Conversation

holygeek00
Copy link

@holygeek00 holygeek00 commented May 8, 2024

@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label May 8, 2024
@holygeek00 holygeek00 requested review from a team, marstamm and barmac and removed request for a team May 8, 2024 12:02
Copy link
Member

@barmac barmac left a comment

Choose a reason for hiding this comment

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

The PR includes 72d7755 even though it's not related to the linked issue. If a pull request depends on another PR, we mark this as "Requires #xx", e.g. https://github.com/bpmn-io/build-on-demand/pull/41#issuecomment-2095889208

@holygeek00
Copy link
Author

Requires camunda/camunda-modeler#4207

Copy link
Member

@nikku nikku left a comment

Choose a reason for hiding this comment

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

@bpmn-io-tasks bpmn-io-tasks bot added in progress Currently worked on and removed needs review Review pending labels May 13, 2024
@holygeek00 holygeek00 force-pushed the Field_length_error_message branch from 67cc706 to 3e8c0f5 Compare May 21, 2024 14:17
@@ -1564,7 +1564,7 @@ describe('provider/cloud-element-templates - CustomProperties', function() {
input = domQuery(selector, entry);

// assume
expectError(entry, `${name} - MinLength must have min length 5.`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This File was accidentally commited in #64 and was removed with 6d2e524 already. Please rebase your work to the latest main branch to resolve the conflict

Copy link
Collaborator

@marstamm marstamm left a comment

Choose a reason for hiding this comment

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

See above #95 (comment)

@nikku
Copy link
Member

nikku commented May 22, 2024

@holygeek00 @marstamm What do you think about the proposed error message? What I liked about the old one is that we do proper casing <Name of field> must be. Now it reads <Name of Field> Field ... which I find odd.

@nikku
Copy link
Member

nikku commented May 22, 2024

Cf. also @barmac's prior investigations - camunda/camunda-modeler#4207 (comment).

Could be worth do do a poll in the team channel to quickly agree on a direction to take.

@marstamm
Copy link
Collaborator

marstamm commented May 22, 2024

I agree, the naming is odd. We should either make it short and precise ("Use at least X Characters") or clean up the error message ("<PropertyName> must be at least X Characters"). The additional field is redundant

@nikku nikku closed this May 30, 2024
@bpmn-io-tasks bpmn-io-tasks bot removed the in progress Currently worked on label May 30, 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.

4 participants