Skip to content

feat: add pagination for server entities #1347

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

Merged
merged 3 commits into from
Dec 27, 2024

Conversation

liu-hm19
Copy link
Contributor

What type of PR is this?

/kind feature

What this PR does / why we need it:

This PR adds pagination for entities of Kusion server.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., design docs, usage docs, etc.:


@liu-hm19 liu-hm19 self-assigned this Dec 18, 2024
@liu-hm19 liu-hm19 added the kind/feature Categorizes issue or PR as related to a new feature label Dec 18, 2024
@liu-hm19 liu-hm19 added this to the v0.14.0 milestone Dec 18, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12503514463

Details

  • 302 of 479 (63.05%) changed or added relevant lines in 28 files are covered.
  • 6 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.2%) to 47.663%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/infra/persistence/run.go 0 1 0.0%
pkg/server/manager/stack/resource.go 0 1 0.0%
pkg/server/manager/source/source_manager.go 23 25 92.0%
pkg/server/manager/stack/util.go 24 26 92.31%
pkg/server/handler/resource/handler.go 13 16 81.25%
pkg/server/handler/stack/handler.go 10 13 76.92%
pkg/server/handler/project/handler.go 12 16 75.0%
pkg/server/handler/source/handler.go 12 17 70.59%
pkg/server/handler/workspace/handler.go 12 17 70.59%
pkg/server/handler/backend/handler.go 12 18 66.67%
Files with Coverage Reduction New Missed Lines %
pkg/server/handler/workspace/handler.go 1 76.04%
pkg/server/handler/source/handler.go 1 76.04%
pkg/server/handler/project/handler.go 2 69.37%
pkg/server/handler/module/handler.go 2 8.55%
Totals Coverage Status
Change from base Build 12479976569: 0.2%
Covered Lines: 10842
Relevant Lines: 22747

💛 - Coveralls

@liu-hm19 liu-hm19 merged commit 67593b8 into KusionStack:main Dec 27, 2024
8 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Categorizes issue or PR as related to a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants