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

fix: DI userId instead of userSession #2293

Merged
merged 2 commits into from
Aug 21, 2024
Merged

Conversation

susnux
Copy link
Collaborator

@susnux susnux commented Aug 20, 2024

The ActivityManager only needs the user ID so we just can inject the userId. Also make sure that it can be null, because the ActivityManager is DI in the FormsService and the FormsService is used also for public forms where no user is logged in.

@susnux susnux added bug Something isn't working 3. to review Waiting for reviews labels Aug 20, 2024
The `ActivityManager` only needs the user ID so we just can inject the `userId`.
Also make sure that it can be null, because the `ActivityManager` is DI in the `FormsService`
and the `FormsService` is used also for public forms where no user is logged in.

Signed-off-by: Ferdinand Thiessen <[email protected]>
Copy link

codecov bot commented Aug 20, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (main@e9e6701). Learn more about missing BASE report.
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2293   +/-   ##
=======================================
  Coverage        ?   45.03%           
  Complexity      ?      814           
=======================================
  Files           ?       68           
  Lines           ?     3073           
  Branches        ?        0           
=======================================
  Hits            ?     1384           
  Misses          ?     1689           
  Partials        ?        0           

@nickvergessen
Copy link
Member

Config service has a similar issue, didn't check open PRs before sending #2294

@Chartman123 Chartman123 linked an issue Aug 21, 2024 that may be closed by this pull request
@Chartman123
Copy link
Collaborator

Config service has a similar issue, didn't check open PRs before sending #2294

Yes, we're already aware... 🙂 Perhaps @susnux can fix it already, otherwise I'll have a look at it this evening.

@susnux
Copy link
Collaborator Author

susnux commented Aug 21, 2024

Fix is included now

@Chartman123 Chartman123 merged commit 7864e8d into main Aug 21, 2024
50 checks passed
@Chartman123 Chartman123 deleted the fix/activity-manager branch August 21, 2024 11:17
@Chartman123 Chartman123 added this to the 4.3 milestone Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sharing broken in 4.3.0-alpha4
3 participants