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

Fixes #24209: User sessions should contain the authorizations #5406

Conversation

clarktsiory
Copy link
Contributor

@clarktsiory clarktsiory changed the base branch from branches/rudder/7.3 to backports/7.3.12/24146 February 20, 2024 15:26

transactIOResult(s"Error when retrieving information for previous session for '${userId}'")(xa =>
sql.query[UserSession].option.transact(xa)
)
}

override def deleteOldSessions(olderThan: DateTime): IOResult[Unit] = {
val sql = sql"""delete from usersessuins where creationdate < ${olderThan}"""
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😱

@clarktsiory
Copy link
Contributor Author

clarktsiory commented Feb 20, 2024

PR updated with a new commit : actually we need distinct authorizations or else the column will be filled with duplicate authz, and it's really hard to do in Java, so I added a combineAll method in Scala

@clarktsiory
Copy link
Contributor Author

Commit modified

@clarktsiory clarktsiory force-pushed the bug_24209/user_sessions_should_contain_the_authorizations branch from 42d45ac to 2c582f4 Compare February 20, 2024 15:59
@clarktsiory clarktsiory force-pushed the bug_24209/user_sessions_should_contain_the_authorizations branch from 2c582f4 to 91c43d5 Compare February 21, 2024 17:24
@VinceMacBuche VinceMacBuche merged commit 760a173 into Normation:backports/7.3.12/24146 Feb 23, 2024
10 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants