Skip to content

Conversation

ariedov
Copy link
Contributor

@ariedov ariedov commented Sep 2, 2025

This is the most basic implementation of the file upload progress feature.

It contains:

  1. DB update and migration
  2. Flows between the dao-repository-viewmodel
  3. A TextView to display the updates on the screen

@ariedov ariedov force-pushed the feature/file-upload-progress branch 4 times, most recently from 65edc15 to 8378615 Compare September 5, 2025 20:47
Copy link
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

@ariedov ariedov force-pushed the feature/file-upload-progress branch from 8378615 to 54808d8 Compare September 17, 2025 11:41
@mahibi mahibi self-requested a review September 22, 2025 12:25
fun providesChatBlocksDao(database: TalkDatabase): ChatBlocksDao = database.chatBlocksDao()

@Provides
fun provideFileUPloadDao(database: TalkDatabase): FileUploadsDao = database.fileUploadsDao()
Copy link
Collaborator

Choose a reason for hiding this comment

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

providesFileUploadsDao

@mahibi

This comment was marked as outdated.

@ariedov
Copy link
Contributor Author

ariedov commented Sep 22, 2025

Hey! Thanks for taking a look. I did build the branch and kinda got it to work. Will look into this.

@mahibi
Copy link
Collaborator

mahibi commented Sep 22, 2025

Hey! Thanks for taking a look. I did build the branch and kinda got it to work. Will look into this.

ok that's interesting. Could you share some setup details? Android Studio version and Gradle JDK (Preferences -> Build -> Build Tools -> Gradle -> Gradle JDK)

Does it still work when you clean the build beforehand (Build - Clean project)?

@tobiasKaminsky
Copy link
Member

Took me ~1h, but finally found it.
But stracktrace, debug, logs, all were not helpful.
In the end I opened all changed files one by one to check for IDE reporting problems.
And then it turned out that ChatActivity had 2x companion object…

@mahibi
Copy link
Collaborator

mahibi commented Oct 2, 2025

Thanks @tobiasKaminsky
now it builds again.
@ariedov i just tried if it builds and saw that currently the pollng polling is broken. This is because handleUploadsFromDb is blocking at the moment. To solve, for example it's content should be wrapped by

scope.launch {

}

Also, during the first test i did not see progress for the text view (it was null 0.0).
I can have a closer look next week. Otherwise just let me know if you want to change anything beforehand.
Thanks again for your efforts!

@ariedov
Copy link
Contributor Author

ariedov commented Oct 2, 2025

Thank you very much for fixing the build and spending some effort on this! I am extremely out of time, unfortunately, at the moment, so I cannot promise to spend much time on this anytime soon.

Sorry for leaving this one in a half-baked state. I'll do my best to try to pick up the slack as soon as I can.

@ariedov ariedov force-pushed the feature/file-upload-progress branch from c48211c to 706d91f Compare October 3, 2025 14:38
Copy link
Contributor

github-actions bot commented Oct 3, 2025

Codacy

Lint

TypemasterPR
Warnings9999
Errors00

SpotBugs

CategoryBaseNew
Bad practice66
Correctness1111
Dodgy code6262
Internationalization33
Malicious code vulnerability33
Performance44
Security11
Total9090

Copy link
Contributor

github-actions bot commented Oct 3, 2025

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/5317.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.

@mahibi
Copy link
Collaborator

mahibi commented Oct 6, 2025

Thank you very much for fixing the build and spending some effort on this! I am extremely out of time, unfortunately, at the moment, so I cannot promise to spend much time on this anytime soon.

Sorry for leaving this one in a half-baked state. I'll do my best to try to pick up the slack as soon as I can.

All fine @ariedov , we appreciate your efforts!
If at any time you feel like you are not able to continue with the PR at all, just let us know if we should take over.
Otherwise we are happy to help!

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.

3 participants