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

DataLinks: Respects display name and adds field quoting #27616

Merged
merged 2 commits into from
Sep 17, 2020

Conversation

hugohaggmark
Copy link
Contributor

What this PR does / why we need it:
Firstly, this PR switches from using field.name to the actual displayName for the field. Secondly displayName containing . or are decorated with quotes.

Which issue(s) this PR fixes:
Fixes #26545

Special notes for your reviewer:

Copy link
Contributor

@kaydelaney kaydelaney left a comment

Choose a reason for hiding this comment

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

One small comment but otherwise LGTM!

public/app/features/panel/panellinks/link_srv.ts Outdated Show resolved Hide resolved
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
Copy link
Member

@torkelo torkelo left a comment

Choose a reason for hiding this comment

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

Looks good, but getFrameVars was a bit cryptic, so took some time to parse what was going on :)

@hugohaggmark hugohaggmark merged commit e86ff52 into master Sep 17, 2020
@hugohaggmark hugohaggmark deleted the hugoh/issue-datalinks-codecompletion branch September 17, 2020 06:08
@dprokop
Copy link
Member

dprokop commented Sep 17, 2020

Great tests @hugohaggmark!

hugohaggmark added a commit that referenced this pull request Sep 17, 2020
* DataLinks: Adds field quoting and respects DisplayName

* Update public/app/features/panel/panellinks/link_srv.ts

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
(cherry picked from commit e86ff52)
hugohaggmark added a commit that referenced this pull request Sep 17, 2020
* DataLinks: Adds field quoting and respects DisplayName

* Update public/app/features/panel/panellinks/link_srv.ts

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
(cherry picked from commit e86ff52)
ryantxu pushed a commit that referenced this pull request Nov 18, 2020
* DataLinks: Adds field quoting and respects DisplayName

* Update public/app/features/panel/panellinks/link_srv.ts

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DataLinks: Code completion for data links omits field quoting
4 participants