Skip to content
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

Merged
merged 7 commits into from
Sep 22, 2021

Conversation

beardeddragon5
Copy link
Contributor

@beardeddragon5 beardeddragon5 commented Oct 12, 2020

Closes #650

@beardeddragon5 beardeddragon5 changed the title Add export as HAR format Add export as HAR format for single requests Oct 12, 2020
@CLAassistant
Copy link

CLAassistant commented Dec 6, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@develohpanda develohpanda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be working as intended!

image

packages/insomnia-app/app/common/har.ts Outdated Show resolved Hide resolved
packages/insomnia-app/app/common/har.ts Outdated Show resolved Hide resolved
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.
Copy link
Contributor

@gatzjames gatzjames left a 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');
Copy link
Contributor

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?

Copy link
Contributor

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

@dimitropoulos dimitropoulos merged commit 7a8510f into Kong:develop Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Way to dump request with response
7 participants