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

[Logs / Metrics UI] [NP followup] Cleanup /common #58002

Closed
Kerry350 opened this issue Feb 19, 2020 · 2 comments
Closed

[Logs / Metrics UI] [NP followup] Cleanup /common #58002

Kerry350 opened this issue Feb 19, 2020 · 2 comments
Labels
chore Feature:Logs UI Logs UI feature Feature:Metrics UI Metrics UI feature loe:medium Medium Level of Effort Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services

Comments

@Kerry350
Copy link
Contributor

Kerry350 commented Feb 19, 2020

In new platform world a (sensible) restriction is made that you can't just import any old code from inside of a plugins server and client folders, you may only import from the top level index (i.e. code that is in a contract to share with others).

However, this rule also applies to our own common folder. For now// eslint-disable-next-line @kbn/eslint/no-restricted-paths rules have been added to all the locations where files in our common folder import from server or client. This isn't 100% ideal as theoretically another plugin could come along and import from here now, however we should be okay as our common folder is just common code for us. Moving forward we should refactor these uses - code that lives within common shouldn't be importing from client or server as it no longer makes it common. We should move towards this being for strictly common code (things like HTTP API types). As an example - we currently have React components living within common, these should definitely move to public and so on.

This ticket can also just be approached in an "as we go" manner. If you're working on some code that somehow touches things in /common, try and cleanup some references.

@Kerry350 Kerry350 added Feature:Metrics UI Metrics UI feature Feature:Logs UI Logs UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services labels Feb 19, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

@smith
Copy link
Contributor

smith commented Feb 27, 2023

Not sure if we need to do anything here. Closing.

@smith smith closed this as completed Feb 27, 2023
@zube zube bot removed the [zube]: Done label May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Feature:Logs UI Logs UI feature Feature:Metrics UI Metrics UI feature loe:medium Medium Level of Effort Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
Projects
None yet
Development

No branches or pull requests

5 participants