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

fix(integrations): Populate fields with default value to avoid empty labels submitting #29368

Merged
merged 3 commits into from
Oct 18, 2021

Conversation

leeandher
Copy link
Member

@leeandher leeandher commented Oct 16, 2021

This PR will prevent the submitting external issue forms with empty labels for async field. The problem would arise since typing into any of these inputs sends a third party request which will return the results based on what the user typed. Since we have a default reporter for the user, it would often start with the a choice ([value, label]) on load. When the user types into the field, if the result doesn't include the default value, when we overwrite the choices we lose the label associated with it, and the field appears empty. This PR will retain the current value even when the user types into the field.

With the default option pre-loaded

image

image

image

After selecting a new option

Screen Shot 2021-10-18 at 9 46 58 AM

image

@github-actions
Copy link
Contributor

github-actions bot commented Oct 18, 2021

size-limit report

Path Base Size (18f9481) Current Size Change
src/sentry/static/sentry/dist/entrypoints/app.js 52.78 KB 52.78 KB +0.01% 🔺
src/sentry/static/sentry/dist/entrypoints/sentry.css 70.9 KB 70.9 KB 0%

@leeandher leeandher force-pushed the jira-server-attempt3/API-1940 branch from d188c1d to 6142f3e Compare October 18, 2021 22:48
@leeandher leeandher merged commit a537a30 into master Oct 18, 2021
@leeandher leeandher deleted the jira-server-attempt3/API-1940 branch October 18, 2021 23:12
@github-actions github-actions bot locked and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants