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

Suggest element id as variable name #86

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

barmac
Copy link
Collaborator

@barmac barmac commented Nov 23, 2023

Closes #83

Requires bpmn-io/dmn-variable-resolver#10 to be integrated.

@bpmn-io-tasks bpmn-io-tasks bot added the in progress Currently worked on label Nov 23, 2023
@barmac barmac force-pushed the 83-suggest-element-id-instead-of-name branch from 9a59036 to 496f68d Compare November 30, 2023 12:49
@barmac barmac force-pushed the 83-suggest-element-id-instead-of-name branch from 496f68d to 1a17018 Compare November 30, 2023 12:51
@barmac barmac requested review from a team, philippfromme and marstamm and removed request for a team November 30, 2023 12:51
@barmac barmac marked this pull request as ready for review November 30, 2023 12:51
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed in progress Currently worked on labels Nov 30, 2023
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.

I can conform that it works and that the implementation is simple enough!

What I found is that we can make our completion even more powerful with, i.e. literal expressions: If we have a Decision Foo_Bar and the literal expression exports a { name: "WALT" } context, then Foo_Bar.name is something that I'd assume would be auto-suggested to me. Not sure if this is a bug or a missing feature.

capture l42RC8_optimized

@barmac
Copy link
Collaborator Author

barmac commented Dec 1, 2023

This is a missing feature in dmn-variable-resolver.

@barmac barmac merged commit 1350edb into main Dec 1, 2023
10 checks passed
@barmac barmac deleted the 83-suggest-element-id-instead-of-name branch December 1, 2023 12:07
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Dec 1, 2023
@barmac
Copy link
Collaborator Author

barmac commented Dec 1, 2023

@nikku I created an issue for your suggestion: bpmn-io/dmn-variable-resolver#12

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.

Suggest element ID instead of name for variable suggestions
2 participants