Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Stevenmasley/paged users#1057

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
Emyrk wants to merge3 commits intomainfromstevenmasley/paged_users
Closed

Conversation

Emyrk
Copy link
Member

@EmyrkEmyrk commentedApr 18, 2022
edited
Loading

What this does

Introduces a method to return paginated data using sqlc

SQL linter brekas on sqlc syntax

greyscaled reacted with hooray emoji
- Currently "before" does not work- Filters not added yet
@codecov
Copy link

codecovbot commentedApr 18, 2022
edited
Loading

Codecov Report

Merging#1057 (60e0059) intomain (4f0f216) willdecrease coverage by5.21%.
The diff coverage isn/a.

@@            Coverage Diff             @@##             main    #1057      +/-   ##==========================================- Coverage   66.77%   61.56%   -5.22%==========================================  Files         241      107     -134       Lines       14668     1137   -13531       Branches      115      115              ==========================================- Hits         9795      700    -9095+ Misses       3882      412    -3470+ Partials      991       25     -966
FlagCoverage Δ
unittest-go-macos-latest?
unittest-go-postgres-?
unittest-go-ubuntu-latest?
unittest-go-windows-2022?
unittest-js61.56% <ø> (ø)
Impacted FilesCoverage Δ
coderd/coderd.go
coderd/coderdtest/coderdtest.go
coderd/database/queries.sql.go
coderd/httpmw/ratelimit.go
coderd/users.go
codersdk/users.go
coderd/database/pubsub_memory.go
cli/parametercreate.go
provisioner/terraform/serve.go
agent/agent.go
... and124 more

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update4f0f216...60e0059. Read thecomment docs.

@BrunoQuaresma
Copy link
Collaborator

Does it conflict with this PR#1028?

@Emyrk
Copy link
MemberAuthor

Does it conflict with this PR#1028?

It does yes. We should pop in a call and discuss.

@BrunoQuaresma
Copy link
Collaborator

Sorry, I put the PR in an "auto-merge" mode before lunch 🤦. But please, let me know if you need any help to solve the conflicts.

@Emyrk
Copy link
MemberAuthor

I talked with@BrunoQuaresma about this and will be closing this PR.

This PR implements cursor based pagination. Offset pagination is vastly simpler and will be sufficient for the UI. The downside of offset of pagination happens with live data. I can circumvent this by adding acreated_after query param to enable cursor based pagination in the forward direction. This means api scripts can use a cursor, while applications like the UI can use an offset.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
V2 Beta
Development

Successfully merging this pull request may close these issues.

3 participants
@Emyrk@BrunoQuaresma@misskniss

[8]ページ先頭

©2009-2025 Movatter.jp