-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
core: add support for hiding applications from the user dashboard #21530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
7a52921
Add meta_hide field to hide apps
melizeche e53ed23
exclude hidden applications from user dashboard
melizeche 39edef0
Add the hide option to the UI
melizeche 43cb397
Add schema
melizeche 417de0a
Add hide setting to application wizard
melizeche f70ec68
Add typescript client changes
melizeche a683948
fix linting
melizeche ff9ee42
Merge branch 'main' into hide_apps
melizeche fd15456
Convert blank://blank to meta_hide=True in the migration
melizeche 7599ed3
fix tests
melizeche 8b58bd7
update docs
melizeche 7fa35e9
fix continuous login
BeryJu 273db8a
Apply suggestions from code review
melizeche facdc49
fix linting
melizeche 49118fc
Merge branch 'main' into hide_apps
melizeche 3162788
Merge branch 'main' into hide_apps
melizeche 5058d6a
fix merge conflict
melizeche 578d293
fix migrations
melizeche 5a0d326
Apply suggestions from code review
melizeche c85a6ad
rename all mentions of dashboard to My applications
melizeche 51bf111
fix merge conflicts
melizeche 8ca826c
generate schema
melizeche a3774f3
generate TS client
melizeche File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
authentik/core/migrations/0059_add_application_meta_hide.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Generated by Django 5.2.12 on 2026-04-09 18:04 | ||
|
|
||
| from django.apps.registry import Apps | ||
| from django.db import migrations, models | ||
| from django.db.backends.base.schema import BaseDatabaseSchemaEditor | ||
|
|
||
|
|
||
| def migrate_blank_launch_url(apps: Apps, schema_editor: BaseDatabaseSchemaEditor): | ||
| db_alias = schema_editor.connection.alias | ||
| Application = apps.get_model("authentik_core", "Application") | ||
|
|
||
| Application.objects.using(db_alias).filter(meta_launch_url="blank://blank").update( | ||
| meta_hide=True, meta_launch_url="" | ||
| ) | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ("authentik_core", "0058_setup"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name="application", | ||
| name="meta_hide", | ||
| field=models.BooleanField( | ||
| default=False, | ||
| help_text="Hide this application from the user's My applications page.", | ||
| ), | ||
| ), | ||
| migrations.RunPython(migrate_blank_launch_url, migrations.RunPython.noop), | ||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.