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

Warn when editing YAML did not change the object #1222

Merged
merged 1 commit into from
Feb 6, 2017

Conversation

spadgett
Copy link
Member

@spadgett spadgett commented Feb 6, 2017

Show a warning and stay on the edit YAML page when no edits were applied. This can happen when trying to add a property that is not recognized or when misspelling a field name.

See #1221

@jwforres
Copy link
Member

jwforres commented Feb 6, 2017

what happens if someone modifies something else in etcd between the time Edit YAML is opened and when you saved? resourceVersion isn't per object

@spadgett
Copy link
Member Author

spadgett commented Feb 6, 2017

Just tested: it still works.

We're checking that the resource version hasn't changed at all, which seems to be the case always if I add an unrecognized property.

@spadgett
Copy link
Member Author

spadgett commented Feb 6, 2017

@jwforres travis is complaining about dist, and I'm not sure why

@jwforres
Copy link
Member

jwforres commented Feb 6, 2017

cleared the caches and told it to rebuild, if that doesn't work maybe try cleaning your deps? its vendor.js its complaining about, maybe some dependency has changed.

Show a warning and stay on the edit YAML page when no edits were
applied. This can happen when trying to add a property that is not
recognized or when misspelling a field name.
@spadgett
Copy link
Member Author

spadgett commented Feb 6, 2017

Updated to fix dist

@jwforres
Copy link
Member

jwforres commented Feb 6, 2017

[merge]

@openshift-bot
Copy link

Evaluated for origin web console merge up to 6bffb9e

@openshift-bot
Copy link

openshift-bot commented Feb 6, 2017

Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/1012/) (Base Commit: aac7d52)

@openshift-bot openshift-bot merged commit 68c6590 into openshift:master Feb 6, 2017
@spadgett spadgett deleted the no-changes-warning branch February 22, 2017 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants