This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Give talkback tapes more descriptive names #1050
Labels
🤖 aspect: dx
Concerns developers' experience with the codebase
✨ goal: improvement
Improvement to an existing user-facing feature
🟩 priority: low
Low priority and doesn't need to be rushed
Problem
The talkback tapes are currently all named "response-${number}.json" which makes it difficult and annoying to figure out whether a particular request is being recorded without having to search the files. It also just makes the directory structure mostly meaningless.
Description
Luckily talkback supports custom tape name generation functions: https://github.com/ijpiantanida/talkback#file-name
We could do something similar to the example maybe:
The method isn't as useful for us (almost all the API requests we make are just GETs) but it would distinguish against the analytics requests pretty well.
Alternatives
We could use any number of alternative naming schemes, we don't have to use the one described above. Experiment a bit and find one that makes sense for the requests we're recording.
Implementation
The text was updated successfully, but these errors were encountered: