Commit Graph
34 Commits
Author SHA1 Message Date
Zhihe Li c3d9fd8fc5 Icu 6657 auth method model fragments refactor (#1507)
* refactor: 💡 Remove fragment usage for arrays in auth method
* chore: 🤖 Remove ember-data-model-fragments

✅ Closes: ICU-6657
2022-12-02 14:29:53 -05:00
Zhihe Li ff7a1fedea Icu 6794 refactor attributes using the newer is nested attribute annotation (#1481) 2022-11-23 14:40:07 -05:00
Randall MoreyandZhihe Li cde6abd445 refactor: 💡 convert brokered cred IDs array to simple attribute (#1259)
* refactor: 💡 convert brokered cred IDs array to simple attribute

* fix: 🐛 missing test assertion

* fix: 🐛 simplify computed

* refactor: 💡 convert host sources array to simple attribute (#1260)

* refactor: 💡 convert host source IDs array to simple attribute

* fix: 🐛 host source tests

* Refactor role fragment arrays (#1262)

* refactor: 💡 convert grant strings to regular attribute

* refactor: 💡 convert principals array to simple attribute

* Update ui/admin/app/routes/scopes/scope/roles/role.js

Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>

Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>

Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>

* fix: 🐛 remove unused import

Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
2022-08-31 09:55:59 -07:00
Devon AndersonandDharini Jeeva 62077d3c25 feat: 🎸 Add worker serializer (#1230)
* 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>
2022-08-09 15:34:42 -04:00
lisbet-alvarezandCameron Perera 821b9b56a7 Icu 5230 credential serializer (#1200)
* feat: 🎸 Create Credential Model in API

✅ Closes: ICU-5229

* feat: 🎸 update credential model

Add attributes to credential model

✅ Closes: ICU-5229

* feat: 🎸 no verify

✅ Closes: ICU-5230

* feat: 🎸 Add credential serializer and tests

✅ Closes: ICU-5230

* feat: 🎸 Add credential serializer

Credential serializer along with unit tests were added.

✅ Closes: ICU-5230

* feat: 🎸 Credential serializer & unit tests

✅ Closes: ICU-5230

* fix: 🐛 Resolved commit conflicts

✅ Closes: ICU-5230

* fix: 🐛 deleted password_hmac from inside the serializer

✅ Closes: ICU-5230

Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>
2022-07-20 12:34:18 -07:00
Randall Morey 890cfe5168 Refactor attributes fragments (#1156)
* refactor: 💡 migrate managed-group off fragments

* refactor: 💡 migrate credential-store off fragments

* refactor: 💡 migrate credential-library off fragments

* refactor: 💡 migrate account off fragments
2022-06-28 19:30:26 -04:00
Carlos Alcaide Corvo cd96313857 feat: 🎸 Add fields to host-catalog model
Add new fields to host-catalog model for plugin type host-catalog.
Fields are corresponding to Azure and Aws plugins.
2022-01-20 08:35:41 -08:00
Susmitha Girumala 6ba9ffc3af chore: Managed groups edit integration fix 2021-11-11 17:58:08 -05:00
Carlos Alcaide Corvo 14623a6386 feat: 🎸 Refactor all managed-group plurals to singular
Refactor all file names and classes declaration from managed-groups
(plural) to managed-group (singular)
2021-11-05 08:55:37 -07:00
Carlos Alcaide Corvo 2620607cc3 feat: 🎸 Finish fragment serializer and tests
Finish fragment serializer and refactor the tests of the model to
accomadate the change.
2021-11-05 08:55:37 -07:00
Randall Morey 10da4af957 chore: 🤖 change fragment-host-set to fragment-host-source 2021-09-20 15:10:04 -04:00
Susmitha Girumala bd50c4f78c feat: Add credential library api 2021-07-12 14:50:53 -04:00
Randall Morey 5519cf8557 feat: 🎸 initial credential-store modeling and mocking 2021-07-01 14:28:53 -04:00
Randall Morey 12588a17ab refactor: 💡 type-specific account serialization 2021-06-04 13:38:23 -04:00
Randall Morey b19583c08d chore: 🤖 tweak oidc attributes serialization 2021-05-21 16:38:59 -04:00
Randall Morey 597b945aca chore: 🤖 complete the fragment-string serializer with normalize 2021-05-20 17:54:00 -04:00
Randall Morey ac8a6054b0 feat: 🎸 add API and mock support for primary auth methods 2021-03-24 18:36:34 -04:00
Randall Morey 715805f0de feat: 🎸 add API support for user accounts 2020-09-30 10:08:24 -04:00
Susmitha Girumala 0a1eafe55e refactor: Refactor seralizeScopeID from models to serializers 2020-09-21 18:23:32 -04:00
Randall Morey 7a17ff3bfa feat: 🎸 add support for custom cancel session method 2020-09-18 10:59:07 -04:00
Susmitha Girumala d9353bdc3b fix: Remove password attribute from account model 2020-09-15 16:51:07 -04:00
Susmitha Girumala 1254a6be37 feat: Normalize host_set_id in target host sets response 2020-09-11 11:09:34 -04:00
Randall Morey ab608c7544 refactor: 💡 serialize scope_id by default 2020-09-10 18:32:17 -04:00
Randall Morey ebf129d35b refactor: 💡 implement new pathing for hosts 2020-09-10 17:59:31 -04:00
Randall Morey e359473811 refactor: 💡 implement new pathing for host catalogs 2020-09-10 16:19:27 -04:00
Randall Morey 4a63c6484f refactor: 💡 implement new pathing for users 2020-09-09 16:53:41 -04:00
Randall Morey a368d65d10 refactor: 💡 implement new pathing for auth methods 2020-09-09 12:24:01 -04:00
Randall Morey 48d4857821 fix: 🐛 pass scope_id in scope payload rather than query string 2020-09-08 11:58:01 -04:00
Randall Morey 40a43fd9be feat: 🎸 add group custom methods for add/remove members 2020-09-01 10:42:16 -04:00
Randall Morey 53a5f91ccf feat: 🎸 add host set management support for tagets in API layer 2020-08-24 18:03:45 -04:00
Randall Morey 7c8c2ff14e feat: 🎸 add host/host-set association support 2020-08-19 18:38:18 -04:00
Randall Morey 971e483d01 feat: 🎸 add principals list tab 2020-08-12 13:41:23 -04:00
Randall Morey ee6999251d chore: 🤖 add support for grants on role model 2020-08-07 15:42:40 -04:00
Randall Morey ae535c607e chore: 🤖 setup API concerns for project resource 2020-05-19 16:33:31 -04:00