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

Fix dashboard parameter mapping issues #4211

Merged
merged 4 commits into from
Oct 14, 2019

Conversation

gabrieldutra
Copy link
Member

@gabrieldutra gabrieldutra commented Oct 3, 2019

What type of PR is this? (check all applicable)

  • Bug Fix

Description

Bugs:

  1. When changing the mapping type to Static without changing the value, the Field was set to null (even though there was a value in the parameter)
  2. Field mapping sometimes does not update after changing it

To-do:

  • Test bugs on netlify + gifs
  • Write Cypress tests 🎉

Related Tickets & Documents

--

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

Issue 1

Before
mapping-static-issue
After
mapping-static-solved

Issue 2

Before
mapping-update-issue

After
mapping-update-solved

.click();
};

it('has widget mapping as the default', function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

The default mapping by API is widget level param (cause api-redash:addWidget doesn't send parameterMapping data), but in the UI (AddWidgetDialog) it's dashboard level param.

Dunno if this is an actual problem or not, but it did confuse me when I read the test.

Copy link
Member Author

Choose a reason for hiding this comment

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

Well noticed, I've never realized that 😂. I'll rename the test for now.

@gabrieldutra gabrieldutra merged commit a102e93 into master Oct 14, 2019
@gabrieldutra gabrieldutra deleted the fix-dashboard-static-values branch October 14, 2019 20:21
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.

2 participants