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 - kv v2 graceful degrade #5879

Merged
merged 10 commits into from
Dec 3, 2018
Merged

UI - kv v2 graceful degrade #5879

merged 10 commits into from
Dec 3, 2018

Conversation

meirish
Copy link
Contributor

@meirish meirish commented Nov 30, 2018

Currently you need to be able to edit metadata as well as data in the kv v2 for the UI to work. This changes that so that if you don't have access to metadata, you can still edit the data.

Fixes #5840

@@ -181,19 +181,21 @@ export default Component.extend(FocusOnInsertMixin, {
// successCallback is called in the context of the component
persistKey(successCallback) {
let secret = this.model;
let model = this.modelForData;
let secretData = this.modelForData;
Copy link
Contributor

Choose a reason for hiding this comment

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

omg thank you for making this less ambiguous!

@meirish meirish changed the title [WIP] - UI - kv v2 graceful degrade UI - kv v2 graceful degrade Nov 30, 2018
@meirish
Copy link
Contributor Author

meirish commented Dec 2, 2018

This only covers editing when not being able to read the metadata - you still need access to read the data before you can edit. We'll be adding write-only support for data in the near future as well as read/write for metadata when you don't have read on the data.

@meirish meirish merged commit 7cab74c into master Dec 3, 2018
@meirish meirish deleted the ui-kv-v2-graceful-degrade branch December 3, 2018 14:22
@meirish meirish added this to the 1.0 milestone Dec 3, 2018
@v6
Copy link
Contributor

v6 commented Dec 5, 2018

// , I look forward to testing it, thanks for the fast response, Mr. Irish.

@meirish meirish mentioned this pull request Apr 11, 2019
3 tasks
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