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.

Provide users feedback when their entities are "disconnected" due to renaming/moving of source entity files

See original GitHub issue

Feature Suggestion

Provide some kind of UI feedback on entity pages to alert the user that their entity is “disconnected” from their source entity file.

Possible Implementation

Detect that the associated location entity has been orphaned and apply a similar status to affected entities which we can use to create UI feedback that suggest that the user should unregister the location and reregister their moved entity file?

Context

When a user renames or moves their catalog-info.yaml file, the associated entity becomes “disconnected” and the user is unaware their entity is no longer being updated. See discussion with @freben for more details.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
frebencommented, Aug 31, 2021

This is actually not orphaning. It’s a failure to even begin to process the Location entity, which is not the same as functioning correctly + choosing not to emit the child entity.

Apart from that, yeah you have the right idea. You would essentially take what EntityProcessingErrorsPanel does, plus looking up the chain too.

The part of “looking up”, now how to do that… Hm I wonder what the best semantics are. You probably want to take the backstage.io/managed-by-location annotation and look up all entities that have the exact same value for that annotation. Then show all of their errors.

1reaction
frebencommented, Aug 30, 2021

See the comment here for some potentially related context. https://github.com/backstage/backstage/issues/6991

I poked around with this to get a feel for the end user experience. So as you note, the entity itself doesn’t get marked as no longer being able to update. Instead, the parent generated Location entity is the one that gets the error marker.

Screenshot 2021-08-30 at 21 44 01

So just looking at the underlying entity, you actually can’t see that it’s having issues.

I know when we were drafting this, we discussed error propagation. The idea was not to put a marker on the entity itself, but rather to let the frontend pick out and show errors “up the graph” from the entity instead of just on the entity itself. So it would show both the entity’s own errors, if any, and the backing generated Location’s errors. I think that would be a reasonable frontend low hanging fruit kind of fix.

Was that clear enough? Typed in a slight rush, let me know if it sounds sensible. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rename or move files and folders in TFVC - Azure Repos
Rename or move files and folders using Team Foundation Version Control (TFVC) in Visual Studio.
Read more >
Template:File renaming reasons - Wikimedia Commons
Uploaders often have schemas naming their files; moving files might break them. If possible, language and schema should be preserved, as well as ......
Read more >
Renaming and Relocating Datafiles
Use the ALTER TABLESPACE statement with the RENAME DATAFILE clause to change the filenames within the database. For example, the following statement renames ......
Read more >
NetSuite Essentials
Use Case: Provide users a field where they select a single value from a list of Global regions: • Go to Customization >...
Read more >
DoD EnterpriseIdentity, Credential, and Access Management ...
CS/Architecture and Capability Oversight, DoD ICAM Lead ... provides a set of implementation patterns and their related use cases for ICAM capabilities.
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