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

Update tool to upload multiple files #20

Merged
merged 27 commits into from
Jul 1, 2024
Merged

Update tool to upload multiple files #20

merged 27 commits into from
Jul 1, 2024

Conversation

carlosu7
Copy link
Contributor

Rename file property to files and update endpoint to upload multiple files according to pixee platform changes

@carlosu7 carlosu7 requested a review from drdavella May 28, 2024 06:58
dist/index.js Outdated
Copy link
Contributor Author

Choose a reason for hiding this comment

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

just for testing purposes

Copy link
Member

@drdavella drdavella left a comment

Choose a reason for hiding this comment

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

Thanks for your patience on this review 😅. I've been holding off since we can't use this until the changes on the platform side have been deployed.

If I'm understanding this change correctly, it looks like we're not actually capturing paginated results for any of the supported tools yet? That's okay but we should work to add support for Sonar issues and hotspots next.

src/action.ts Outdated Show resolved Hide resolved
src/action.ts Outdated Show resolved Hide resolved
src/pixee-platform.ts Outdated Show resolved Hide resolved
@carlosu7 carlosu7 requested a review from drdavella May 31, 2024 00:22
__tests__/action.test.ts Show resolved Hide resolved
src/pixee-platform.ts Outdated Show resolved Hide resolved
@drdavella
Copy link
Member

drdavella commented May 31, 2024

@carlosu7 does it make sense to ship this change without actually implementing pagination for anything? Or should we just go ahead and do this when we implement Sonar pagination?

Does the platform change remain backwards-compatible with the file parameter?

@carlosu7
Copy link
Contributor Author

carlosu7 commented Jun 3, 2024

@carlosu7 does it make sense to ship this change without actually implementing pagination for anything? Or should we just go ahead and do this when we implement Sonar pagination?

Does the platform change remain backwards-compatible with the file parameter?

@drdavella i opened this PR because of the renaming of the form data file to files, but since your comment about keeping it as file, this PR is not required now.

We can hold this PR until pagination is ready, what do you think?

@carlosu7 carlosu7 requested a review from drdavella June 3, 2024 20:07
@drdavella
Copy link
Member

@carlosu7 yes if you want to keep it open and add pagination for Sonar when it's ready, please just request my review again.

@carlosu7
Copy link
Contributor Author

@drdavella it is ready to review, here you can see a test with the following values:
page size = 1
total of sonar issues = 11
expected number of files: 11

https://github.com/carlosu7/WebGoat_12_23/actions/runs/9670042632/job/26677944207

results: any
}

const MAX_PAGE_SIZE = 500;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@drdavella if you would like to test it, you will need to update this value and upload the dist/index.js file

Copy link
Member

@drdavella drdavella left a comment

Choose a reason for hiding this comment

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

@carlosu7 I think this looks good overall but I have just a few minor comments 🙏

src/pixee-platform.ts Outdated Show resolved Hide resolved
__tests__/pixee-platform.test.ts Outdated Show resolved Hide resolved
@carlosu7 carlosu7 requested a review from drdavella June 27, 2024 19:08
@carlosu7 carlosu7 merged commit 238f1ae into main Jul 1, 2024
1 check passed
@carlosu7 carlosu7 deleted the multiple-files-test branch July 1, 2024 18:31
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.

2 participants