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

Feat/legacy json support #108

Merged
merged 1 commit into from
Sep 27, 2021
Merged

Feat/legacy json support #108

merged 1 commit into from
Sep 27, 2021

Conversation

Arvi3d
Copy link
Collaborator

@Arvi3d Arvi3d commented Sep 24, 2021

  • Ready for review
  • Linked to Jira ticket

What does this PR do?

This PR is a pre-requisite to update VSC to use new Code API, instead of the old one.
analysis option now accepts a new key legacy?: boolean to control results' format.

Where should the reviewer start?

How should this be manually tested?

Any background context you want to provide?

Screenshots

Additional questions

src/constants.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@pkey pkey left a comment

Choose a reason for hiding this comment

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

Couple of qs, otherwise lgtm

@Arvi3d Arvi3d force-pushed the feat/legacy-json-support branch 2 times, most recently from bf56e00 to 7412e89 Compare September 27, 2021 13:01
@Arvi3d Arvi3d closed this Sep 27, 2021
@Arvi3d Arvi3d reopened this Sep 27, 2021
removed yalc and updated doc with recommendation to use npm link instead
@Arvi3d Arvi3d force-pushed the feat/legacy-json-support branch from 7412e89 to 0d6b683 Compare September 27, 2021 13:17
@Arvi3d Arvi3d closed this Sep 27, 2021
@Arvi3d Arvi3d reopened this Sep 27, 2021
@Arvi3d Arvi3d merged commit c348870 into master Sep 27, 2021
@Arvi3d Arvi3d deleted the feat/legacy-json-support branch September 27, 2021 13:39
@snyksec
Copy link

snyksec commented Sep 27, 2021

🎉 This PR is included in version 4.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@@ -78,10 +78,10 @@ export async function makeRequest(payload: Payload): Promise<{ success: boolean;
do {
try {
response = await needle(method, url, data, options);
emitter.apiRequestLog(`<= Response: ${response.statusCode} ${JSON.stringify(response.body)}`.slice(0, 399));
emitter.apiRequestLog(`<= Response: ${response.statusCode} ${JSON.stringify(response.body)}`);
Copy link
Contributor

Choose a reason for hiding this comment

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

@Arvi3d @pkey any reason why slice was removed here? This leads to huge chunks of data outputted into a console, degrading overall performance.

Copy link
Contributor

Choose a reason for hiding this comment

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

Seeing this in the console since update:
Screenshot 2021-10-08 at 08 57 33

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ah, i probably forgot to limit it inside vsc.
The idea was that we need to be able to debug this data.
And i was going to do this limiting inside vsc.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Arvi3d got it, thanks. I'll do it on VSC side myself 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants