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

add pagination for project list api #839

Conversation

AmanGIT07
Copy link
Contributor

Add pagination support for List projects API

request params:
page_size
page_num

Test:
Request -
curl --location '<>/v1beta1/users/self/projects?org_id=b449618d-7b9a-4793-9f12-8ae36937df19&page_size=1&page_num=2' \ --header 'Accept: application/json' \ --header 'Cookie:

Response -

{
    "projects": [
        {
            "id": "",
            "name": "",
            "title": "",
            "org_id": "",
            "metadata": {},
            "created_at": "",
            "updated_at": "",
            "members_count": 0
        }
    ],
    "access_pairs": [],
    "count": 2
}

Copy link

vercel bot commented Dec 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
frontier ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 23, 2024 9:54am

@coveralls
Copy link

coveralls commented Dec 18, 2024

Pull Request Test Coverage Report for Build 12464846224

Details

  • 2 of 23 (8.7%) changed or added relevant lines in 3 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.02%) to 30.356%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/api/v1beta1/user.go 0 3 0.0%
internal/store/postgres/project_repository.go 1 19 5.26%
Files with Coverage Reduction New Missed Lines %
internal/api/v1beta1/user.go 1 48.6%
Totals Coverage Status
Change from base Build 12430250190: -0.02%
Covered Lines: 7678
Relevant Lines: 25293

💛 - Coveralls

@AmanGIT07 AmanGIT07 merged commit e065480 into main Jan 3, 2025
7 checks passed
@AmanGIT07 AmanGIT07 deleted the feature/ide-760-add-pagination-to-selfprojects-list-api-of-frontier branch January 3, 2025 07:34
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