One of the changes that was made was not retrieving all resources for the dropdown filters.
This had an unintended consequence when displaying the selected filters as it's possible for the selected filter to not be in the list of allFilters.
There's two main scenarios this happens (the prerequisite is having more filter options than we display which is 250):
* When filtering down the dropdown filters which means it might not be in the allFilters options. This was fixed by keeping track of all the searched options to be able to display.
* A user uses a query string or bookmarked a URL and goes to it directly. If the option isn't in the initial load, we won't have the actual option. In this case, I changed it to at least just display the ID instead of not showing up at all. Otherwise I'd have to load these selected options separately from the initial load which doesn't seem worth for this edge case.
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.
* chore: 🤖 Upgrade `addons/core` to Ember 4.12.2
Upgrade `addons/core` to Ember 4.12.2
✅ Closes: ICU-11341
* refactor: 💡 testing updating plugin-proposal-decorators version
Update `@babel/plugin-proposal-decorators` to latest version.
* refactor: 💡 testing legacy plugin-proposa-decorators version
Testin `legacy` version for `plugin-proposal-decorators` plugin
* refactor: 💡 testing plugin-proposal-decorators
Testing `@babel/plugin-proposal-decorators`
* refactor: 💡 Revert @babel/exlint-parser to previous version
Revert `@babel/eslint-parser` to use version 2018 EcmaScript version
until further research is done on latest versions
* Update package.json
put @babel/core back into `devDependencies`
* refactor: 💡 testing linging changes
Pushed ember-tempalate-lint, prettier, and ember template lint plugin
for prettier to latest versions to test why CI builds are not passing.
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11341
* refactor: 💡 explicitly inject the store service - icu-6770
✅ Closes: icu-6770
* refactor: 💡 upgrade to ember-intl 6.0.1
includes locale initialization and smoke tests
* refactor: 💡 migrate admin and desktop to ember-intl 6.x
✅ Closes: icu-6771
* chore: 🤖 exclude cldr-core@38.1.0 from license checking
this license was manually checked
* fix: 🐛 fix text naming and linting
* chore: 🤖 update to ember-intl beta
* chore: 🤖 create relative date helper
Create a relative date helper that outputs "time" ago format.
✅ Closes: ICU-5847
* Update addons/core/addon/helpers/relative-datetime-live.js
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
* refactor: 💡 refactor test for relative-date-helper
refactor test for relative-datetime-live helper
✅ Closes: ICU-5847
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
* refactor: 💡 Update language to use Sign In and Sign Out
Update authenticate/deauthenticate language to sign in and sign out
respectively
✅ Closes: ICU-3941
* refactor: 💡 Change translation keys back to (de)authenticate
Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>