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

feat: limit offset logic updated for logs list view #3243

Merged
merged 3 commits into from
Aug 2, 2023

Conversation

nityanandagohain
Copy link
Member

@nityanandagohain nityanandagohain commented Aug 1, 2023

Fixes #3242

This PR adds changes such that limit offset works for both ordering with timestamp and ordering with custom key.

@github-actions github-actions bot added the enhancement New feature or request label Aug 1, 2023
@nityanandagohain nityanandagohain marked this pull request as ready for review August 1, 2023 12:44
@srikanthccv
Copy link
Member

I couldn't understand from the issue/PR description why it doesn't work. Please help me understand the issue.

@nityanandagohain
Copy link
Member Author

nityanandagohain commented Aug 2, 2023

So we didn't handle how limit should work when the order by is timestamp, this PR handles this. So now the frontend has to send limit and offset as well for order by timestamp.

Also it handles the edge cases were limit is less that pagesize or the last page where actual values returned to should be limit-offset instead of pagesize

@srikanthccv

@nityanandagohain nityanandagohain merged commit 68ab022 into develop Aug 2, 2023
9 of 10 checks passed
@nityanandagohain nityanandagohain deleted the issue_3242 branch August 2, 2023 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LOGS: Limit offset issue in logs list view
2 participants