AS a developer, I want to be able to control the limit variable used in the Reddit API call #137

Closed
opened 2024-01-09 19:19:32 +00:00 by Vylpes · 0 comments
Owner

Epic:
Story Points: 3


SO THAT I can limit the amount that it fetches

Acceptance Criteria

AS a developer
GIVEN I don't supply a limit
WHEN I run the function
THEN the limit will default to 100

AS a developer
GIVEN I supply a limit
AND the limit is less than 100
AND the limit is greater than 0
WHEN I run the function
THEN the limit will be set

AS a developer
GIVEN I supply a limit
AND the limit is greater than 100
OR the limit is less than 1
WHEN I run the function
THEN the function will error

AS a developer
GIVEN I supply a limit via a --limit=x switch
WHEN I run the CLI
THEN the limit will be set to x

Subtasks

  • Update function
  • Update CLI
  • Update tests
  • Update documentation

Notes

  • The reddit API limits this variable to 100
Epic: \ Story Points: 3 --- SO THAT I can limit the amount that it fetches ## Acceptance Criteria AS a developer GIVEN I don't supply a limit WHEN I run the function THEN the limit will default to 100 AS a developer GIVEN I supply a limit AND the limit is less than 100 AND the limit is greater than 0 WHEN I run the function THEN the limit will be set AS a developer GIVEN I supply a limit AND the limit is greater than 100 OR the limit is less than 1 WHEN I run the function THEN the function will error AS a developer GIVEN I supply a limit via a `--limit=x` switch WHEN I run the CLI THEN the limit will be set to `x` ## Subtasks - [x] Update function - [x] Update CLI - [x] Update tests - [x] Update documentation ## Notes - The reddit API limits this variable to `100`
Vylpes added the
type
story
needs criteria
needs estimate
labels 2024-01-09 19:19:39 +00:00
Vylpes changed title from Add ability to control the limit to AS a developer, I want to be able to control the limit variable used in the Reddit API call 2024-04-07 14:16:11 +01:00
Vylpes removed the
needs criteria
label 2024-04-07 14:19:24 +01:00
Vylpes removed the
needs estimate
label 2024-06-02 16:25:00 +01:00
Vylpes added this to the 2.3.0 milestone 2024-06-02 16:30:35 +01:00
Vylpes self-assigned this 2024-07-25 17:28:39 +01:00
Vylpes added this to the 2.3 Sprint 2 project 2024-07-25 17:28:41 +01:00
Vylpes started working 2024-07-25 17:28:47 +01:00
Vylpes stopped working 2024-07-25 17:48:47 +01:00
20 minutes
Vylpes started working 2024-07-26 16:46:42 +01:00
Vylpes stopped working 2024-07-26 16:55:26 +01:00
8 minutes 44 seconds
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 28 minutes 44 seconds
Vylpes
28 minutes 44 seconds
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/random-bunny#137
No description provided.