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

Allows pre-population of the incident title, description, and tags in the incident intake form by including them in the URL path. #3444

Merged
merged 1 commit into from
May 31, 2023

Conversation

metroid-samus
Copy link
Contributor

Adds the following query params for the incident intake form:

  • title
  • description
  • tag (tag name)

Example: :/default/incidents/report?project=default&title=ExampleTitle&description=ExampleDescription&tag=ExampleTag

… the incident intake form by including them in the URL path.
@metroid-samus metroid-samus added the enhancement New feature or request label May 30, 2023
@metroid-samus metroid-samus requested a review from kevgliss May 30, 2023 18:04
}).catch(err => {
// Updating the query fields also updates the URL.
// Frequent updates to these fields throws navigation cancelled failures.
if (isNavigationFailure(err, NavigationFailureType.cancelled)){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we likely do this in other places as well (e.g. when you view the detail page of an incident)

@mvilanova mvilanova merged commit 0d89de8 into master May 31, 2023
@mvilanova mvilanova deleted the origin/enhancement/intake-form branch May 31, 2023 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants