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

Consider autoscoped name when looking up dynamic config #9916

Merged
merged 4 commits into from May 14, 2024

Conversation

vitvakatu
Copy link
Contributor

@vitvakatu vitvakatu commented May 10, 2024

Pull Request Description

Fixes #9635

@JaroslavTulach with this change you reproduction scenario works as it should.

dropdown.works.for.autoscope.mp4

Important Notes

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • Unit tests have been written where possible.

@vitvakatu vitvakatu added CI: No changelog needed Do not require a changelog entry for this PR. --bug Type: bug -gui labels May 10, 2024
@vitvakatu vitvakatu self-assigned this May 10, 2024
return cfg.possibleFunctions.get(name)
const fullName = entryQn(info?.suggestion)
const autoscopedName = '..' + info?.suggestion.name
return cfg.possibleFunctions.get(fullName) ?? cfg.possibleFunctions.get(autoscopedName)
Copy link
Contributor

@Frizi Frizi May 10, 2024

Choose a reason for hiding this comment

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

Should we always check autoscoped name here, or is supposed to be limited only to cases where the suggestion is an enum constructor?

Also I think this logic change should be included in possibleFunctions property documentation. It no longer typically contains only FQNs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we always check autoscoped name here, or is supposed to be limited only to cases where the suggestion is an enum constructor?

There is no harm in doing it every time we can.

Also I think this logic change should be included in possibleFunctions property documentation. It no longer typically contains only FQNs.

Added note there.

@vitvakatu vitvakatu added the CI: Ready to merge This PR is eligible for automatic merge label May 10, 2024
Copy link
Member

@JaroslavTulach JaroslavTulach left a comment

Choose a reason for hiding this comment

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

My use case seems to work with changes in this PR. Thanks @vitvakatu

@vitvakatu vitvakatu mentioned this pull request May 14, 2024
4 tasks
@mergify mergify bot merged commit 52b8ed4 into develop May 14, 2024
36 checks passed
@mergify mergify bot deleted the wip/vitvakatu/fix-autoscoped-args branch May 14, 2024 11:01
mergify bot pushed a commit that referenced this pull request May 14, 2024
While fixing prop test in #9916, I was surprised to see a lot of basically unused checks in unit tests. With the new API, the need for them is gone.
@enso-bot enso-bot bot mentioned this pull request May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
--bug Type: bug -gui CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display placeholders for autoscoped-constructor arguments
4 participants