Running the cli with the -q and --json combinations doesn't add the query metadata to the json #181

Open
opened 2024-06-19 16:54:31 +01:00 by Vylpes · 1 comment
Owner
- [x] Fix bug - [x] Update tests - [x] [Add query metadata to its own json object](https://git.vylpes.xyz/RabbitLabs/random-bunny/issues/181#issuecomment-16611)
Vylpes added the
type
bug
label 2024-06-19 16:54:37 +01:00
Vylpes added this to the 2.3.0 milestone 2024-07-26 16:58:46 +01:00
Vylpes removed this from the 2.3.0 milestone 2024-07-27 15:26:39 +01:00
Vylpes added this to the 2.4.0 milestone 2024-08-25 14:15:49 +01:00
Vylpes added this to the 2.4 Sprint 1 project 2024-09-01 14:48:07 +01:00
Vylpes self-assigned this 2024-09-12 19:10:07 +01:00
Vylpes started working 2024-09-14 17:50:21 +01:00
Vylpes stopped working 2024-09-14 17:59:42 +01:00
9 minutes 21 seconds
Vylpes started working 2024-09-15 11:50:45 +01:00
Vylpes stopped working 2024-09-15 11:57:20 +01:00
6 minutes 35 seconds
VylpesTester added spent time 2024-09-15 16:19:36 +01:00
5 minutes
Vylpes modified the project from 2.4 Sprint 1 to 2.4 Sprint 2 2024-10-13 14:15:51 +01:00
Vylpes started working 2024-10-18 18:25:58 +01:00
Vylpes stopped working 2024-10-18 18:58:28 +01:00
32 minutes 30 seconds
Vylpes started working 2024-10-26 20:48:32 +01:00
Vylpes stopped working 2024-10-26 20:53:06 +01:00
4 minutes 34 seconds
Vylpes modified the project from 2.4 Sprint 2 to 2.4 Sprint 3 2024-11-24 15:03:57 +00:00
Vylpes started working 2024-11-27 18:30:44 +00:00
Vylpes stopped working 2024-11-27 18:40:34 +00:00
9 minutes 50 seconds
VylpesTester added spent time 2024-12-02 18:02:26 +00:00
5 minutes
Vylpes started working 2024-12-04 18:26:32 +00:00
Vylpes stopped working 2024-12-04 18:29:59 +00:00
3 minutes 27 seconds
VylpesTester added spent time 2024-12-07 22:21:34 +00:00
5 minutes
Vylpes modified the project from 2.4 Sprint 3 to 2.4 Sprint 4 2025-01-05 16:04:34 +00:00
Author
Owner

It works, but I'd rather the output would add the query data to its own object:

{
    "Author": "Aku-en",
    "Archived": false,
    "Downs": 0,
    "Hidden": false,
    "Permalink": "/r/Rabbits/comments/1i2hysb/bunny_wont_let_anyone_touch_him/",
    "Subreddit": "Rabbits",
    "SubredditSubscribers": 947238,
    "Title": "Bunny won't let anyone touch him",
    "Ups": 12,
    "Url": "https://i.redd.it/fkx8nt73lade1.png",
    "Gallery": [
        "https://i.redd.it/fkx8nt73lade1.png"
    ],
    "Query": {
        "subreddit": "rabbits",
        "sortBy": "hot",
        "limit": 100
    }
}

and the human readable could have a subheading maybe

It works, but I'd rather the output would add the query data to its own object: ```json { "Author": "Aku-en", "Archived": false, "Downs": 0, "Hidden": false, "Permalink": "/r/Rabbits/comments/1i2hysb/bunny_wont_let_anyone_touch_him/", "Subreddit": "Rabbits", "SubredditSubscribers": 947238, "Title": "Bunny won't let anyone touch him", "Ups": 12, "Url": "https://i.redd.it/fkx8nt73lade1.png", "Gallery": [ "https://i.redd.it/fkx8nt73lade1.png" ], "Query": { "subreddit": "rabbits", "sortBy": "hot", "limit": 100 } } ``` and the human readable could have a subheading maybe
Vylpes started working 2025-01-17 17:40:52 +00:00
Vylpes stopped working 2025-01-17 17:55:09 +00:00
14 minutes 17 seconds
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 1 hour 35 minutes
Vylpes
1 hour 20 minutes
VylpesTester
15 minutes
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#181
No description provided.