wip/member-improvements #44

Closed
radical wants to merge 0 commits from wip/member-improvements into main
Owner

Renames function Member::fetch_one_with_member() to Member::fetch_one_with_uuid()

Changes how member fetching is done to fetch member, user and friend status in the same sql request, makes requests miles faster.

Add pagination to members
Example pagination without objects filled

{
  "objects": [],
  "amount": 50,
  "pages": 100,
  "page": 10
}

Requests with pagination will have 2 query parameters, page and per_page

Renames function Member::fetch_one_with_member() to Member::fetch_one_with_uuid() Changes how member fetching is done to fetch member, user and friend status in the same sql request, makes requests miles faster. Add pagination to members Example pagination without objects filled ```json { "objects": [], "amount": 50, "pages": 100, "page": 10 } ``` Requests with pagination will have 2 query parameters, page and per_page
radical added 2 commits 2025-08-04 20:58:39 +00:00
refactor: rename fetch_one_with_member
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
8d91ec78a6
Renamed to fetch_one_with_uuid
baaboe approved these changes 2025-08-04 21:41:39 +00:00
Dismissed
@ -130,0 +169,4 @@
)
.order_by(coalesce(
dsl::nickname,
users::display_name,
Member

Why is it ordering a single member

Why is it ordering a single member
baaboe marked this conversation as resolved
@ -146,0 +209,4 @@
.order_by(coalesce(
dsl::nickname,
users::display_name,
users::username,
Member

Why ordering a single member

Why ordering a single member
baaboe marked this conversation as resolved
@ -146,0 +226,4 @@
dsl::nickname,
users::display_name,
users::username,
))
Member

Why ordering a single member

Why ordering a single member
@ -79,0 +79,4 @@
#[derive(Serialize)]
pub struct Pagination<T> {
objects: Vec<T>,
amount: i32,
Member

More consistency on variable names. amount and per_page should have same name.

More consistency on variable names. amount and per_page should have same name.
radical added 2 commits 2025-08-04 22:02:37 +00:00
fix: use dedicated function for member count
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
ci/woodpecker/pull_request_closed/build-and-publish Pipeline was successful
ac1678bfa8
baaboe approved these changes 2025-08-04 22:05:06 +00:00
Author
Owner

Merged manually

Merged manually
radical closed this pull request 2025-08-04 22:09:41 +00:00
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
ci/woodpecker/pull_request_closed/build-and-publish Pipeline was successful

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: gorb/backend#44
No description provided.