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

Dashboards with templates behave strangely when refreshed #164

Closed
emtwo opened this issue Jul 26, 2017 · 7 comments · Fixed by #305
Closed

Dashboards with templates behave strangely when refreshed #164

emtwo opened this issue Jul 26, 2017 · 7 comments · Fixed by #305
Assignees
Milestone

Comments

@emtwo
Copy link

emtwo commented Jul 26, 2017

Steps to Reproduce

  1. Go to https://sql.telemetry.mozilla.org/dashboard/test_9
  2. Refresh the page.

Expected result: The URL should remain the same and nothing should change
Actual result: The URL changes to: https://sql.telemetry.mozilla.org/dashboard/test_9?p_start_date=05%2F15%2F17&p_end_date=06%2F18%2F17&p_experiment_id=exp-20-topsites-tworows&p_addon_versions=(%271.11.0%27,%20%271.12.0%27,%20%271.12.1%27,%20%271.13.0%27)&p_events_table=activity_stream_events_daily&p_event=(%27SEARCH%27) and it sets the event variable to SEARCH for all graphs.

@alison985 alison985 added the bug label Jul 26, 2017
@alison985 alison985 added this to the 8 milestone Jul 26, 2017
@alison985
Copy link

@emtwo when I click the link to the test_9 dashboard it gives me the long url version immediately without a refresh. I've never played with a dashboard that has variables before, so I am going to research more about their expected behaviors.

I can reproduce the event variable change and have marked that as a bug for the next sprint.

@emtwo
Copy link
Author

emtwo commented Jul 26, 2017

Thank you @alison985!

@alison985 alison985 self-assigned this Jul 27, 2017
@alison985
Copy link

@emtwo, this is happening because the event variable is the same name in both queries on the dashboard. If you changed one to be named meep_event and one to be named beep_event, for instance, then they would be unique and could maintain different values.

Example:

https://sql.telemetry.mozilla.org/dashboard/alison-test-for-164
https://sql.telemetry.mozilla.org/dashboard/alison-test-for-164?%3Fp_start_date=05%2F15%2F17&p_end_date=06%2F18%2F17&p_experiment_id=exp-20-topsites-tworows&p_addon_versions=(%271.11.0%27,%20%271.12.0%27,%20%271.12.1%27,%20%271.13.0%27)&p_events_table=activity_stream_events_daily&p_event=(%27SEARCH%27)&p_beep_event=(%27CLICK%27)&p_meep_event=(%27SEARCH%27)&p_start_date=5%2F18%2F2017

Also, another note for me is that once you have a parameter name in the query you don't seem to be able to remove it. Right now I have event and meep_event/beep_event in my example.

@alison985
Copy link

Turns out, parameter names are removable in the manner I would expect so there is no bug on that score.

@emtwo, could you weigh in on whether giving variables unique names is an acceptable solve for you?

@alison985
Copy link

@emtwo does each unique parameter on a dashboard having a unique name work for you?

@emtwo
Copy link
Author

emtwo commented Aug 2, 2017

@alison985 sorry for the late response. I could make it work with having unique parameter names, but it would not be ideal for me. The way I currently use templates through the API is by forking a template multiple times and injecting each fork with a different set of values for its parameters.

So I'd have to do an additional step after forking of changing the variable names so they are not repeated.

I think in that case this issue may not be a high priority but it would definitely be a "nice to have"

@alison985 alison985 removed this from the 8 milestone Aug 9, 2017
@rafrombrc rafrombrc added this to the 10 milestone Aug 9, 2017
@alison985
Copy link

@arikfr I intend to work on this tomorrow. My plan is to add the widget id to the parameter name so each widget can have unique parameter names. This is going to involve touching a lot of places in the code, so I wanted to touchbase with you if you possible to get any thoughts you have so that we can send this upstream.

@rafrombrc rafrombrc modified the milestones: 10, 11 Oct 11, 2017
@rafrombrc rafrombrc modified the milestones: 11, 12 Oct 25, 2017
@rafrombrc rafrombrc removed the ready label Nov 29, 2017
@rafrombrc rafrombrc added the ready label Jan 9, 2018
@rafrombrc rafrombrc modified the milestones: 12, 13 Jan 10, 2018
washort pushed a commit that referenced this issue Jun 10, 2019
washort pushed a commit that referenced this issue Jun 27, 2019
washort pushed a commit that referenced this issue Jun 28, 2019
emtwo pushed a commit that referenced this issue Jul 15, 2019
emtwo pushed a commit that referenced this issue Jul 17, 2019
washort pushed a commit that referenced this issue Sep 16, 2019
emtwo pushed a commit that referenced this issue Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants