-
Notifications
You must be signed in to change notification settings - Fork 20
Scenes: Updating to v6 #1019
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
Scenes: Updating to v6 #1019
Conversation
This is currently breaking the entire app 😢 Seems to be getting thrown on this line on the third render:
Error thrown in Grafana
Error thrown when debugging:
|
Yeah, I know 😢 I am looking into it, will get back once I have found the root cause @gtk-grafana 👍 . |
f41f07e
to
1cdaeff
Compare
Hey @gtk-grafana 👋 I have managed to make the app work locally after doing some more updates, and the tests pass as well now. (The PR is not ready, as there are still a few temporary Please let me know if you encounter any issues. 🙏 |
@leventebalogh everything seems to work as expected, I removed the ts-ignores.
Deleting node_modules and re-installing doesn't seem to fix. |
@leventebalogh do you know more about the above, it's worrisome that we're not using v5 but it's still throwing warnings when building |
I think that grafana/ui is looking for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please click around and verify that everything works :)
Everything appears to be working in the application, but I'm seeing this in the console:
|
@leventebalogh @L2D2Grafana is going to take this over and hopefully get this over the finish line |
@gtk-grafana Sorry for not being responsive on this lately, I got snowed under with other plugins-platform tasks that needed to be finished before G12. Sure and thanks a lot! |
Interesting I'm now seeing the Update |
Alright updated to [email protected] let's go 🚀! |
playwright.config.ts
Outdated
@@ -33,12 +33,11 @@ export default defineConfig<PluginOptions>({ | |||
|
|||
|
|||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ | |||
trace: 'on-first-retry', | |||
|
|||
trace: 'on', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on-first-retry
makes the initial execution quite a bit faster, and less resource intensive
@@ -13,6 +13,6 @@ export class LogsSceneQueryRunner extends SceneQueryRunner { | |||
|
|||
// @todo can we make runWithTimeRange protected? (https://github.com/grafana/scenes/pull/866) | |||
// Hack to call private method | |||
this['runWithTimeRange'](timeRange); | |||
this['runWithTimeRangeAndScopes'](timeRange); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oofdah, I should have cleaned this up by now, created #1201 to track my shame
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, works well locally.
Note
This is PR in its current form is mostly for demonstration purposes, I would leave the final touches and the merging to the @grafana/observability-logs team (of course happy to help in case there are any questions or issues).
What changed?
This PR updates to use scenes
v6.0.0
.Notes for the reviewers
Please keep in mind that the PR is still depending on the canary version, which should be updated before merged. There are also a few temporary
@ts-ignore
statements that needs to be fixed before merging.