You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] PolicyFilter.Get ignores pagination and sorting parameters #1135
The PolicyFilter.Get() implementation in models/meshmodel/registry/v1beta1/policy_filter.go defines Limit, Offset, OrderOn, and Sort fields, but does not apply these parameters to the GORM query.
The method builds the policy query, counts the matching records, and scans the results without applying SQL pagination or ordering.
Consequently, callers supplying pagination parameters cannot rely on this filter to limit or offset the returned policies. The results are also not ordered according to the requested sorting parameters.
Unlike the corresponding model and component filters, the policy filter does not apply finder.Limit(...) or finder.Offset(...) before retrieving the records.
Expected Behavior
Apply Limit and Offset to the policy query when the corresponding values are provided.
Apply ordering based on OrderOn and Sort, consistent with the registry's existing filter conventions.
Preserve the total count of matching records independently of pagination.
Maintain the existing behavior of returning all matching records when no limit is specified.
Activity
shukria-sultani commentedon Oct 28, 2026
I want to work on this issue, could you please assign this to me?
naveen-cs50-cse commentedon Oct 28, 2026
can i get assigned ?
lekaf974 commentedon Oct 29, 2026
@vedant21-ctr taking a look on this one