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

dev #1519

Merged
merged 10 commits into from
Feb 22, 2024
Merged

dev #1519

merged 10 commits into from
Feb 22, 2024

Conversation

baywet
Copy link
Member

@baywet baywet commented Feb 21, 2024

  • chore(deps): bump dawidd6/action-download-artifact from 3.1.0 to 3.1.1
  • Added a test for the completion of a file content update via LargeFileUploadTask
  • Fixed test and fixed a bug
  • Test fix and updating releases
  • - fixes implementation difference for large file upload session
  • - reverts status code changes
  • - code linting
  • - fixes NRP in large file upload

dependabot bot and others added 10 commits February 19, 2024 08:20
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/dawidd6/action-download-artifact/releases)
- [Commits](dawidd6/action-download-artifact@v3.1.0...v3.1.1)

---
updated-dependencies:
- dependency-name: dawidd6/action-download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
…s/dawidd6/action-download-artifact-3.1.1

chore(deps): bump dawidd6/action-download-artifact from 3.1.0 to 3.1.1
The test UploadResponseHandlerTest#getUploadSessionOnProgressingUpload mimicked a server response with a 200/OK response code.
In the REST reference (https://learn.microsoft.com/en-us/graph/api/driveitem-createuploadsession?view=graph-rest-1.0#upload-bytes-to-the-upload-session) it is stated that the response code for uploading more bytes to the upload session is 202/Accepted.
The bug in #1517 is fixed.
Previously the method UploadResponseHandler#handleResponse handled differently the response in these two cases:
- response code 200/OK
- all other cases

Now the same method handles differently the response in these two cases:
- response code 200/OK or 201/Created
- all other cases

Everything works if the REST reference is corrected and:
- 200/OK is returned when an item is updated, 201/Created is returned when an item is Created
- 202/Accepted is returned when more bytes are requested
- Updated the patch version in gradle.properies
- Updated changelog.md and readme.md with the new patch version
- Bumped kiota dependencies to 1.0.3
- Fixed the test UploadSliceRequestTest.putReturnsExpectedUploadSession which did not respect the response descripted in the REST reference
Signed-off-by: Vincent Biret <[email protected]>
Fix for issue 1517 and correction of two tests not respecting the REST reference (impacted by the fix)
@baywet baywet requested a review from a team as a code owner February 21, 2024 17:58
@baywet baywet self-assigned this Feb 21, 2024
Copy link

sonarcloud bot commented Feb 21, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@baywet baywet merged commit efc11dc into master Feb 22, 2024
18 checks passed
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.

3 participants