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

Grouping upload notification #3567

Merged
merged 3 commits into from
Feb 16, 2024
Merged

Grouping upload notification #3567

merged 3 commits into from
Feb 16, 2024

Conversation

parneet-guraya
Copy link
Contributor

@parneet-guraya parneet-guraya commented Jan 9, 2024

Fix: #2373

What this PR includes?

  • Grouping notification
  • pushing new notification (when failure) so that the progress indicator (part of the original notification) won't show

🖼️ Screenshots

Record_2024-01-10-02-26-05.mp4

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

@parneet-guraya
Copy link
Contributor Author

Sometimes the first upload notification may show separately from group notification. A little demo to support this fact -->

Basically if second notification is pushed after >=400ms then the first one would be separate and rest of the notifications would be part of group and after this second notification time gap wouldn't matter new notifications would always be part of the group. (See video 1)

If second notification is pushed after <400ms then it would be the part of the group from beginning.

Video 1

Record_2024-01-10-03-24-34.mp4

Video 2

Record_2024-01-10-00-59-25.mp4

You can also see in both of these cases a third notification is pushed after 4 seconds which is always the part of group which shows time gap doesn't matter here.

@rapterjet2004
Copy link
Contributor

Sometimes the first upload notification may show separately from group notification. A little demo to support this fact -->

Yes, I've replicated it too. Is there anything you can do about this? Other than that, it looks good. Just fix the ktlintChecks. You can find them by running this on Windows. Also works for detekt too.

./gradlew ktlintCheck

@parneet-guraya
Copy link
Contributor Author

Sometimes the first upload notification may show separately from group notification. A little demo to support this fact -->

Yes, I've replicated it too. Is there anything you can do about this?

I think it is more of a behaviour than an issue. As I said if the second notification takes more than 400ms it would show the first one separate and the rest of them will go into group. One thing could be done if our worker can trigger notification quickly then it may solve it. That is on my to-do so will see if that works for us.

Copy link
Contributor

github-actions bot commented Feb 4, 2024

Codacy

Lint

TypemasterPR
Warnings8080
Errors88

SpotBugs

CategoryBaseNew
Bad practice66
Correctness88
Dodgy code112112
Internationalization33
Malicious code vulnerability33
Performance66
Security11
Total139139

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
@mahibi mahibi added this to the 18.1.0 milestone Feb 16, 2024
@mahibi mahibi merged commit f4ddd6e into master Feb 16, 2024
13 of 16 checks passed
@mahibi mahibi deleted the group-upload-noti branch February 16, 2024 11:57
@mahibi
Copy link
Collaborator

mahibi commented Feb 16, 2024

Sometimes the first upload notification may show separately from group notification. A little demo to support this fact -->

Yes, I've replicated it too. Is there anything you can do about this?

I think it is more of a behaviour than an issue. As I said if the second notification takes more than 400ms it would show the first one separate and the rest of them will go into group. One thing could be done if our worker can trigger notification quickly then it may solve it. That is on my to-do so will see if that works for us.

Can confirm this behaviour but it's okay in my opinion.
Worked for me so will merge..
Also: depending on devices, automatic grouping might already done by android.

Copy link
Contributor

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

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!

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.

grouping for upload notifications
3 participants