-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Share dialog use OCS API #21860
Share dialog use OCS API #21860
Conversation
By analyzing the blame information on this pull request, we identified @blizzz, @DeepDiver1975 and @MTGap to be potential reviewers |
Ref: #21554 |
2046914
to
ada7d32
Compare
I removed the backbone bits for now and used direct ajax calls. |
|
|
@rullzer bug ? |
ada7d32
to
702e567
Compare
Okay, I fixed many things including the unit tests, plus a few bonus unit tests. It's already a nice stable ground. Also I'd like to try to get rid of the legacy share structure completely, the "OC.Share.loadItem" and "OC.Share.statuses" which is still used by the files app to show share status. |
|
on the other hand that calls seems wasteful. |
Changing reshare permissions as recieiver now works.
and as previously said, remote shares still cannot be created. |
702e567
to
f8aa0f5
Compare
Rebased on master |
Aaah. OK I will fix that as well :-) |
|
908b0f1
to
c1dce9f
Compare
Tested and works 👍 (tested together with #21960) |
@PVince81 JS unit tests:
|
Weird, I'm not getting this error locally. Maybe a timezone thing |
28b504d
to
c9f4012
Compare
It was a timezone issue. |
@PVince81 Please check out the failing unit tests |
JS Unit pass now. Let's wait for #21975 to be merged |
Failing unit tests cased by the merging of the two share pr's... that had some conflicting code... fix is in #21975 |
Now using UTC dates with moment js to accurately add the number of days
c9f4012
to
7e1de0e
Compare
Rebased |
|
Awesome work @PVince81! I'm fine with fixing the passwordpolicy feedback in a different PR> 👍 |
I'll have a look at that issue separately. |
Raised here #21992 |
Preliminary work.
If possible:
get rid of OC.Share.loadItem if po=> to be done separately due to API complicationsget rid of legacy structures (OC.Share.currentShares)=> to be done separately due to API complicationsI'm not 100% on using backbone here because the API is not REST-y enough.
We'll see.
@rullzer FYI