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

Hide problem alerts after successful new dataset/property requests #967

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

ktuite
Copy link
Member

@ktuite ktuite commented Apr 12, 2024

Closes getodk/central#624 and closes getodk/central#626

Also add custom error message for property name conflict similar to message for dataset name conflict in PR #966 for issue getodk/central#625. Doing so closes getodk/central#634.

What has been done to verify that this works as intended?

Why is this the best possible solution? Were any other approaches considered?

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

Does this change require updates to user documentation? If so, please file an issue here and include the link below.

Before submitting this PR, please make sure you have:

  • run npm run test and npm run lint and confirmed all checks still pass OR confirm CircleCI build passes
  • verified that any code or assets from external sources are properly credited in comments or that everything is internally sourced

@ktuite ktuite requested a review from matthew-white April 12, 2024 21:26
"newPropertyName": "New property name"
"newPropertyName": "New property name",
"problem": {
"409_3": "A property already exists in this Entity List with the name of “{propertyName}”."
Copy link
Member

@matthew-white matthew-white Apr 14, 2024

Choose a reason for hiding this comment

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

I usually just use quotes for strings that might contain a space. Since propertyName will be a single word, what do you think about removing the quotes around {propertyName}? No strong feelings!

Copy link
Member Author

Choose a reason for hiding this comment

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

I think the quotes isolate the name better than without them, since there is no other formatting.

@ktuite ktuite merged commit 0120e1b into master Apr 15, 2024
1 check passed
@ktuite ktuite deleted the ktuite/hide_alerts branch April 15, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment