-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add export as HAR format for single requests #2715
Add export as HAR format for single requests #2715
Conversation
f372985
to
8f83cd0
Compare
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.
and adds some consistency while we're at it
I was on my way to writing some tests to cover the things addressed in this PR. I was happy to see that we already covered what I was planning to test. However, there were some very surface-level type errors in the tests so I thought it appropriate to fix them while I was in this area of the code for this job.
8f83cd0
to
b8eae1f
Compare
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.
🚀 Works great!
|
||
const workspaceMeta = await models.workspaceMeta.getByParentId(workspace._id); | ||
let environmentId = workspaceMeta ? workspaceMeta.activeEnvironmentId : null; | ||
const environment = await models.environment.getById(environmentId || 'n/a'); |
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.
Curious why is n/a
needed here? Is it a pattern we use often or specific to this method?
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 just a remnant of the past, especially when flow was a thing
Closes #650