Skip to content
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

Remove CurrentUserLoader and CurrentUserInterface #1683

Merged
merged 10 commits into from
Feb 15, 2024

Conversation

fraxachun
Copy link
Contributor

@fraxachun fraxachun commented Feb 11, 2024

Sets the basis for #1684

Removes the unnecessary layer between auth-strategies and the CurrentUser-object. Since the UserPermissionsModule is mandatory by any means it is allowed for it to provide the one and only CurrentUser-DTO.

This change is mainly internal facing. However, it could be breaking if a Comet 6 web uses a custom CurrentUserLoader (which was discouraged but possible) or is messing around with the auth-strategies.

Update: the latest commits which remove the CurrentUserInterface require to replace it in the application (mainly when using @GetCurrentUser(). Should we allow this potentially breaking change in 6.x or export a CurrentUserInterface for legacy reasons?

@fraxachun fraxachun changed the title Remove CurrentUserLoader Remove CurrentUserLoader and CurrentUserInterface Feb 13, 2024
@nsams
Copy link
Member

nsams commented Feb 13, 2024

Should we allow this potentially breaking change in 6.x or export a CurrentUserInterface for legacy reasons?

I'd search thru existing v6 projects if it is used

@fraxachun
Copy link
Contributor Author

I'd search thru existing v6 projects if it is used

That won't be a problem, only one project in a dev-branch affected.

fraxachun and others added 3 commits February 13, 2024 17:13
Co-authored-by: Johannes Obermair <48853629+johnnyomair@users.noreply.github.com>
Co-authored-by: Johannes Obermair <48853629+johnnyomair@users.noreply.github.com>
@johnnyomair johnnyomair requested a review from nsams February 14, 2024 07:09
@fraxachun fraxachun merged commit f416510 into main Feb 15, 2024
11 checks passed
@fraxachun fraxachun deleted the remove-current-user-loader branch February 15, 2024 08:17
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.

3 participants