Skip to content

admin: Handle latest version unknown in admin dashboard#8858

Merged
BeryJu merged 3 commits intogoauthentik:mainfrom
RoboMagus:fix_dashboard_version_status
Mar 15, 2024
Merged

admin: Handle latest version unknown in admin dashboard#8858
BeryJu merged 3 commits intogoauthentik:mainfrom
RoboMagus:fix_dashboard_version_status

Conversation

@RoboMagus
Copy link
Contributor

Details

This PR adds an additional check to the latest version to see if it is a valid version and not a dummy default value.
This is used to remove the false statement that Authentik is 'Up-to-date!' in environments where the update check is disabled.

Closes #8857


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make website)

@RoboMagus RoboMagus requested review from a team as code owners March 9, 2024 10:46
@netlify
Copy link

netlify bot commented Mar 9, 2024

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 85a04e4
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/65f47417847219000916f6ae
😎 Deploy Preview https://deploy-preview-8858--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Mar 9, 2024

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 85a04e4
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/65f47417847219000916f6ac
😎 Deploy Preview https://deploy-preview-8858--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codecov
Copy link

codecov bot commented Mar 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.33%. Comparing base (cef1d2d) to head (85a04e4).
Report is 346 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #8858       +/-   ##
===========================================
+ Coverage   46.62%   92.33%   +45.70%     
===========================================
  Files         626      640       +14     
  Lines       30996    31546      +550     
===========================================
+ Hits        14451    29127    +14676     
+ Misses      16545     2419    -14126     
Flag Coverage Δ
e2e 50.47% <57.14%> (+5.75%) ⬆️
integration 26.08% <14.28%> (+0.09%) ⬆️
unit 89.68% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu changed the title Handle latest version unknown in admin dashboard admin: Handle latest version unknown in admin dashboard Mar 11, 2024
@rissson
Copy link
Member

rissson commented Mar 11, 2024

Could we not just check for v0.0.0 in the web UI instead of adding a new field to the API?

@RoboMagus
Copy link
Contributor Author

Could we not just check for v0.0.0 in the web UI instead of adding a new field to the API?

That's also an option IMO, but I wouldn't like to add any magic values that are used in more than one place.

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu merged commit ce07752 into goauthentik:main Mar 15, 2024
kensternberg-authentik added a commit that referenced this pull request Mar 18, 2024
* main: (31 commits)
  root: support redis username (#8935)
  core: bump black from 24.2.0 to 24.3.0 (#8945)
  web: bump the wdio group in /tests/wdio with 2 updates (#8939)
  web: bump the sentry group in /web with 1 update (#8941)
  website: bump postcss from 8.4.35 to 8.4.36 in /website (#8940)
  core: bump twilio from 9.0.1 to 9.0.2 (#8942)
  core: bump ruff from 0.3.2 to 0.3.3 (#8943)
  events: discard notification if user has empty email (#8938)
  ci: always run ci-main on branch pushes (#8950)
  core: bump goauthentik.io/api/v3 from 3.2024022.2 to 3.2024022.3 (#8946)
  website/docs: add new name "Microsft Entra ID" for Azure AD  (#8930)
  outposts: Enhance config options for k8s outposts (#7363)
  website/docs: add link to CRUD docs (#8925)
  web: bump API Client version (#8927)
  outpost: improved set secret answers for flow execution (#8013)
  stages/user_write: ensure user data is json-serializable (#8926)
  website/docs: update example ldapsearch commands (#8906)
  admin: Handle latest  version unknown in admin dashboard (#8858)
  core: bump coverage from 7.4.3 to 7.4.4 (#8917)
  core: bump urllib3 from 1.26.18 to 2.2.1 (#8918)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False version status in admin dashboard for AirGapped environments

3 participants