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

Feature/199 PutUserInfo #200

Merged
merged 5 commits into from
Mar 10, 2025

Conversation

dviry
Copy link
Collaborator

@dviry dviry commented Mar 9, 2025

Closes #199 by implementing FilesController.PutUserInfo() action, returning the CheckFileInfo.UserInfo property with the stored userInfo and enabling the HostCapabilities.SupportsUserInfo.

@dviry dviry requested a review from petrsvihlik as a code owner March 9, 2025 21:14
@dviry dviry had a problem deploying to Integrate Pull Request March 9, 2025 21:14 — with GitHub Actions Failure
petrsvihlik
petrsvihlik previously approved these changes Mar 9, 2025
Copy link

codecov bot commented Mar 10, 2025

Codecov Report

Attention: Patch coverage is 52.94118% with 64 lines in your changes missing coverage. Please review.

Project coverage is 40.70%. Comparing base (bf5326b) to head (c9ca0af).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/WopiHost.Core/Controllers/FilesController.cs 51.45% 37 Missing and 13 partials ⚠️
...t.Core/Infrastructure/FromStringBodyModelBinder.cs 58.33% 8 Missing and 2 partials ⚠️
...ost.Core/Infrastructure/FromStringBodyAttribute.cs 0.00% 3 Missing ⚠️
src/WopiHost.Core/Extensions/Extensions.cs 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #200      +/-   ##
==========================================
+ Coverage   37.90%   40.70%   +2.79%     
==========================================
  Files          54       56       +2     
  Lines        1348     1415      +67     
  Branches      149      154       +5     
==========================================
+ Hits          511      576      +65     
+ Misses        796      792       -4     
- Partials       41       47       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dviry dviry temporarily deployed to Integrate Pull Request March 10, 2025 16:25 — with GitHub Actions Inactive
@dviry dviry temporarily deployed to Integrate Pull Request March 10, 2025 16:38 — with GitHub Actions Inactive
@petrsvihlik petrsvihlik merged commit 7bd2f85 into petrsvihlik:master Mar 10, 2025
6 checks passed
@dviry dviry deleted the feature/199-putUserInfo branch March 11, 2025 07:18
petrsvihlik added a commit that referenced this pull request Mar 12, 2025
* fix sln sample projects references

* #199 add PutUserInfo endpoint and enable respective hostCapability

* fix unit test

* add some unit tests

* split ProcessLock() to reduce complexity

* #195 add DeleteFile and refactor IWopiWritableStorageProvider to DeleteWopiResource() and RenameWopiResource()

* Feature/199 PutUserInfo (#200)

* fix sln sample projects references

* #199 add PutUserInfo endpoint and enable respective hostCapability

* fix unit test

* add some unit tests

* split ProcessLock() to reduce complexity

---------

Co-authored-by: Leon Segal <leon.segal@hs-soft.com>

* Update README.md

* #195 add DeleteFile and refactor IWopiWritableStorageProvider to DeleteWopiResource() and RenameWopiResource()

* fix PutFile logic

* add InternalServerErrorResult

* refactor GetWopiFiles/Containers to return AsyncEnumerables

* extract common Name and Identifier to IWopiResource

* add IWopiStorageProvider.GetWopiResourceByName()

* consolidate to CreateWopiChildResource(), add CheckValidName() and GetSuggestName() as helpers

* #195 add FilesController.PutRelativeFile

* #195 fix FileNameLongerThan512Chars

* #195 pass HostEditUrl and HostViewUrl from CheckFileInfo

* #195 fix UTF-7 handling

---------

Co-authored-by: Leon Segal <leon.segal@hs-soft.com>
Co-authored-by: Petr Švihlík <rocky.intel@gmail.com>
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.

WOPI-Validator: PutUserInfo
2 participants