This commit has a few notable changes:
1. A simple attempt at establishing a pattern for using SELECT statements. This will be useful in the future for joins/subquery support.
2. Expanded usage of searching to be able to pass instead of just a string, an object that lets a consumer choose which columns to search on.
3. Decouple our session recording filters from being loaded from the route model hook which is a departure from our convention. This has the benefit of actually letting the page first load and having the filters load async so the page doesn't wait for the filters to finish. This is also much faster to query for each individual filter option from SQLite rather than returning all data to filter in application code.
* feat: 🎸 add canRead ability for session model
* refactor: 💡 create constant values for session status types
* feat: 🎸 add link to session detail from sessions list
✅ Closes: ICU-10521
* feat: 🎸 Revised auth-method model
Revised auth-method model to include LDAP attributes
✅ Closes: ICU-10024
* chore: 🤖 create transform for `account_attribute_maps`
Create transform to handle `account_attribute_maps` array
* refactor: 💡 Refactor transform and serializer
Refactor `account_claims_map` transforms overall name and logic to be
used for `account_attributes_map`. Also refactored serializer to
serialize auth-method data, by type.
✅ Closes: ICU-100024
* refactor: 💡 refactor transform
Refactor `account_claim_maps` transform.
* Update addons/api/addon/serializers/auth-method.js
changing naming of serialize method
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* refactor: 💡 refactor serializer
Refactor naming convention for serializer methods and added comments for
attributes.
* refactor: 💡 quick refactor
fixed name for method call in serializer
* refactor: 💡 refactor attributes and serializer
Refactor attributes for `auth-methods` to use the `for` option to select
which attribute belongs to which auth-method.
* Update auth-method.js
comment change
* refactor: 💡 rebase
rebase
* Update addons/api/addon/serializers/auth-method.js
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* Update addons/api/addon/serializers/auth-method.js
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* Update addons/api/addon/serializers/auth-method.js
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* Update addons/api/addon/serializers/auth-method.js
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* Update addons/api/addon/serializers/auth-method.js
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* refactor: 💡 refactor serialize attribute method
refactor serialize attribute method not not include type for password,
and instead let `serializePassword` handle serialization
* refactor: 💡 refactor serializer
Refcator serializer to not include password type in attribute serializer
and added `for` to one missing attribute.
* Update addons/api/addon/serializers/auth-method.js
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
---------
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* feat: 🎸 Update models for vault ssh cert feature (#1591)
✅ Closes: ICU-7546
* feat: 🎸 Setup types in cred library forms and use HDS component (#1597)
* feat: 🎸 Setup types in cred library forms and use HDS component
✅ Closes: ICU-7673
* feat: 🎸 Add vault ssh cert type for credential library (#1608)
* feat: 🎸 Add vault ssh cert type for credential library
✅ Closes: ICU-7678
* feat: 🎸 Enable feature flag for vault ssh cert work (#1614)
* fix: 🐛 Change fields to optional as they get default by backend (#1615)
* Chore/cleanup vault ssh cert (#1616)
* chore: 🤖 Update editor config settings
* chore: 🤖 Add back ember-template-lint-plugin-prettier
* style: 💄 Format admin
* style: 💄 Format desktop
* style: 💄 Format rose
* style: 💄 Format core
* style: 💄 Format api
* feat: 🎸 Add worker serializer
Add worker serializer that focus' on `config_tags.type` and
`canonical_tags.type`.
[API](https://docs.google.com/document/d/1G-lfl8gk9NfoKFImSpHb90E3xC3CSEVDwVy3bJ9eOhA/edit#heading=h.9e06o4b8etpi)
✅ Closes: ICU-5241
* refactor: 💡 refactored `models/worker.js`
Because `canonical_tags` and `config_tags` are `readOnly` attributes, we
could use `attr` decorator instead of `fragment`.
✅ Closes: ICU-5241
* refactored `model/worker.js and deleted un-needed files
* refactor: 💡 Refactored model/worker.js and created test
Refactored model/worker.js to include custom method for POST route for
adding new worker.
BREAKING CHANGE: 🧨 no
✅ Closes: ICU-5241
* refactor: 💡 Refactored custom POST route method for worker
Refactored custom method on `model/worker.js` to include serialization
for `worker_genrated_auth_token`
BREAKING CHANGE: 🧨 no
✅ Closes: ICU-5241
* refactor: 💡 Refactor test
Refactor model/worker-test.js and serializers/worker.js
BREAKING CHANGE: 🧨 no
✅ Closes: ICU-5241
* Update addons/api/addon/serializers/worker.js
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
* update worker.js documentation block
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>