Skip to content

Reorganize draft Files #574

@SoulKa

Description

@SoulKa

Is your feature request related to a problem? Please describe.
The files we keep in a request folder are getting more and more (request-body.txt, ~secrets.json, request.json, and potentially all those files again if there's a draft).

Describe the solution you'd like
It would make sense to keep the file names exactly the same for a draft as for a normal request. This would simplify loading requests as we only need to differ in the directory but not in the file names. Also, reverting changes would be as simple as deleting a directory.

Hidden directories on mac and Linux start with a dot. On Windows, a "hidden" flag on the directory can hide it. So it's sufficient that we name the draft folder .draft on any OS.

Describe alternatives you've considered

Additional context
A request with a draft currently looks like this:

├── ~~secrets.json.bin
├── ~request-body.txt
├── ~request.json
├── request-body.txt
└── request.json

The new version would look like this:

.
├── request-body.txt
├── request.json
├── .secrets.bin
└── .draft/
    ├── request-body.txt
    ├── request.json
    └── .secrets.bin

Metadata

Metadata

Assignees

Labels

architectureArchitectural taskbackendBackend related task

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions