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

Changing Model definition will not show changes until after browser refresh #22518

Closed
flamber opened this issue May 8, 2022 · 2 comments · Fixed by #24520
Closed

Changing Model definition will not show changes until after browser refresh #22518

flamber opened this issue May 8, 2022 · 2 comments · Fixed by #24520
Assignees
Labels
.Frontend Priority:P2 Average run of the mill bug Querying/Models aka Datasets .Regression Bugs that were previously fixed and/or bugs unintentionally shipped with new features. .Reproduced Issues reproduced in test (usually Cypress) Type:Bug Product defects
Milestone

Comments

@flamber
Copy link
Contributor

flamber commented May 8, 2022

Describe the bug
When changing a Model's query definition, then the changes do not show until after a browser refresh, which makes it difficult to understand what is happening, and is being confused with query caching.

Workaround: After changing the query definition of a Model, then do a browser refresh.

To Reproduce

  1. Question > SQL > Sample - save as "Q1"
select 1 id, 'a' test1
  1. Turn into a Model
    image
  2. Click Summarize - it shows "ID" and "TEST1" as expected
    image
  3. Click "Edit query definition" - ex. add a column - Save changes
select 1 id, 'a' test1, 'b' test2
  1. Click Summarize - it will not show the newly added "TEST2" column, even though it's part of the results
    image
  2. Do a browser refresh - now it works as expected
    image

Expected behavior
Changes to a Model should be usable instantly without a browser refresh.

Information about your Metabase Installation:
Tested 0.42.0 thru 0.43.0

Additional context
Historically related to #9027 and friends.

@flamber flamber added Type:Bug Product defects Priority:P2 Average run of the mill bug .Frontend .Regression Bugs that were previously fixed and/or bugs unintentionally shipped with new features. Querying/Models aka Datasets labels May 8, 2022
@gusaiani
Copy link
Contributor

gusaiani commented May 17, 2022

@flamber tested it now in master branch and here it works without a browser refresh.

Can you confirm on your side, please?

@flamber
Copy link
Contributor Author

flamber commented May 17, 2022

@gusaiani I'm seeing the same problem on master e0c2058

nemanjaglumac added a commit that referenced this issue Jun 3, 2022
diogormendes pushed a commit that referenced this issue Jun 3, 2022
…fter browser refresh (#23149) [skip ci]

* Add repro for #22518

* Reinforce the test

* Skip repro
github-actions bot pushed a commit that referenced this issue Jun 3, 2022
…fter browser refresh (#23149) [skip ci]

* Add repro for #22518

* Reinforce the test

* Skip repro
diogormendes pushed a commit that referenced this issue Jun 3, 2022
…fter browser refresh (#23149) [skip ci] (#23150)

* Add repro for #22518

* Reinforce the test

* Skip repro

Co-authored-by: Nemanja Glumac <31325167+nemanjaglumac@users.noreply.github.com>
@nemanjaglumac nemanjaglumac added the .Reproduced Issues reproduced in test (usually Cypress) label Jun 3, 2022
@ranquild ranquild self-assigned this Aug 2, 2022
@rlotun rlotun added this to the 0.44 milestone Aug 3, 2022
This was referenced Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.Frontend Priority:P2 Average run of the mill bug Querying/Models aka Datasets .Regression Bugs that were previously fixed and/or bugs unintentionally shipped with new features. .Reproduced Issues reproduced in test (usually Cypress) Type:Bug Product defects
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants