Skip to content

web: fix application name not showing on admin dashboard#6686

Closed
rissson wants to merge 2 commits intomainfrom
fix-application-name-in-dashboard
Closed

web: fix application name not showing on admin dashboard#6686
rissson wants to merge 2 commits intomainfrom
fix-application-name-in-dashboard

Conversation

@rissson
Copy link
Member

@rissson rissson commented Aug 30, 2023

Details

Since 2023.8, the application name is not showing on the admin dashboard anymore

image

This is due to the fact that the API endpoint used returns nested JSON:

[
  {
    "application": "{\"pk\": \"87b69f323fc64435b181d1fc966cb939\", \"app\": \"authentik_core\", \"name\": \"Nextcloud\", \"model_name\": \"application\"}",
    "counted_events": 56,
    "unique_users": 3
  }
]

whereas it previously returned that application key expanded.

This PR gets rid of the application data altogether and simply gives back the application name.


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)
  • The translation files have been updated (make i18n-extract)

If applicable

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

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
@rissson rissson self-assigned this Aug 30, 2023
@rissson rissson requested a review from a team as a code owner August 30, 2023 09:15
@rissson rissson requested review from smilelyj and removed request for a team August 30, 2023 09:15
@netlify
Copy link

netlify bot commented Aug 30, 2023

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit 2fd9f81
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/64ef0ca3d79c1c0008e718c5

@rissson rissson requested review from BeryJu and kensternberg-authentik and removed request for smilelyj August 30, 2023 09:15
@rissson rissson force-pushed the fix-application-name-in-dashboard branch from 05702d9 to 5b69e56 Compare August 30, 2023 09:17
@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (9572613) 92.48% compared to head (2fd9f81) 92.47%.
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6686      +/-   ##
==========================================
- Coverage   92.48%   92.47%   -0.00%     
==========================================
  Files         561      561              
  Lines       27147    27147              
==========================================
- Hits        25103    25102       -1     
- Misses       2044     2045       +1     
Flag Coverage Δ
e2e 51.58% <100.00%> (-0.01%) ⬇️
integration 26.52% <0.00%> (ø)
unit 89.30% <100.00%> (-0.01%) ⬇️

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

Files Changed Coverage Δ
authentik/events/api/events.py 88.24% <100.00%> (ø)

... and 1 file with indirect coverage changes

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

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
@rissson rissson force-pushed the fix-application-name-in-dashboard branch from 5b69e56 to 2fd9f81 Compare August 30, 2023 09:32
@github-actions
Copy link
Contributor

github-actions bot commented Aug 30, 2023

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-fix-application-name-in-dashboard-1693390499-2fd9f81
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

For arm64, use these values:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-fix-application-name-in-dashboard-1693390499-2fd9f81-arm64
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
image:
    repository: ghcr.io/goauthentik/dev-server
    tag: gh-fix-application-name-in-dashboard-1693390499-2fd9f81

For 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-fix-application-name-in-dashboard-1693390499-2fd9f81-arm64

Afterwards, run the upgrade commands from the latest release notes.

@BeryJu BeryJu closed this in #6689 Aug 30, 2023
@BeryJu BeryJu deleted the fix-application-name-in-dashboard branch August 30, 2023 17:49
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.

1 participant