Repository navigation
web/admin/stages/captcha: fix float values in score tresholds fix provider parsing - #22782
Conversation
…rseFloat conditionally on the property if set to true
…r min and max scoreTreshold
…rovider because it is not stored in db, additional to jsUrl and apiUrl compare if preset and stage is interactive and compare if stage has a score set for min and max scoretreshold and compare with if preset supportsScore resolves: goauthentik#22409
fix removed allowFloat from returned html, correctly use property in CaptchaStageForm
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Signed-off-by: Joshua <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #22782 +/- ##
==========================================
+ Coverage 93.14% 93.19% +0.05%
==========================================
Files 1043 1043
Lines 60981 60981
Branches 424 424
==========================================
+ Hits 56801 56832 +31
+ Misses 4180 4149 -31
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
kensternberg-authentik
left a comment
There was a problem hiding this comment.
Not broken. I even checked; parseFloat("-1.0") === parseInt("-1", 10), which is both surprising and delightful.
The number of comparisons in shared.ts bothers me; that's a lot of configuration that has to match for confirmation, which is a code smell meaning that there's a missing name or missing matcher for these two objects.
But it's not broken.
Yes I don't like it as well, I guess an approach would be to store the provider within the database, so the whole function detectProviderFromInstance could be removed (also getCapWidgetUrl), but I didn't wanted to make changes to the scheme, because I didn't knew if the decision to not include the provider in it is intentional. |
* main: (34 commits) lifecycle/container: increase start time to 120s (#23896) ci: fix fork checks (#23894) root: fix docker compose pg volume path for compatibility with pg18 (#23883) ci: better image building (#23359) core: bump library/postgres from 16 to 18 in /scripts (#23812) core: Form friendly error on uniqueness constraint. (#23864) packages: migrate shared pins to the pnpm catalog: protocol (#23784) core, web: update translations (#23863) core: bump github.com/coreos/go-oidc/v3 from 3.19.0 to 3.20.0 (#23867) core: bump github.com/pires/go-proxyproto from 0.13.0 to 0.14.0 (#23868) core: bump golang.org/x/sync from 0.21.0 to 0.22.0 (#23866) core: bump library/node from `a1d9d67` to `ffc7838` in /lifecycle/container (#23871) core: bump axllent/mailpit from v1.30.3 to v1.30.4 in /tests/e2e (#23869) core: bump goauthentik/fips-python from `0d4cd1a` to `80d28af` in /lifecycle/container (#23872) core: bump library/golang from `756f3b7` to `ee5a795` in /lifecycle/container (#23873) core: bump library/node from 26.4.0-trixie to 26.5.0-trixie in /website (#23874) web: fix table refresh button not refreshing table data (#23780) endpoints: handle exception in connector controller sync setup (#23852) internal/outpost/ak: handle empty outpost list during refresh (#23827) web/admin/stages/captcha: fix float values in score tresholds fix provider parsing (#22782) ...
Details
resolves: #22409
Added Property to ak-number-input to allow float values
made detectProviderFromInstance method more distinctive to correctly fill in the previously choosen captcha provider because it is not stored in the database
Checklist
ak test authentik/)make lint-fix)If an API change has been made
make gen)If changes to the frontend have been made
make web)If applicable
make docs)