Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli): Take request headers, params, and body into account when saving responses #3098
feat(cli): Take request headers, params, and body into account when saving responses #3098
Changes from all commits
b902152
2f0c22f
4a49bf7
ceed125
1e88a7b
33e6ee6
f8504ac
50c99d8
946e9da
7a5a63f
ccde360
9f30ffd
41722d7
0d34977
29c8b96
bde405b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused by this, what does config identity means?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's basically a computed identity for a request config for the case of our integration tests in
integration-templates
. We'd consider two requests identical if the JSON.stringy of two ConfigIdentity objects is the same.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mmh yeah okay, in that case it's not really just an identity it's just an object that can be used as an identity, got confused by that and config is generic but I guess it maps axios
config
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, Config is kind of overloaded for sure. I'm dumping the object only so that it's easier for us to debug when identities don't match - it can be tricky with just a hash to know why something changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not always hashing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's easier to spot why things changed in the recorded payloads if you dump the literal payload, rather than just a hash, but when the payloads get extremely large it's not really reasonable to store them anymore.