Skip to content

Fix/anon usage log #1733

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
merged 5 commits into from
Jun 2, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
When an anonymous user visits a published app, a log entry is added t…
…o the app_usage_log table that includes the org_id but not the user_id.
  • Loading branch information
dragonpoo committed Jun 2, 2025
commit e843aab4cdbfc72f394f5023e307c293c84286fb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public Mono<Void> publishApplicationCommonEvent(ApplicationView originalApplicat
return sessionUserService.isAnonymousUser()
.flatMap(anonymous -> {
return sessionUserService.getVisitorOrgMemberCache()
.onErrorReturn(new OrgMember(originalApplicationView.getApplicationInfoView().getOrgId(), originalApplicationView.getApplicationInfoView().getCreateBy(), null, null, 0))
.onErrorReturn(new OrgMember(originalApplicationView.getApplicationInfoView().getOrgId(), null, null, null, 0))
.zipWith(Mono.defer(() -> {
String folderId = applicationView.getApplicationInfoView().getFolderId();
if (StringUtils.isBlank(folderId)) {
Expand Down
Loading