PagerDuty / backstage-plugin

PagerDuty plugin for Backstage
https://pagerduty.github.io/backstage-plugin-docs/index.html
Apache License 2.0
21 stars 5 forks source link

Reuse previous inputs when creating new incident with empty description #103

Closed MaxineGS closed 1 week ago

MaxineGS commented 2 weeks ago

Describe the bug When i create incident with pagerduty backstage plugin, the first time i create incident with description "Test Incident 1" and click trigger button. Then i open create incident again, the trigger button should be disable with empty description. But I can still click Trigger Incident button, and will create a incident same with previous one.

To Reproduce Steps to reproduce the behavior:

  1. Trigger PagerDuty incident via Backstage with description not empty.
  2. Trigger PagerDuty incident again without description (empty description), a new incident will be created but the description will be the same as the previous one.

Expected behavior Without description, the trigger button should be disabled. (maybe clear description text field each time the create incident modal is closed)

Screenshots

Screenshot 2024-06-11 at 13 46 09
t1agob commented 1 week ago

I was able to replicate the issue. Working on it now!

t1agob commented 1 week ago

This bug is now fixed. Please upgrade to 0.12.2.