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

Dashboard: Revert LayoutItemContext #83465

Merged
merged 4 commits into from Mar 4, 2024
Merged

Conversation

leeoniya
Copy link
Contributor

we've switched to using global portals in #81986, so this is no longer needed.

originally introduced in #80116

@leeoniya leeoniya requested review from a team as code owners February 27, 2024 03:58
@leeoniya leeoniya requested review from drew08t, axelavargas, mdvictor, Clarity-89 and eledobleefe and removed request for a team February 27, 2024 03:58
@leeoniya leeoniya added no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes labels Feb 27, 2024
@leeoniya leeoniya self-assigned this Feb 27, 2024
@grafana-delivery-bot grafana-delivery-bot bot added this to the 11.0.x milestone Feb 27, 2024
@grafana-pr-automation grafana-pr-automation bot added area/panel/timeseries The main time series Graph panel area/frontend labels Feb 27, 2024
@grafana-pr-automation
Copy link

grafana-pr-automation bot commented Feb 27, 2024

⚠️   Possible breaking changes (md version)   ⚠️

grafana-ui

Removals

LayoutItemContext
/home/runner/work/grafana/grafana/base/grafana-ui/dist/index.d.ts
LayoutItemContext

LayoutItemContextProps
/home/runner/work/grafana/grafana/base/grafana-ui/dist/index.d.ts
LayoutItemContextProps

LayoutItemContextProps.boostZIndex
/home/runner/work/grafana/grafana/base/grafana-ui/dist/index.d.ts
boostZIndex(): () => void;


Read our guideline
Console output

@grafana-pr-automation grafana-pr-automation bot added the levitate breaking change A label indicating a breaking change and assigned by Levitate. label Feb 27, 2024
@grafana-pr-automation grafana-pr-automation bot requested review from a team and Ukochka and removed request for a team February 27, 2024 04:03
Copy link
Contributor

@baldm0mma baldm0mma left a comment

Choose a reason for hiding this comment

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

Looks like there were/are some breaking changes check issues in drone? But other than that, this works as expected in all tested panel types.

@grafana-pr-automation grafana-pr-automation bot requested a review from a team February 27, 2024 19:42
@leeoniya leeoniya changed the title DashboardGrid: Revert LayoutItemContext Dashboard: Revert LayoutItemContext Feb 27, 2024
Copy link
Collaborator

@codeincarnate codeincarnate left a comment

Choose a reason for hiding this comment

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

Looks good 👍

Copy link
Contributor

@mckn mckn left a comment

Choose a reason for hiding this comment

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

LGTM! I like that we are removing things and making the API surface smaller 🙌🏻

I noticed that we use this in scenes. What it the replacement for LayoutItemContext? Do we have any or are they left on their own to figure this out? I guess that applies to potential external plugins as well.

@grafana-pr-automation grafana-pr-automation bot requested a review from a team March 4, 2024 14:37
@leeoniya leeoniya enabled auto-merge (squash) March 4, 2024 14:42
@leeoniya leeoniya merged commit 7cf419c into main Mar 4, 2024
17 of 18 checks passed
@leeoniya leeoniya deleted the leeoniya/revert-LayoutItemContext branch March 4, 2024 14:47
@dprokop
Copy link
Member

dprokop commented Mar 5, 2024

@leeoniya this requires some kind of revert of grafana/scenes#530 as well, do you mind picking this up?

@leeoniya
Copy link
Contributor Author

leeoniya commented Mar 5, 2024

that pr has more changes in it that im not familiar with. was hoping you peeps could pick it up: grafana/scenes#622

also waiting in scenes update to land zIndex.activePanel removal: #83466 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend area/panel/timeseries The main time series Graph panel levitate breaking change A label indicating a breaking change and assigned by Levitate. no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes
Projects
Status: 🚀 Done
Development

Successfully merging this pull request may close these issues.

None yet

7 participants