Commit Graph

24 Commits

Author SHA1 Message Date
Matthew Irish
e6ec125ead
UI - write without read for kv (#6570)
* wait for all hash promises to be settled

* skeleton tests with policies for write without read

* adjust what gets returned from the model hook

* refactor secret-edit model hook to use async/await

* return a stub version if we can't read secret data

* return a stub model for v1 kv

* tweak tests to make re-runs friendlier

* allow write without CAS if both v2 models cannot be read

* show warnings on edit pages for different write without read scenarios

* add no read empty states on secret show pages

* review feedback

* make message language consistent

* use version models from metadata if we can read it

* refresh route on delete / undelete / destroy

* hide controls in the toolbar when you can't read the secret data

* show deleted / destroyed messaging over cannot read messaging on the show page

* fix test with model stub

* refactor large model hook into several functions

* comment clarifications
2019-04-16 15:27:23 -05:00
Matthew Irish
8da2e1e9b0
UI - kv save error (#6022)
* don't prevent model save when the model is in the error state on secrets creation

* add test
2019-01-10 10:37:25 -06:00
Matthew Irish
dc30fa9cf3
UI secret navigation improvements (#5976)
* don't pass id when using createRecord

* add find nearest ancestor mixin

* re-throw the error if we've deleted something and encounter a 404

* use the with-nav-to-nearest-ancestor mixin

* add some comments

* add acceptance test to verify new behavior

* yield final transition in ec task
2018-12-20 13:46:37 -06:00
Matthew Irish
7cab74ca01
UI - kv v2 graceful degrade (#5879)
* turns out sourcemaps are useful

* add test for restricted policy in kv v2

* only include version param on fetch if it's encoded in the id

* rename some vars for clarity and use model.id when persisting a secret

* fix delete attributes on the models

* allow data edit when there's metadata access is disallowed

* add tests for edit with restricted policy

* hide metadata fields if you can't edit them
2018-12-03 08:22:13 -06:00
madalynrose
5fcd87a07f
Add Response Wrapping For Secrets (#5664) 2018-11-12 11:27:06 -05:00
madalynrose
bd55a623a1
fix bug where json editing doesn't save properly for secrets (#5660) 2018-10-31 18:37:23 -04:00
Matthew Irish
a58745b6b6
UI - kv v2 versions page (#5563)
* add versions routes

* move commands and permissions check to stand-alone menu component

* add versions template

* make list-item component more flexible and use hasMenu to optionally render the menu

* move current check next to the version

* fix linting

* remove is-wide from secret list popup
2018-10-19 17:24:57 -05:00
Matthew Irish
e01d050528 isPending not isLoading 2018-10-18 15:11:26 -05:00
Matthew Irish
24b0e2df7b check capabilities for version actions 2018-10-18 14:55:52 -05:00
Matthew Irish
963c863157 fix tests 2018-10-18 14:55:51 -05:00
Matthew Irish
5c8a71b67a fix metadata save on creation and use autocomplete=off for inputs 2018-10-18 14:55:50 -05:00
Matthew Irish
f7643a519e add in secret metadata form for create 2018-10-18 14:55:50 -05:00
Matthew Irish
077f366954 use model dirty tracking to track changes 2018-10-18 14:55:49 -05:00
Matthew Irish
5d3c576b80 make delete, destory, undelete work via the ui 2018-10-18 14:55:48 -05:00
Matthew Irish
d057ba1a5d move capabilities into the secret-edit component 2018-10-18 14:54:36 -05:00
Matthew Irish
988e0174ba less get in secret-edit 2018-10-18 14:54:35 -05:00
Matthew Irish
564942dcc1 fix linting 2018-10-18 14:54:35 -05:00
Matthew Irish
4dce16776f adjust secret-edit component and associated templates to work for v1 and v2 2018-10-18 14:54:35 -05:00
Matthew Irish
6f89952767
Ember update (#5386)
Ember update - update ember-cli, ember-data, and ember to 3.4 series
2018-09-25 11:28:26 -05:00
Matthew Irish
11377636bd
UI - don't coerce JSON input to an Object (#5271)
* have fromJSON throw if trying to convert non-object to a KVObject

* catch the fromJSON error in secret-edit, display an error, and disabled the submit button
2018-09-05 11:07:39 -05:00
madalynrose
f913d4c1d7 UI Onboarding Wizards (#5196) 2018-08-28 00:03:55 -05:00
madalynrose
00bd282590
Masked input (#4759)
* create masked-input component
2018-06-14 14:52:00 -04:00
Matthew Irish
c1d4243a95
UI - strip secret slash (#4649)
* remove unused didError

* error should fall back to message if the errors array is empty

* strip leading slash when saving a secret
2018-05-29 14:48:55 -05:00
Matthew Irish
2c2f0d853f Moving UI assets to OSS 2018-04-03 09:16:57 -05:00