Add list moons command #449

Merged
Vylpes merged 15 commits from feature/195-list-moons into develop 2024-08-17 16:47:14 +01:00
Owner
  • Add concept of moons to the database
  • Add the list moons command to view a user's moons
  • This command is paginated using buttons

#195

- Add concept of moons to the database - Add the list moons command to view a user's moons - This command is paginated using buttons #195
Vylpes added 6 commits 2024-07-06 17:48:27 +01:00
WIP: Create base moon command
All checks were successful
Test / build (push) Successful in 8s
7b620dfd90
Create lobby command
All checks were successful
Test / build (push) Successful in 5s
690b63470a
Add pagination buttons
All checks were successful
Test / build (push) Successful in 6s
673b258fa9
Vylpes requested review from VylpesTester 2024-07-06 17:48:31 +01:00
VylpesTester was assigned by Vylpes 2024-07-06 17:48:35 +01:00
Vylpes added the
type
story
label 2024-07-06 17:48:41 +01:00
VylpesTester requested changes 2024-07-06 19:08:41 +01:00
Dismissed
@ -0,0 +1,9 @@
CREATE TABLE `moon` (
Member

Need to specify the primary key

Need to specify the primary key
Author
Owner

I haven't for previous migrations, is it worth still doing?

I haven't for previous migrations, is it worth still doing?
VylpesTester marked this conversation as resolved
@ -0,0 +1,3 @@
export default class MoonValues {
Member

Maybe call this MoonConstants? I think that would make more sense

Maybe call this `MoonConstants`? I think that would make more sense
Vylpes marked this conversation as resolved
@ -0,0 +31,4 @@
}
public static async FetchPaginatedMoonsByUserId(userId: string, page: number): Promise<[ Moon[], number ]> {
const rangeStart = page * MoonValues.ListPageLength;
Member

ListPageLength could just be a parameter tbh

`ListPageLength` could just be a parameter tbh
Author
Owner

Or we make it a global page length, affecting all future pages?

Or we make it a global page length, affecting all future pages?
Member

I think just make it a parameter, the issue with that would be adjusting it for 1 and having unintended changes on other pages

I think just make it a parameter, the issue with that would be adjusting it for 1 and having unintended changes on other pages
Vylpes marked this conversation as resolved
Vylpes started working 2024-08-06 18:30:19 +01:00
Vylpes canceled time tracking 2024-08-06 18:30:22 +01:00
Vylpes added 2 commits 2024-08-06 18:37:32 +01:00
Vylpes requested review from VylpesTester 2024-08-07 18:02:34 +01:00
VylpesTester requested changes 2024-08-12 16:11:02 +01:00
Dismissed
VylpesTester left a comment
Member

See comments

See comments
Vylpes added 1 commit 2024-08-12 16:31:56 +01:00
Remove need for MoonConstants file
All checks were successful
Test / build (push) Successful in 6s
4ef8f0edd0
Vylpes added 2 commits 2024-08-14 18:21:16 +01:00
Vylpes added 4 commits 2024-08-15 19:31:43 +01:00
Vylpes requested review from VylpesTester 2024-08-15 19:32:11 +01:00
VylpesTester approved these changes 2024-08-17 16:46:55 +01:00
Vylpes merged commit e2ec042fcd into develop 2024-08-17 16:47:14 +01:00
Vylpes deleted branch feature/195-list-moons 2024-08-17 16:47:14 +01:00
Vylpes referenced this pull request from a commit 2024-08-17 16:47:14 +01:00
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: RabbitLabs/vylbot-app#449
No description provided.