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

Send OCM requests as JSON #34321

Merged
merged 1 commit into from
Feb 8, 2019
Merged

Send OCM requests as JSON #34321

merged 1 commit into from
Feb 8, 2019

Conversation

VicDeo
Copy link
Member

@VicDeo VicDeo commented Jan 30, 2019

Description

OCM spec says that POST body should be JSON
https://rawgit.com/GEANT/OCM-API/v1/docs.html

Motivation and Context

How Has This Been Tested?

By creating federated shares between this branch and stable10 and sniffing the traffic with Wireshark

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added

Open tasks:

  • Backport (if applicable set "backport-request" label and remove when the backport was done)

@VicDeo VicDeo added this to the development milestone Jan 30, 2019
@VicDeo VicDeo self-assigned this Jan 30, 2019
@codecov
Copy link

codecov bot commented Jan 30, 2019

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #34321   +/-   ##
=========================================
  Coverage     64.76%   64.76%           
  Complexity    18368    18368           
=========================================
  Files          1199     1199           
  Lines         69550    69550           
  Branches       1281     1281           
=========================================
  Hits          45044    45044           
  Misses        24133    24133           
  Partials        373      373
Flag Coverage Δ Complexity Δ
#javascript 53.09% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 66.11% <ø> (ø) 18368 <ø> (ø) ⬇️
Impacted Files Coverage Δ Complexity Δ
apps/federatedfilesharing/lib/Notifications.php 11.53% <ø> (ø) 3 <0> (ø) ⬇️

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 0d1427b...f243273. Read the comment docs.

@codecov
Copy link

codecov bot commented Jan 30, 2019

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #34321   +/-   ##
=========================================
  Coverage     64.77%   64.77%           
  Complexity    18370    18370           
=========================================
  Files          1199     1199           
  Lines         69555    69555           
  Branches       1281     1281           
=========================================
  Hits          45056    45056           
  Misses        24126    24126           
  Partials        373      373
Flag Coverage Δ Complexity Δ
#javascript 53.09% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 66.12% <ø> (ø) 18370 <ø> (ø) ⬇️
Impacted Files Coverage Δ Complexity Δ
apps/federatedfilesharing/lib/Notifications.php 11.53% <ø> (ø) 3 <0> (ø) ⬇️

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 ea04a42...00b3f72. Read the comment docs.

@mmattel mmattel requested a review from PVince81 January 30, 2019 15:46
@tomneedham
Copy link
Member

tomneedham commented Jan 31, 2019

Nice - wasn't too tricky. Main thing will be to test that this works with another ownCloud & with an old ownCloud (pre-OMC). Backport, then @diocas can test with CERNBOX

@VicDeo
Copy link
Member Author

VicDeo commented Jan 31, 2019

@tomneedham I tested this branch against stable10 and it works.

@tomneedham
Copy link
Member

ready for review? label says developing still.

@VicDeo
Copy link
Member Author

VicDeo commented Feb 5, 2019

Unit test has been added

@VicDeo
Copy link
Member Author

VicDeo commented Feb 6, 2019

@tomneedham ready for review now

Copy link
Member

@tomneedham tomneedham left a comment

Choose a reason for hiding this comment

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

Code looks good! Don't really have the infra to test this and inspect over the wire. 👍

@PVince81 PVince81 merged commit 8e8fc9e into master Feb 8, 2019
@PVince81 PVince81 deleted the ocm-json branch February 8, 2019 13:42
@PVince81
Copy link
Contributor

PVince81 commented Feb 8, 2019

@VicDeo please backport

@VicDeo VicDeo mentioned this pull request Feb 8, 2019
9 tasks
@VicDeo
Copy link
Member Author

VicDeo commented Feb 8, 2019

stable10: #34424

@lock lock bot locked as resolved and limited conversation to collaborators Feb 9, 2020
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.

None yet

3 participants