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.

Add edit button to Missing Annotation Page

See original GitHub issue

Feature Suggestion

When a plugin isn’t enabled, the Missing Annotation page is shown. At the bottom of the example, a Read More button is available to go to the docs to show how to add the annotation. It would be great if this page also included an Edit button to go straight to the meta data to update it as well.

image

Possible Implementation

I got the visual to work with this rough sample code:

<Grid container>
  <Grid item>
    <Button
      variant="contained"
      color="primary"
      href="https://backstage.io/docs/features/software-catalog/well-known-annotations"
    >
      Edit Metadata
    </Button>
  </Grid>
  <Grid item>
      <Button
        variant="contained"
        color="primary"
        href="https://backstage.io/docs/features/software-catalog/well-known-annotations"
      >
        Read more
      </Button>
  </Grid>
</Grid>

However, what’s really needed is essentially to reuse the code in the catalog plugin (https://github.com/backstage/backstage/blob/master/plugins/catalog/src/components/createEditLink.ts), but since this annotation is in core I wasn’t quite sure how to work that out. (move the catalog code INTO core perhaps?) Since I’m not quite sure, thought I’d open an enhancement to get other’s suggestions/feedback.

Context

It seems reasonable that as a user if I want say, tech docs to be enabled, the missing annotation page tells me not only how, but gives me a super quick link to go directly to the metadata file to actually edit it.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
andrewthauercommented, Dec 9, 2020

@adamdmharvey - I completely agree. I would say that the first is a bit more nuanced though. Possibly split into 2 sub categories. First there are the cases where the backstage managing team needs to configure something globally across the org, and then an annotation can just be configured. The other is when the team needs to do some background work on each entity to configure it. Some examples of the latter for us are sonarqube setup requires CI changes, and the new pagerduty plugin requires configuring integration keys for services. We are working to automate as much of this as possible, but some things are difficult to do that with.

We’ve also introduced some custom annotation catalog processors where we automatically add annotations for things that can be done so using a convention. However, certain things are more difficult to do this with then others.

0reactions
stale[bot]commented, Mar 29, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If you can't find a button or control in Pages on Mac
Choose View > Customize Toolbar (from the menu bar at the top of your screen), then drag the missing button back to the...
Read more >
No edit button after getting edit permission
Go to Space Settings > Space Permissions; Ensure your individual user account, or Group you are a member of, has Add permissions for...
Read more >
Enabling Actions in the Object Page Header - SAPUI5 SDK
Show or Hide the Edit Button (Using updatable-path Annotation). You can choose to display or hide the Edit button on the object page...
Read more >
Configure the edit option - Product Documentation | ServiceNow
Select the Omit edit button check box. Show the Edit option if the check box is cleared and the button does not appear....
Read more >
Delete or Edit buttons may be missing from either the Account ...
Sometimes, you may notice that the Edit or Delete buttons on Account or the Contact object might be missing. ... You won't be...
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