AS a user of the package, I want to have a default value for the "sortBy" variable #50

Closed
opened 2023-02-12 14:01:22 +00:00 by Vylpes · 1 comment
Owner

Story Points: 1


AS a user of the package, I want to have a default value for the "sortBy" variable
SO THAT I don't have to specify it if I don't need it changed

Acceptance Criteria

AS a user of the package
GIVEN I want to use the default variable
WHEN I run the function without specifying a variable
THEN the script should run without saying I didn't give it
AND the script should sort by new

AS a user of the package
GIVEN I want to use a different sorting
WHEN I specify a sortBy value
THEN the script should use this instead

Subtasks

  • Make "sortBy" optional
  • Update tests

Notes

  • sortBy should be defaulted to new
Story Points: 1 --- AS a user of the package, I want to have a default value for the "sortBy" variable SO THAT I don't have to specify it if I don't need it changed ## Acceptance Criteria AS a user of the package GIVEN I want to use the default variable WHEN I run the function without specifying a variable THEN the script should run without saying I didn't give it AND the script should sort by new AS a user of the package GIVEN I want to use a different sorting WHEN I specify a sortBy value THEN the script should use this instead ## Subtasks - [ ] Make "sortBy" optional - [ ] Update tests ## Notes - sortBy should be defaulted to new
Vylpes added the
type
story
needs criteria
needs estimate
labels 2023-02-12 14:01:28 +00:00
Vylpes added this to the 2.2 milestone 2023-06-03 14:23:23 +01:00
Vylpes changed title from Add default variable to "sortBy" in the function to AS a user of the package, I want to have a default value for the "sortBy" variable 2023-07-02 14:40:06 +01:00
Vylpes removed the
needs criteria
label 2023-07-02 14:42:56 +01:00
Vylpes removed the
needs estimate
label 2023-07-30 14:42:54 +01:00
Vylpes added this to the 2.2 Sprint 1 project 2023-09-03 14:33:39 +01:00
Vylpes self-assigned this 2023-09-03 14:34:17 +01:00
Vylpes started working 2023-09-11 20:36:42 +01:00
Vylpes stopped working 2023-09-11 20:51:25 +01:00
14 minutes 43 seconds
Member

This has passed testing, running await randomBunny('rabbits') still runs fine

Screenshot 2023-09-16 at 15.12.07

This has passed testing, running `await randomBunny('rabbits')` still runs fine ![Screenshot 2023-09-16 at 15.12.07](/attachments/7cfdab89-693b-4684-8976-7e9cf55ea157)
VylpesTester added spent time 2023-09-16 15:13:04 +01:00
5 minutes
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Total time spent: 19 minutes 43 seconds
Vylpes
14 minutes 43 seconds
VylpesTester
5 minutes
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: RabbitLabs/random-bunny#50
No description provided.