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(users_pagination): Paginate /users endpoint #62

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

deo002
Copy link
Collaborator

@deo002 deo002 commented May 22, 2024

Paginated the /users endpoint.

Signed-off-by: deo002 <oberoidearsh@gmail.com>
@deo002 deo002 requested a review from GMishx May 22, 2024 09:28
Copy link
Member

@avinal avinal left a comment

Choose a reason for hiding this comment

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

Looks good to me, haven't tested yet. Please always add PR description.

Maybe we should add templates and encourage these practices. @GMishx @Kaushl2208 WDYT?

pkg/auth/auth.go Show resolved Hide resolved
@@ -69,7 +69,7 @@ func AuthenticationMiddleware() gin.HandlerFunc {
er := models.LicenseError{
Status: http.StatusUnauthorized,
Message: "Invalid token",
Error: err.Error(),
Error: "Invalid token",
Copy link
Member

Choose a reason for hiding this comment

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

Can we have something different here? (Not important BTW)

Copy link
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

LGTM

@GMishx
Copy link
Member

GMishx commented Jun 3, 2024

Looks good to me, haven't tested yet. Please always add PR description.

Maybe we should add templates and encourage these practices. @GMishx @Kaushl2208 WDYT?

Templates are always helpful in keeping things organized and contributions are always welcome 🤗

Copy link
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

Tested, working as expected.

@GMishx GMishx removed the needs test label Jun 3, 2024
@GMishx GMishx merged commit ee3282d into fossology:main Jun 3, 2024
7 checks passed
@GMishx GMishx deleted the users_paginate branch June 3, 2024 08:24
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