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

ui: oss don't ever POST/PUT Namespaces when writing data #7238

Merged
merged 3 commits into from
Feb 7, 2020

Conversation

johncowen
Copy link
Contributor

@johncowen johncowen commented Feb 7, 2020

We missed a couple of places where we use the nonEmptySet function, which
will only perform the set if the specified property is non-empty.

Currently we aren't certain there is a place in OSS where a Namespace
can make its way down via the API and end up being PUT/POSTed back out
again when saved. If this did ever happen we would assume it would be
the default namespace, but additionally we add an extra check here to ensure we never
PUT/POST the Namespace property if Namespaces are disabled.

This additional check could be removed in the future.

John Cowen added 3 commits February 7, 2020 11:23
We missed a coupld of places where we use the noEmptySet function, which
will only perform the set if the specified property is non-empty.

Currently we aren't certain there is a place in OSS where a Namespace
can make its way down via the API and endup being PUT/POSTed back out
again when saved. If this did ever happen we would assume it would be
the default namespace, but we add an extra check here to ensure we never
PUT/POST the Namespace property if Namespaces are disabled.
Including making sure a Namespace property is never sent through if you
are running without namespace support
@johncowen johncowen added the theme/ui Anything related to the UI label Feb 7, 2020
@johncowen johncowen requested a review from a team February 7, 2020 11:29
@johncowen johncowen added this to the 1.7.0 milestone Feb 7, 2020
Copy link
Contributor

@kaxcode kaxcode left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

@johncowen johncowen merged commit ebc574c into ui-staging Feb 7, 2020
@johncowen johncowen deleted the bugfix/ui-oss-dont-send-nspace branch February 7, 2020 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/ui Anything related to the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants