web/user: fix broken search on application library#5743
web/user: fix broken search on application library#5743kensternberg-authentik merged 1 commit intomainfrom
Conversation
This is *mortifying*. I didn't test this well enough, and apparently
broke it again once I'd tested it. This patch restores the original
behavior ("no match" means "just show everything"), and fixes a
small bit of semantic lint -- the "search" feature should not be
assigning meaning to what it finds; it's enough to pass back the
prioritized list to whatever client wanted it, and let the client
decide what to do with it.
|
|
||
| renderSearch() { | ||
| return html`<ak-library-list-search .apps="{this.apps.results}"></ak-library-list-search>`; | ||
| return html`<ak-library-list-search .apps=${this.apps.results}></ak-library-list-search>`; |
There was a problem hiding this comment.
This was the real issue; everything else is just dealing with errors to the console when the field is cleared (when there is no app[0]). I got this to work, then moved it here and effed-up my argument call. Massive apologies.
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #5743 +/- ##
==========================================
- Coverage 92.65% 92.64% -0.00%
==========================================
Files 547 547
Lines 26227 26242 +15
==========================================
+ Hits 24298 24310 +12
- Misses 1929 1932 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-library-search-1684943529-dfd40e0
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sFor arm64, use these values: AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-library-search-1684943529-dfd40e0-arm64
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-library-search-1684943529-dfd40e0For arm64, use these values: authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-library-search-1684943529-dfd40e0-arm64Afterwards, run the upgrade commands from the latest release notes. |
web: fix broken search on application library
This is *mortifying*. I didn't test this well enough, and apparently
broke it again once I'd tested it. This patch restores the original
behavior ("no match" means "just show everything"), and fixes a
small bit of semantic lint -- the "search" feature should not be
assigning meaning to what it finds; it's enough to pass back the
prioritized list to whatever client wanted it, and let the client
decide what to do with it.
This is mortifying. I didn't test this well enough, and apparently broke it again once I'd tested it. This patch restores the original behavior ("no match" means "just show everything"), and fixes a small bit of semantic lint -- the "search" feature should not be assigning meaning to what it finds; it's enough to pass back the prioritized list to whatever client wanted it, and let the client decide what to do with it.
Details
Resolves #5171
Changes
Fixes the search feature so that the data being passed back and forth correspond to the design.
ak test authentik/)make lint-fix)If an API change has been made
make gen-build)If changes to the frontend have been made
make web)make i18n-extract)