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 broken metric revision API call #42634

Merged
merged 7 commits into from
May 14, 2024

Conversation

nemanjaglumac
Copy link
Member

@nemanjaglumac nemanjaglumac commented May 14, 2024

Description

This PR Fixes #42633 that broke in two places:

  1. Table metada (datamodel)
  2. Data reference page

It adds E2E reproductions for both cases.
It also consolidates some of the existing tests (but this was just a boy scout cleanup)

How to verify

  • Follow the steps from the original issue.
  • E2E tests should pass

Checklist

  • Tests have been added/updated to cover changes in this PR

Copy link

replay-io bot commented May 14, 2024

Status In Progress ↗︎ 53 / 54
Commit 6f902e9
Results
⚠️ 6 Flaky
2499 Passed

@nemanjaglumac nemanjaglumac added the no-backport Do not backport this PR to any branch label May 14, 2024
Comment on lines +249 to +260
cy.log("Make sure the revision history works (metabase#42633");
cy.get("tbody tr").icon("ellipsis").click();
popover().findByTextEnsureVisible("Revision History").click();
cy.location("pathname").should(
"eq",
"/admin/datamodel/metric/1/revisions",
);
cy.findByRole("heading").should(
"have.text",
'Revision History for "ORDERS"',
);
cy.findAllByRole("listitem").should("contain", "time for a change");
Copy link
Member Author

Choose a reason for hiding this comment

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

The relevant bit for the repro.

Comment on lines +62 to +76
cy.log(
"Make sure this is reflected in the revision history (metabase#42633)",
);
cy.findAllByRole("listitem")
.filter(':contains("Revision history for orders < 100")')
.click();

cy.location("pathname").should(
"eq",
`/reference/metrics/${id}/revisions`,
);
cy.findAllByRole("listitem").should(
"contain",
"Renaming the description",
);
Copy link
Member Author

Choose a reason for hiding this comment

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

The relevant bit for the repro.

@nemanjaglumac nemanjaglumac enabled auto-merge (squash) May 14, 2024 15:14
@nemanjaglumac nemanjaglumac merged commit f4c7b9f into master May 14, 2024
112 checks passed
@nemanjaglumac nemanjaglumac deleted the qc-fix-metrics-revision-history branch May 14, 2024 16:27
Copy link

@nemanjaglumac Did you forget to add a milestone to the issue for this PR? When and where should I add a milestone?

johnswanson pushed a commit that referenced this pull request May 14, 2024
* Fix broken metric revision API call

Fixes #42633

* Add E2E repro for #42633

* Fix metrics revision history in the data reference

* Add repro for #42633 for the reference page

* Consolidate tests

* Do not use hard coded id

* Fix lint errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport Do not backport this PR to any branch support/Repro .Team/QueryingComponents
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Metrics (v1) revisions API is broken
2 participants