Skip to content

[Share2.0] OCS Share API getShare uses new code - #20356

Merged
DeepDiver1975 merged 1 commit into
masterfrom
share2.0_getShare
Nov 16, 2015
Merged

DeepDiver1975 merged 1 commit into
masterfrom
share2.0_getShare

Conversation

@rullzer

@rullzer rullzer commented Nov 6, 2015

Copy link
Copy Markdown
Contributor

This moves the getShares call over to the new code. So paths v1/shares/<ID> is now handled in the new code.

Output is consistent with current OCS Share API output.

Lets see what our CI has to say.

@rullzer rullzer added this to the 9.0-current milestone Nov 6, 2015
@rullzer

rullzer commented Nov 6, 2015

Copy link
Copy Markdown
Contributor Author

CI is happy. review time :)

CC: @schiesbn @DeepDiver1975 @nickvergessen @PVince81

@schiessle

Copy link
Copy Markdown
Contributor

looks good 👍

@rullzer

rullzer commented Nov 9, 2015

Copy link
Copy Markdown
Contributor Author

Also passes the updated OCS API integration tests.
Onen more review and then Share2.0 work can continue... CC: @DeepDiver1975 @nickvergessen

@rullzer

rullzer commented Nov 9, 2015

Copy link
Copy Markdown
Contributor Author

CC: @PVince81

Comment thread apps/files_sharing/api/share20ocs.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

class names need a leading \

@nickvergessen

Copy link
Copy Markdown
Contributor

👍

But please fix the doc stuff (in another PR)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

simply call it create time then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@rullzer This is the only open comment. Please comment here ;)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't really care.
But setTime sounds kind of weird to me. Lets just keep it for now. It it not public API yet so we can always change later.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@SergioBertolinSG share api integration tests do cover get share? THX

@SergioBertolinSG

Copy link
Copy Markdown
Contributor

It doesn't cover a get on a specific share id yet. Only all shares of a file or a user.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

It doesn't cover a get on a specific share id yet. Only all shares of a file or a user.

@SergioBertolinSG please add this - THX

@rullzer we can merge this once the integration test is there - THX

@SergioBertolinSG

Copy link
Copy Markdown
Contributor

@DeepDiver1975 #20429

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@DeepDiver1975 #20429

thx

@rullzer please review - THX

@DeepDiver1975

Copy link
Copy Markdown
Contributor

rebased for the integraiton test

@MorrisJobke

Copy link
Copy Markdown
Contributor
  Scenario: getting share info of a share                                  # /ssd/jenkins/workspace/ocs-api-integration-tests-ci/build/integration/features/sharing-v1.feature:111
    Given user "user0" exists                                              # FeatureContext::assureUserExists()
    And user "user1" exists                                                # FeatureContext::assureUserExists()
    And file "textfile0.txt" from user "user0" is shared with user "user1" # FeatureContext::assureFileIsShared()
    And As an "user0"                                                      # FeatureContext::asAn()
    When Getting info of last share                                        # FeatureContext::gettingInfoOfLastShare()
    Then the OCS status code should be "100"                               # FeatureContext::theOCSStatusCodeShouldBe()
    And the HTTP status code should be "200"                               # FeatureContext::theHTTPStatusCodeShouldBe()
    And Share fields of last share match with                              # FeatureContext::checkShareFields()
      | id                     | A_NUMBER       |
      | item_type              | file           |
      | item_source            | A_NUMBER       |
      | share_type             | 0              |
      | share_with             | user1          |
      | file_source            | A_NUMBER       |
      | file_target            | /textfile0.txt |
      | path                   | /textfile0.txt |
      | permissions            | 23             |
      | stime                  | A_NUMBER       |
      | storage                | A_NUMBER       |
      | mail_send              | 0              |
      | uid_owner              | user0          |
      | storage_id             | home::user0    |
      | file_parent            | A_NUMBER       |
      | share_with_displayname | user1          |
      | displayname_owner      | user0          |
      Failed asserting that false matches expected true.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@rullzer 💥

@rullzer

rullzer commented Nov 10, 2015

Copy link
Copy Markdown
Contributor Author

mmm lets see what is happening there

@rullzer

rullzer commented Nov 10, 2015

Copy link
Copy Markdown
Contributor Author

Should be fixed :)

@rullzer

rullzer commented Nov 11, 2015

Copy link
Copy Markdown
Contributor Author

Oracle failure is unrelated

@rullzer

rullzer commented Nov 11, 2015

Copy link
Copy Markdown
Contributor Author

@SergioBertolinSG is also writing tests to check link shares. So lets wait for that.

@rullzer rullzer mentioned this pull request Nov 12, 2015
35 of 43 tasks
@rullzer

rullzer commented Nov 16, 2015

Copy link
Copy Markdown
Contributor Author

OCI is failing but that is because of the infamous joblist stuff once again.

@DeepDiver1975 please merge.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

OCI is failing but that is because of the infamous joblist stuff once again.

worth some research ...

DeepDiver1975 added a commit that referenced this pull request Nov 16, 2015
[Share2.0] OCS Share API getShare uses new code
@DeepDiver1975
DeepDiver1975 merged commit 2cb94cd into master Nov 16, 2015
@DeepDiver1975
DeepDiver1975 deleted the share2.0_getShare branch November 16, 2015 14:00
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 9, 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.

6 participants