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

Optionally remove 'create incident' button from card #67

Closed
t1agob opened this issue Feb 8, 2024 · 4 comments
Closed

Optionally remove 'create incident' button from card #67

t1agob opened this issue Feb 8, 2024 · 4 comments
Labels
enhancement New feature or request good first issue Indicates a good issue for first-time contributors

Comments

@t1agob
Copy link
Contributor

t1agob commented Feb 8, 2024

Is your feature request related to a problem? Please describe.
Currently the PagerDuty Card shows the 'create incident' button even when configured with service-id only.

According to the documentation if we only use the service-id annotation on the service entity it will not be possible to create incidents and therefore the button becomes greyed-out.

Describe the solution you'd like
To simplify the PagerDuty Card readability I would like the button to fully disappear when the card is configured as read-only or when service-id is the only annotation provided on the service entity configuration.

Additional context
This feature was requested by @asandoval and @jerroydmoore.

@t1agob t1agob added the enhancement New feature or request label Feb 8, 2024
@t1agob t1agob changed the title Optionally remove 'create incident' option from card Optionally remove 'create incident' button from card Feb 8, 2024
@t1agob t1agob added the good first issue Indicates a good issue for first-time contributors label Feb 12, 2024
@t1agob
Copy link
Contributor Author

t1agob commented Feb 12, 2024

This requires a small change in the UI behaviour and therefore is tagged as good first issue for anyone from the community that would like to take it.

@t1agob
Copy link
Contributor Author

t1agob commented Mar 22, 2024

This is now the default behaviour in the new PagerDutyCard UI released on version 0.10.0 of the frontend plugin. I will now proceed to close the issue.

@t1agob t1agob closed this as completed Mar 22, 2024
@github-project-automation github-project-automation bot moved this from Under review to Done in PagerDuty plugin for Backstage Mar 22, 2024
@t1agob
Copy link
Contributor Author

t1agob commented Mar 23, 2024

re-opening issue as it doesn't cover the scenario where integrationKey annotation is not provided.

@t1agob t1agob reopened this Mar 23, 2024
@t1agob t1agob moved this from Done to Todo in PagerDuty plugin for Backstage Apr 2, 2024
@t1agob t1agob moved this from Todo to In Progress in PagerDuty plugin for Backstage Apr 2, 2024
t1agob added a commit that referenced this issue Apr 3, 2024
### Description

This PR introduces a behaviour change when the `integration key` is
missing from an entity configuration. Currently the behaviour is to
disable the button but keep it on the screen.

After discussing the plugin with several customers, many shared with us
that they don't want people to manually create incidents from Backstage
as incidents are automatically created from alerts. Therefore we decided
to remove the button if the integration key is not provided as part of
the entity configuration, like we already do when the `readonly`
parameter is passed to the PagerDutyCard.

This also allows us to save some valuable space in the PagerDutyCard.

**Issue number:** #67 

### Type of change

- [x] New feature (non-breaking change which adds functionality)
- [ ] Fix (non-breaking change which fixes an issue)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)

### Checklist

- [x] I have performed a self-review of this change
- [x] Changes have been tested
- [x] Changes are documented
- [x] Changes generate *no new warnings*
- [x] PR title follows [conventional commit
semantics](https://www.conventionalcommits.org/en/v1.0.0/)

If this is a breaking change 👇

- [ ] I have documented the migration process
- [ ] I have implemented necessary warnings (if it can live side by
side)

## Acknowledgement

By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.

**Disclaimer:** We value your time and bandwidth. As such, any pull
requests created on non-triaged issues might not be successful.
@t1agob
Copy link
Contributor Author

t1agob commented Apr 3, 2024

This feature has now been merged to next and will be release soon when merged to main.

This introduces a change in behaviour and hides the Create Incident button if the PagerDutyCard is marked as readonly AND if the integration-key annotation is not defined on the Entity level.

@t1agob t1agob closed this as completed Apr 3, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in PagerDuty plugin for Backstage Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Indicates a good issue for first-time contributors
Projects
Development

No branches or pull requests

1 participant