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] New platform migration: replace injected vars #44232

Closed
ogupte opened this issue Aug 28, 2019 · 8 comments
Closed

[APM] New platform migration: replace injected vars #44232

ogupte opened this issue Aug 28, 2019 · 8 comments
Assignees
Labels
Team:APM All issues that need APM UI Team support

Comments

@ogupte
Copy link
Contributor

ogupte commented Aug 28, 2019

We rely on injected var in a number of places:

  • apmUiEnabled - in public/hacks/toggle_app_link_in_nav.ts, public/register_feature.js
  • apmIndexPatternTitle - in public/components/app/ServiceDetails/ServiceIntegrations/WatcherFlyout.tsx
  • apmServiceMapEnabled in public/components/app/ServiceDetails/ServiceDetailTabs.tsx, public/components/app/Main/route_config/index.tsx, public/components/app/Home/index.tsx

Related Platform Issue: #41990

Follow the details outlined in the platform PR #50641 to define a set of whitelisted configs that can be referenced from the client.

@sorenlouv sorenlouv added to-be-groomed Team:APM All issues that need APM UI Team support and removed [zube]: Inbox labels Aug 28, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui

@smith
Copy link
Contributor

smith commented Oct 2, 2019

There's some additions in #46497. Search for apmServiceMapEnabled.

@smith
Copy link
Contributor

smith commented Oct 3, 2019

Asked @joshdover about what we should use to replace this. He wrote:

We don’t currently have a replacement ready yet, but our plans are here: #41990.

I’d recommend just leaving it as-is until we complete this

Looking at where we have this on our backlog, I’d guess this is about 3-4 weeks out from getting done.

Putting this ticket back in the backlog.

@smith
Copy link
Contributor

smith commented Nov 11, 2019

Labelling as blocked by #41990.

@smith smith added the blocked label Nov 11, 2019
@joshdover
Copy link
Contributor

Want to point out that we have exposed the old getInjectedVar API on core.injectedMetadata.getInjectedVar for now. This only enables getting vars injected from the server-side legacy plugin, but can be consumed by a NP plugin. It will still be replaced by #41990, but could help out in the meantime if you're blocked.

@sorenlouv
Copy link
Member

@joshdover Instead of using the inject stuff we might just make an endpoint like GET /api/apm/config that returns a whitelist of config options. WDYT?

@joshdover
Copy link
Contributor

joshdover commented Nov 11, 2019 via email

@dgieselaar
Copy link
Member

dgieselaar commented Nov 18, 2019

PR: Expose whitelisted config values to client-side plugin #50641

@smith smith self-assigned this Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:APM All issues that need APM UI Team support
Projects
None yet
Development

No branches or pull requests

6 participants