* chore: 🤖 import explicit mirage references
* chore: 🤖 add mirage setupMirage helper
* chore: 🤖 working example with application adapter test
* chore: 🤖 use internal setupMirage test helper from api addon
* chore: 🤖 conditionally load mirage
* chore: 🤖 filter mirage folder inclusion in production builds
* chore: 🤖 drop ember-mirage and use our own test helpers
* chore: 🤖 collapse reference to import declaration
* docs: ✏️ add comment better explaining the mirage test env
* chore: 🤖 update configuration and manage mirage-related deps
* fix: 🐛 restore ipc mock and add missing checkOS handler
* chore: 🤖 add comment explaining omitting mirage deps in build
* chore: 🤖 allow mirage.enabled to include deps and handlers
* chore: 🤖 re-enable mirage for core dummy app
* Add missing copyright headers
* chore: 🤖 use embroider macros to conditionally start mirage
* docs: ✏️ update api readme for mirage changes
* chore: 🤖 replace remaining ember-cli-mirage references
* chore: 🤖 add mirage to test builds
* fix: 🐛 ensure that auto mirage start doesn't happen in test env
* chore: 🤖 use const instead of var
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
* refactor: 💡 use cleaner logic for excluded api build modules
* fix: 🐛 handle issue where importSync was too eager
This was fixed by bumping the @embroider/macros dependency that includes
a fix to this issue:
https://github.com/embroider-build/embroider/pull/2511
* refactor: 💡 move mirage from addon to app directory
* refactor: 💡 update mirage test helper to be a factory
* chore: 🤖 exclude mirage directory when necessary at build time
* chore: 🤖 add miragejs as admin dev dependency
* refactor: 💡 update reference to startMirage
* chore: 🤖 update local mirage test helper
* chore: 🤖 change import path for mirage on desktop
* chore: 🤖 update imports in tests for startMirage
* chore: 🤖 update startMirage imports for api addon tests
* chore: 🤖 add miragejs dev dep to desktop
* docs: ✏️ update README
* chore: 🤖 set up setupMirage for core tests
* chore: 🤖 fix copyright header
* Add missing copyright headers
---------
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
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>