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

Remove unused visualizations #3975

Merged
merged 8 commits into from
Aug 18, 2022
Merged

Remove unused visualizations #3975

merged 8 commits into from
Aug 18, 2022

Conversation

flash1293
Copy link
Contributor

@flash1293 flash1293 commented Aug 9, 2022

What does this PR do?

I noticed there were a bunch of trailing visualizations not used on dashboards - I removed them. The owner teams should make sure this makes sense or whether these visualizations were relied on in some way other than adding them to a dashboard.

@flash1293 flash1293 added the enhancement New feature or request label Aug 9, 2022
@elasticmachine
Copy link

elasticmachine commented Aug 9, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-08-18T09:14:01.128+0000

  • Duration: 71 min 51 sec

Test stats 🧪

Test Results
Failed 0
Passed 1166
Skipped 1
Total 1167

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link

elasticmachine commented Aug 9, 2022

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (74/74) 💚
Files 94.574% (122/129) 👎 -2.547
Classes 94.574% (122/129) 👎 -2.547
Methods 89.206% (1124/1260) 👎 -0.211
Lines 93.65% (17211/18378) 👍 1.827
Conditionals 100.0% (0/0) 💚

@flash1293 flash1293 marked this pull request as ready for review August 9, 2022 16:18
@flash1293 flash1293 requested review from a team as code owners August 9, 2022 16:18
@gizas
Copy link
Contributor

gizas commented Aug 10, 2022

From @elastic/obs-cloudnative-monitoring side are you referring to traefik and nginx-ingress-controller ones. Seem good and you can remove those visulaisations. Although not sure 100% if we are the owners of those I approved for those the PR

@flash1293
Copy link
Contributor Author

@elastic/security-external-integrations and @elastic/obs-service-integrations could I please get a review on this?

Copy link
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

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

I don't know of any direct usages of visualizations outside of dashboards so LGTM.

@andrewkroh
Copy link
Member

💡 I think it would be nice to have a warning in the elastic-package tool for unused visualizations.

@ruflin
Copy link
Member

ruflin commented Aug 15, 2022

++ on having a potential warning for viz without reference @elastic/ecosystem team. In theory, someone could build a package with just a visualisations inside but I'm not aware of any package that has this today.

I really appreciate that @flash1293 opened this PR. But at the same time it would be nice if each time could take the diff out of this PR and open a PR for each package that needs it. This will make sure each team can check the package with the removed visualisations to be valid.

@flash1293
Copy link
Contributor Author

It should be fairly simple to do this check - for each package, see whether the ids of visualizations/searches/lenses/maps show up in the references array of another saved object.

@ruflin
Copy link
Member

ruflin commented Aug 16, 2022

To make sure this doesn't get stuck and caught up in conflicts, @andrewkroh @gizas @lalit-satapathy should this PR be merged as is and your team will publish the new versions of the packages or do you pick the changes and open your own PRs.

One thought: Do we really need to increase the version of the packages. I think this is one of the changes where we actually don't need a new release yet of the packages but can wait until a next change happens. Changelog entry is of course still needed.

@flash1293
Copy link
Contributor Author

One thought: Do we really need to increase the version of the packages. I think this is one of the changes where we actually don't need a new release yet of the packages but can wait until a next change happens. Changelog entry is of course still needed.

In that case the next author needs to remember to adjust the version in the changelog, I don't think this is something that has been done before. Also this cleans up the library, so you could argue it's an improvement for the user (albeit a small one).

@andrewkroh
Copy link
Member

should this PR be merged as is and your team will publish the new versions of the packages or do you pick the changes and open your own PRs

I would prefer to merge this PR as is. I'll take care of promoting the new packages owned by security-external-integrations.

@ruflin
Copy link
Member

ruflin commented Aug 17, 2022

@andrewkroh Also fine by me. Can you resolve conflicts and get it in?

@flash1293
Copy link
Contributor Author

Resolved conflicts, @andrewkroh do you know who from @elastic/obs-service-integrations could take a look?

@ruflin
Copy link
Member

ruflin commented Aug 17, 2022

@lalit-satapathy @tommyers-elastic @gizas Could you take a look?

@gizas
Copy link
Contributor

gizas commented Aug 17, 2022

Did another round and all seem good! Double checked and there are no references for the above visualisations. Approved

@lalit-satapathy
Copy link
Collaborator

@lalit-satapathy @tommyers-elastic @gizas Could you take a look?

Changes look good for one package (postgreSQL) that I checked. Added @ManojS-shetty go through all the service integration packages once and confirm there is no issues.

@ManojS-shetty
Copy link
Contributor

Hi @flash1293 ,

Just a quick question, Just observed in apache package as we removed the unused visualisation and i saw in the /img directory for a screenshot image for the dashboard contains the removed visualisation snap. Is that ok here? or we just need to have a dashboard screenshot image which does not show the removed visualisation on the screenshot image.

@flash1293
Copy link
Contributor Author

@ManojS-shetty i guess the screenshots should be updated but it’s unrelated to this pr as the visualization wasn’t part of the dashboard even without my changes.

@flash1293
Copy link
Contributor Author

/test

Copy link
Contributor

@ManojS-shetty ManojS-shetty left a comment

Choose a reason for hiding this comment

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

LGTM!

@flash1293
Copy link
Contributor Author

/test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants