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

Integrate sessions-storage apis from v27 #129

Merged

Conversation

GunnerUjjwol
Copy link
Contributor

No description provided.

@GunnerUjjwol
Copy link
Contributor Author

something seemed to have changed in the staticcheck library

@@ -87,3 +87,84 @@ func (store *Auth) RegenerateIdpClientConfig(idpID string) (*IdpClientConfig, er

return clientConfig, err
}

// UserSessions fetches valid sessions by userID.
func (store *Auth) UserSessions(offset, limit int, sortkey, sortdir, userID string) (*sessionsResult, error) {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

}

// SourceSessions fetches valid sessions by sourceID.
func (store *Auth) SourceSessions(offset, limit int, sortkey, sortdir, sourceID string) (*sessionsResult, error) {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

@iljaSL iljaSL self-assigned this Apr 17, 2023
api/auth/model.go Outdated Show resolved Hide resolved
api/auth/model.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
.github/workflows/go.yml Outdated Show resolved Hide resolved
resolves the issue because github action parses for eg, unquoted 1.20 as 1.2, quoting it solves the issue
@codeclimate
Copy link

codeclimate bot commented Apr 17, 2023

Code Climate has analyzed commit dd0b11a and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 2

View more on Code Climate.

@iljaSL iljaSL merged commit cd26963 into SSHcom:master Apr 17, 2023
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.

None yet

2 participants