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

Download limit for file link share #11563

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

surinder-tsys
Copy link
Collaborator

@surinder-tsys surinder-tsys commented Apr 27, 2023

Implemented download limit for files where share type is Link.
Showing the download count once the download limit is specified.

Conditions to show download limit:

  1. Only applicable for files
  2. Only applicable where share type is link.
  3. Not applicable for Internal, External or any other shares.

Required library PR: nextcloud/android-library#1123

Requires the implementation of: https://github.com/nextcloud/files_downloadlimit

  • Tests written, or not not needed

@github-actions
Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/11563.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@@ -0,0 +1,81 @@
/*
Copy link
Member

Choose a reason for hiding this comment

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

Please move those RemoteOperation to android-library.
If possible, also add real end to end tests, else I can help you with them.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can you please grant me push access to android-library?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@tobiasKaminsky I was writing IT for the download limit but I am facing issue in executing them in android-library.

  1. For parsing the test cases are running fine as there is no use of AbstractIT class.
  2. But for Operations (Get, Post, Delete) we need AbstractIT to be extended and for this the test cases are not executing. I tried existing test cases of NC but same for them.

Screenshot 2023-05-03 134704

Is there some configuration is required to execute them?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Code moved to android-library: nextcloud/android-library#1123

@tobiasKaminsky
Copy link
Member

I asked nextcloud/files_downloadlimit#173 to have a capability, as probably not that many server will have this enabled.

@AndyScherzinger AndyScherzinger force-pushed the nmc/downloadLimitForFileLinkShare branch from 700c84f to f21db86 Compare June 8, 2023 20:20
@nextcloud-android-bot
Copy link
Collaborator

master-IT test failed, but no output was generated. Maybe a preliminary stage failed.

@github-actions
Copy link

github-actions bot commented Jun 8, 2023

test-Unit test failed, but no output was generated. Maybe a preliminary stage failed.

@github-actions
Copy link

github-actions bot commented Jun 8, 2023

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants