-
Notifications
You must be signed in to change notification settings - Fork 192
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
Make Page Publish respect Version Settings and Checkout Status on publish #361
Conversation
@jansenbe To implement File Approve - is it the idea to take the request from CSOM like this |
Codecov Report
@@ Coverage Diff @@
## dev #361 +/- ##
==========================================
+ Coverage 75.32% 77.35% +2.02%
==========================================
Files 257 298 +41
Lines 19708 20967 +1259
==========================================
+ Hits 14846 16220 +1374
+ Misses 4862 4747 -115
Continue to review full report at Codecov.
|
@jansenbe i took File Checkin as Template and implement the File.Approve same way. |
Thanks @czullu , will process this later today/tomorrow |
@czullu : This change will need unit tests to cover the new features / scenario. You want to work on that or do you want me to handle that? |
|
…ry Settings for Page Publish
@jansenbe Unit Tests now included for File Approve and multiple tests for Page Publish with different SitePages-Library settings for MinorVersion turned off/on, Moderation turned off/on, ForceCheckout off/on. Did try to optimize number of tests vs coverage as the underlying methods have tests by them self. |
Really nice job with the tests, thanks @czullu 💪🥇 |
Publish does now check Versioning settings on SitePages Library and act's for Checkin and Publishing according to these settings.
Did not implement Approve on File as i hope there is a better way then setting _ModerationStatus=0 on ListItem.