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

[APM] Rename ChartsSyncContext to PointerEventContext #84272

Conversation

sorenlouv
Copy link
Member

@sorenlouv sorenlouv commented Nov 24, 2020

ChartsSyncContext was a terrible name to begin with. It's vague without being general in a good way. The risk is that the context can become a kitchen sink of anything that seem remotely related to charts (see: God object)

Solution: change the naming to match exactly what the context does and it will be much more difficult to squeeze extra things in there.
PointerEventContext makes it clear that this context allows the consumer to retrieve and set a shared pointer event between charts. Nothing more, nothing less.

@sorenlouv sorenlouv requested a review from a team as a code owner November 24, 2020 19:18
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Nov 24, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@sorenlouv sorenlouv added release_note:skip Skip the PR/issue when compiling release notes v7.11.0 labels Nov 24, 2020
Copy link
Contributor

@cauemarcondes cauemarcondes left a comment

Choose a reason for hiding this comment

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

LGTM 📈

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
apm 3.1MB 3.1MB +431.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@sorenlouv sorenlouv merged commit 4367a10 into elastic:master Nov 25, 2020
@sorenlouv sorenlouv deleted the rename-chart-sync-context-to-pointer-event-context branch November 25, 2020 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v7.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants