question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Catalog] Orphan Management View

See original GitHub issue

Feature Suggestion

It would be really helpful to have a view that would allow you to see all the orphans in your catalog. This view would the option to view the orphan in detail - the normal entity view - and would also have an option to delete each orphan (as well as all)

Note: We have built this and would like to contribute it but would like some guidance as to where it should go. Also implementing the delete needs to be added but we wanted to be able to use DeleteEntityDialog but we are unsure the best way forward: https://github.com/backstage/backstage/blob/47dac4081978cfa66ab6f5035b1191c67b6ebb9c/plugins/catalog/src/components/EntityOrphanWarning/EntityOrphanWarning.tsx#L48

Possible Implementation

This could be simply a page with a table at some route, perhaps /catalog/orphans. Here’s a quick example:

image

Though this is currently missing the delete option but it would just be part of the actions column

Context

What we have found as we have been developing our catalog is that things change and move and we end up with odd items in our catalog or in the various graphs. By keeping the orphans cleared this reduces the confusion. Using a script to manage this has been fine for a few users but as others are working in this area a more easy to use option has been helpful

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

6reactions
awanlincommented, Mar 6, 2022

This has turned out to be a little harder than I expected. Still working on it just slowly 😉

5reactions
awanlincommented, Jun 19, 2022

Alright, UI is working as expected now, will tackle tests next. Here’s a quick demo:

https://user-images.githubusercontent.com/67169551/174493584-ff06b4d9-290f-485f-97d8-a3f48580d273.mov

I manually added the ‘backstage.io/orphan’ annotation to fake out an actual orphan for the artist-lookup component (this will also show up as an error because I don’t think these are allowed to be added by hand) and then added an invalid tag to the petstore component to create an error case.

@freben I know you suggested using a dropdown for this, what do you think of how I’ve implemented it here? I’m having a hard time getting this into a dropdown to be honest, my brain is having a hard time figuring out how to handle the two different filters that way. If you have some pointers or suggestions that would be awesome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Orphan management - OpenIAM Documentation
OpenIAM's Orphan Management feature allows admins to locate orphaned accounts and either link them to the user identity, or remove them.
Read more >
Dependent CIs management
When the CI that a dependent CI depends on is deleted, the dependent CI becomes an orphan in the CMDB with no further...
Read more >
S01E02 - Data Catalog the orphan, looking for a family
Data Architect, who have high data management knowledge and good business acumen, are in charge of : documenting the data related informations ...
Read more >
Find orphan variants | Optimizely Developer Community
I was thinking to make a search in the catalog for all variants and then iterate trough them. Then using the linkrepository to...
Read more >
DatActionable: S01E02 - Data Catalog the orphan, looking for a ...
... data catalog with a new business perspective to govern the data. I insist on this point, the need is driven by the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found