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

Structured metadata: Changes to ad-hoc variable doesn't run detected_fields #849

Merged
merged 8 commits into from
Oct 23, 2024

Conversation

gtk-grafana
Copy link
Contributor

Fixes: #847

@gtk-grafana gtk-grafana marked this pull request as ready for review October 22, 2024 19:47
@gtk-grafana gtk-grafana requested a review from a team as a code owner October 22, 2024 19:47
// if this flakes we could just assert that it's greater then 3
expect(requestCount).toEqual(14);
expect(requestCount).toEqual(17);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't know why there is an extra row now, this shouldn't have anything to do with the functional change in this PR, I think it's a consequence of the updates to 11.3

@@ -82,7 +82,7 @@ export class ExplorePage {
}

async scrollToBottom() {
const main = this.page.locator('main#pageContent');
const main = this.page.locator('html');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

scroll container appears to have changed in 11.3

@@ -44,7 +44,7 @@ export class ExplorePage {
}

async setDefaultViewportSize() {
await this.page.setViewportSize({ width: 1280, height: 720 });
await this.page.setViewportSize({ width: 1280, height: 680 });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

window height also changed a bit in 11.3, which had the consequence of adding more lazy loaded elements into the viewport, bumping down the height a tiny bit so we don't have to update a bunch of assertions.

@matyax
Copy link
Contributor

matyax commented Oct 23, 2024

I'm seeing that it correctly runs with filter changes except with patterns.

Test.mov

@gtk-grafana
Copy link
Contributor Author

@matyax great catch, I was initially thinking patterns should be fine because the patterns endpoint doesn't take detected fields, but it turns out detected_fields does take patterns!

Should be fixed now

Copy link
Contributor

@matyax matyax left a comment

Choose a reason for hiding this comment

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

GJ!

@matyax matyax enabled auto-merge (squash) October 23, 2024 14:30
@matyax matyax merged commit daa5d44 into main Oct 23, 2024
4 checks passed
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.

Structured metadata: Changing operator doesn't rundetected_fields
2 participants