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

Fix apiVersion type and createShare call parameters #31677

Merged
merged 1 commit into from
Jun 7, 2018

Conversation

phil-davis
Copy link
Contributor

Description

  1. Fix call parameters for createShare
  2. Cast the apiVersion to ``int``` when storing it.

Related Issue

Motivation and Context

createShare() has a missing parameter in the call - fix it.
When we fix it, and/or make use of createAPublicShare() then SharingHelper::createShare() complains about "invalid apiVersion/sharingApiVersion" because it now gets apiVersion in the correct parameter. apiVersion is suppposed to be an int.

How Has This Been Tested?

Local API acceptance test runs.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Acceptance test bug fix

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@phil-davis
Copy link
Contributor Author

We might not have been using the API version we thought we were using, when creating shares. So some tests that create and do stuff with shares might now misbehave.

Copy link
Member

@paurakhsharma paurakhsharma left a comment

Choose a reason for hiding this comment

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

I don't think any sharing tests user API version 2 so it should all pass. Let's see what CI says.

@phil-davis
Copy link
Contributor Author

Backport stable10 #31679

@codecov
Copy link

codecov bot commented Jun 7, 2018

Codecov Report

Merging #31677 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #31677   +/-   ##
=========================================
  Coverage     62.89%   62.89%           
  Complexity    18418    18418           
=========================================
  Files          1154     1154           
  Lines         69157    69157           
  Branches       1260     1260           
=========================================
  Hits          43499    43499           
  Misses        25289    25289           
  Partials        369      369
Flag Coverage Δ Complexity Δ
#javascript 52.39% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 64.1% <ø> (ø) 18418 <ø> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 031fded...92879f1. Read the comment docs.

@phil-davis phil-davis merged commit 94d8747 into master Jun 7, 2018
@phil-davis phil-davis deleted the fix-apiVersion-type branch June 7, 2018 10:41
@paurakhsharma paurakhsharma mentioned this pull request Jun 7, 2018
10 tasks
@PVince81 PVince81 modified the milestones: development, QA Jun 13, 2018
@lock
Copy link

lock bot commented Jul 31, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants