-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
chore: correct order within page result #6847
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this 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! Reviewed everything up to b07aa18 in 1 minute and 21 seconds
More details
- Looked at
539
lines of code in10
files - Skipped
0
files when reviewing. - Skipped posting
9
drafted comments based on config settings.
1. pkg/query-service/app/inframetrics/clusters.go:341
- Draft comment:
Check ifreq.OrderBy
is nil before callingSortBy
to avoid potential nil pointer dereference. - Reason this comment was not posted:
Comment looked like it was already resolved.
2. pkg/query-service/app/inframetrics/daemonsets.go:443
- Draft comment:
Check ifreq.OrderBy
is nil before callingSortBy
to avoid potential nil pointer dereference. - Reason this comment was not posted:
Marked as duplicate.
3. pkg/query-service/app/inframetrics/deployments.go:443
- Draft comment:
Check ifreq.OrderBy
is nil before callingSortBy
to avoid potential nil pointer dereference. - Reason this comment was not posted:
Marked as duplicate.
4. pkg/query-service/app/inframetrics/jobs.go:497
- Draft comment:
Check ifreq.OrderBy
is nil before callingSortBy
to avoid potential nil pointer dereference. - Reason this comment was not posted:
Marked as duplicate.
5. pkg/query-service/app/inframetrics/namespaces.go:344
- Draft comment:
Check ifreq.OrderBy
is nil before callingSortBy
to avoid potential nil pointer dereference. - Reason this comment was not posted:
Marked as duplicate.
6. pkg/query-service/app/inframetrics/nodes.go:357
- Draft comment:
Check ifreq.OrderBy
is nil before callingSortBy
to avoid potential nil pointer dereference. - Reason this comment was not posted:
Marked as duplicate.
7. pkg/query-service/app/inframetrics/pods.go:407
- Draft comment:
Check ifreq.OrderBy
is nil before callingSortBy
to avoid potential nil pointer dereference. - Reason this comment was not posted:
Marked as duplicate.
8. pkg/query-service/app/inframetrics/pvcs.go:377
- Draft comment:
Check ifreq.OrderBy
is nil before callingSortBy
to avoid potential nil pointer dereference. - Reason this comment was not posted:
Marked as duplicate.
9. pkg/query-service/model/infra.go:117
- Draft comment:
Avoid adding non-ClickHouse related functions to the ClickHouseReader interface. TheSortBy
method is correctly placed in the model package. - Reason this comment was not posted:
Comment looked like it was already resolved.
Workflow ID: wflow_KSzGVudvxgEeBxrB
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
amlannandy
approved these changes
Jan 20, 2025
grandwizard28
added a commit
that referenced
this pull request
Jan 20, 2025
feat: add search span scope in the list view tab to add the scope at per Query level (#6810) * feat: add search span scope in the list view tab to add the scope at per query level * feat: add search span scope in the list view tab to add the scope at per query level * feat: add search span scope in the list view tab to add the scope at per query level * feat: add search span scope in the list view tab to add the scope at per query level * feat: add search span scope in the list view tab to add the scope at per query level * feat: add search span scope in the list view tab to add the scope at per query level * feat: add search span scope in the list view tab to add the scope at per query level * feat: add search span scope in the list view tab to add the scope at per query level * feat: add search span scope in the list view tab to add the scope at per query level * feat: add search span scope in the list view tab to add the scope at per query level * feat: add search span scope in the list view tab to add the scope at per query level chore(install-script): install.sh script improvements (#6857) - support for docker compose plugin - check for occupied port when installing SigNoz for the first time - remove unused code Signed-off-by: Prashant Shahi <prashant@signoz.io> chore: correct order within page result (#6847)
amlannandy
pushed a commit
that referenced
this pull request
Jan 21, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Part of #5373
Important
Add sorting functionality to various list responses in the
inframetrics
package, allowing records to be sorted based on specifiedOrderBy
criteria.SortBy
method toClusterListResponse
,DaemonSetListResponse
,DeploymentListResponse
,JobListResponse
,NamespaceListResponse
,NodeListResponse
,PodListResponse
,StatefulSetListResponse
, andVolumeListResponse
ininfra.go
.OrderBy
criteria, defaulting to descending order.OrderBy.Order
isv3.DirectionAsc
.SortBy
inGetClusterList()
inclusters.go
,GetDaemonSetList()
indaemonsets.go
,GetDeploymentList()
indeployments.go
,GetJobList()
injobs.go
,GetNamespaceList()
innamespaces.go
,GetNodeList()
innodes.go
,GetPodList()
inpods.go
,GetPvcList()
inpvcs.go
, andGetStatefulSetList()
instatefulsets.go
.This description was created by for b07aa18. It will automatically update as commits are pushed.