Skip to content

Create service to handle what's new functionality - #3898

Merged
AndyScherzinger merged 2 commits into
masterfrom
ezaquarii/create-whats-new-service
May 9, 2019
Merged

Create service to handle what's new functionality#3898
AndyScherzinger merged 2 commits into
masterfrom
ezaquarii/create-whats-new-service

Conversation

@ezaquarii

@ezaquariiezaquarii commented Apr 14, 2019

Copy link
Copy Markdown
Collaborator

No description provided.

@ezaquarii
ezaquariiforce-pushed the ezaquarii/create-whats-new-service branch from 227502d to 2f3724dCompareApril 14, 2019 20:17
@nextcloudnextcloud deleted a comment Apr 14, 2019
@nextcloudnextcloud deleted a comment Apr 14, 2019
@nextcloudnextcloud deleted a comment Apr 14, 2019
@nextcloudnextcloud deleted a comment Apr 14, 2019
@nextcloudnextcloud deleted a comment Apr 14, 2019
@ezaquarii
ezaquariiforce-pushed the ezaquarii/create-whats-new-service branch from 2f3724d to 4357747CompareApril 15, 2019 04:34
@codecov

codecovBot commented Apr 15, 2019

Copy link
Copy Markdown

Codecov Report

Merging #3898 into master will increase coverage by 0.06%.
The diff coverage is 13.54%.

@@ Coverage Diff @@## master #3898 +/- ##
===========================================
+ Coverage 6.45% 6.52% +0.06% 
Complexity 1 1 ===========================================
Files 325 328 +3 Lines 31247 31301 +54 Branches 4479 4481 +2 ===========================================
+ Hits 2018 2042 +24 - Misses 28931 28963 +32 + Partials 298 296 -2
Impacted FilesCoverage ΔComplexity Δ
...java/com/nextcloud/client/di/ComponentsModule.java0% <ø> (ø)0 <0> (ø)⬇️
.../java/com/owncloud/android/utils/DisplayUtils.java6.74% <ø> (+0.02%)0 <0> (ø)⬇️
...i/activities/data/files/RemoteFilesRepository.java100% <ø> (ø)0 <0> (ø)⬇️
...m/nextcloud/client/account/UserAccountManager.java0% <ø> (ø)0 <0> (ø)⬇️
...m/owncloud/android/ui/adapter/TemplateAdapter.java0% <0%> (ø)0 <0> (ø)⬇️
...ndroid/ui/dialog/ChooseTemplateDialogFragment.java0% <0%> (ø)0 <0> (ø)⬇️
...oud/android/ui/activity/NotificationsActivity.java0% <0%> (ø)0 <0> (ø)⬇️
.../owncloud/android/files/services/FileUploader.java0.2% <0%> (ø)0 <0> (ø)⬇️
...owncloud/android/ui/adapter/OCFileListAdapter.java0% <0%> (ø)0 <0> (ø)⬇️
...com/owncloud/android/ui/activity/BaseActivity.java1.35% <0%> (-0.02%)0 <0> (ø)
... and 56 more

@codecov

codecovBot commented Apr 15, 2019

Copy link
Copy Markdown

Codecov Report

Merging #3898 into master will increase coverage by 0.04%.
The diff coverage is 22.91%.

@@ Coverage Diff @@## master #3898 +/- ##
===========================================
+ Coverage 6.57% 6.62% +0.04% 
Complexity 1 1 ===========================================
Files 322 326 +4 Lines 30922 30912 -10 Branches 4409 4408 -1 ===========================================
+ Hits 2034 2048 +14 + Misses 28592 28569 -23 + Partials 296 295 -1
Impacted FilesCoverage ΔComplexity Δ
...java/com/nextcloud/client/di/ComponentsModule.java0% <ø> (ø)0 <0> (ø)⬇️
.../android/authentication/AuthenticatorActivity.java1.89% <ø> (ø)0 <0> (ø)⬇️
...ndroid/ui/asynctasks/LoadingVersionNumberTask.java0% <0%> (ø)0 <0> (ø)⬇️
...om/nextcloud/client/whatsnew/WhatsNewActivity.java0% <0%> (ø)0 <0> (?)
...owncloud/android/ui/activity/FirstRunActivity.java0% <0%> (ø)0 <0> (ø)⬇️
...ud/android/providers/DocumentsStorageProvider.java1.06% <0%> (-0.01%)0 <0> (ø)
src/main/java/com/owncloud/android/MainApp.java47.51% <0%> (+1.31%)0 <0> (ø)⬇️
...perations/DetectAuthenticationMethodOperation.java0% <0%> (ø)0 <0> (ø)⬇️
...d/authentication/AccountAuthenticatorActivity.java0% <0%> (ø)0 <0> (ø)⬇️
...oud/android/ui/activity/SyncedFoldersActivity.java0% <0%> (ø)0 <0> (ø)⬇️
... and 23 more

@nextcloudnextcloud deleted a comment Apr 15, 2019
@ezaquarii
ezaquariiforce-pushed the ezaquarii/create-whats-new-service branch from 4357747 to 737feb7CompareApril 15, 2019 14:31
@nextcloudnextcloud deleted a comment Apr 15, 2019
@nextcloudnextcloud deleted a comment Apr 15, 2019
@ezaquarii
ezaquariiforce-pushed the ezaquarii/create-whats-new-service branch 2 times, most recently from e1c527e to 62e6f87CompareApril 15, 2019 17:14
@nextcloudnextcloud deleted a comment Apr 15, 2019
@ezaquarii
ezaquariiforce-pushed the ezaquarii/create-whats-new-service branch from 62e6f87 to f6f199eCompareApril 15, 2019 20:02
@ezaquarii

Copy link
Copy Markdown
CollaboratorAuthor

com.owncloud.android.util.EncryptionTestIT is failing - I'm not sure if it's because I downgraded the lib to compile it.

@AndyScherzinger

Copy link
Copy Markdown
Member

Latest master should work again 🤞

@ezaquarii
ezaquariiforce-pushed the ezaquarii/create-whats-new-service branch from f6f199e to 239a79aCompareApril 16, 2019 14:41
@nextcloudnextcloud deleted a comment Apr 16, 2019
@nextcloudnextcloud deleted a comment Apr 16, 2019
@ezaquarii
ezaquariiforce-pushed the ezaquarii/create-whats-new-service branch from 239a79a to 76681a7CompareApril 16, 2019 18:40
@nextcloudnextcloud deleted a comment Apr 16, 2019
@nextcloudnextcloud deleted a comment Apr 16, 2019
@nextcloudnextcloud deleted a comment Apr 16, 2019
@nextcloudnextcloud deleted a comment Apr 16, 2019
@ezaquarii
ezaquariiforce-pushed the ezaquarii/create-whats-new-service branch from 76681a7 to 5c803cfCompareApril 16, 2019 18:56
@nextcloudnextcloud deleted a comment Apr 16, 2019
@nextcloudnextcloud deleted a comment Apr 17, 2019
@nextcloudnextcloud deleted a comment Apr 17, 2019
@ezaquarii
ezaquariiforce-pushed the ezaquarii/create-whats-new-service branch from 2f17af8 to c10f79eCompareApril 17, 2019 21:12
@nextcloudnextcloud deleted a comment Apr 17, 2019
@nextcloudnextcloud deleted a comment Apr 17, 2019
@nextcloudnextcloud deleted a comment Apr 17, 2019
@nextcloudnextcloud deleted a comment Apr 17, 2019
@nextcloudnextcloud deleted a comment Apr 17, 2019
@nextcloudnextcloud deleted a comment Apr 17, 2019
@ezaquarii
ezaquariiforce-pushed the ezaquarii/create-whats-new-service branch from c10f79e to 17e157bCompareApril 17, 2019 21:27
@nextcloudnextcloud deleted a comment Apr 17, 2019
@ezaquarii

Copy link
Copy Markdown
CollaboratorAuthor
> Task :spotbugsGplayDebug FAILED
1 actionable task: 1 executed
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':spotbugsGplayDebug'.
> A failure occurred while executing com.github.spotbugs.internal.spotbugs.SpotBugsRunner
> SpotBugs rule violations were found. See the report at: file:///drone/src/build/reports/spotbugs/spotbugs.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 18s
found warnings: 429
previous warnings: 429
SUCCESS: count stayed the same
Branch: ezaquarii/create-whats-new-service
New lint results at https://www.kaminsky.me/nc-dev/android-lint/8891.html
New findbugs results at https://www.kaminsky.me/nc-dev/android-findbugs/8891.html
{
"message": "Not Found",
"documentation_url": "https://developer.github.com/v3"
}
lint.html file is missing! 

I'm not sure if there is actually anything wrong with it. @tobiasKaminsky can you pls take a look?

@tobiasKaminsky

Copy link
Copy Markdown
Member

lint.html file is missing!

This means that lint did not run (completely), which is compiles all classes needed by spotBugs.
Having a look into the logs shows

The message received from the daemon indicates that the daemon has disappeared.

which means that somehow build process died.
In this we simply retry it.

@AndyScherzingerAndyScherzinger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me code-wise. I'm only reviewing it via phone atm, so waiting for @tobiasKaminsky's review and approval.

@ezaquarii

Copy link
Copy Markdown
CollaboratorAuthor

@tobiasKaminsky@AndyScherzinger anything to do here? It's blocking my other work currently. ;)

@AndyScherzinger

Copy link
Copy Markdown
Member

@ezaquarii fine with me 👍
I am just waiting for @tobiasKaminsky's review/approval/merge 😃

@AndyScherzinger

Copy link
Copy Markdown
Member

@ezaquarii any reason for closing? Unfortunately still waiting for @tobiasKaminsky's review 😣

@ezaquarii

Copy link
Copy Markdown
CollaboratorAuthor

WhatsNewActivity has been removed recently, so I think this refactoring is obsolete now.

@ezaquarii

Copy link
Copy Markdown
CollaboratorAuthor

I keep the branch around to salvage remaining pieces of logic that could be still applicable elsewhere.

@AndyScherzinger

Copy link
Copy Markdown
Member

I think the activity should still be there but won't be called since we haven't had any new features worth propagating this way in the near past but might have in the future again.
Tobias knows best.

@ezaquarii

Copy link
Copy Markdown
CollaboratorAuthor

Youp, I looked at this code once again and you are right. I'll rebase.

@AndyScherzinger

Copy link
Copy Markdown
Member

needs another rebase due to the changed spotbugs score which is due to the latest findbugs lib update: #3955

@AndyScherzinger

Copy link
Copy Markdown
Member

pinging @tobiasKaminsky for review/merge :) Looks good from my pov. 👍

@nextcloud-android-bot

Copy link
Copy Markdown
Collaborator

Codacy

277

Lint

TypemasterPR
Warnings5959
Errors00

SpotBugs (new)

Warning TypeNumber
Bad practice Warnings25
Correctness Warnings79
Internationalization Warnings12
Malicious code vulnerability Warnings4
Multithreaded correctness Warnings9
Performance Warnings174
Security Warnings47
Dodgy code Warnings141
Total491

SpotBugs (master)

Warning TypeNumber
Bad practice Warnings25
Correctness Warnings81
Internationalization Warnings15
Malicious code vulnerability Warnings4
Multithreaded correctness Warnings9
Performance Warnings175
Security Warnings47
Dodgy code Warnings141
Total497

ezaquariiand others added 2 commits May 9, 2019 14:43
Signed-off-by: Chris Narkiewicz <hello@ezaquarii.com>
… [skip ci]
Signed-off-by: nextcloud-android-bot <android@nextcloud.com>
@tobiasKaminsky

Copy link
Copy Markdown
Member

I rebased it to latest master and tested it.
Works as expected.

Thanks again @ezaquarii for this great PR 🎉

@nextcloud-android-bot

Copy link
Copy Markdown
Collaborator

@nextcloud-android-bot

Copy link
Copy Markdown
Collaborator

Codacy

278

Lint

TypemasterPR
Warnings5858
Errors00

SpotBugs (new)

Warning TypeNumber
Bad practice Warnings25
Correctness Warnings79
Internationalization Warnings12
Malicious code vulnerability Warnings4
Multithreaded correctness Warnings9
Performance Warnings174
Security Warnings47
Dodgy code Warnings141
Total491

SpotBugs (master)

Warning TypeNumber
Bad practice Warnings25
Correctness Warnings81
Internationalization Warnings15
Malicious code vulnerability Warnings4
Multithreaded correctness Warnings9
Performance Warnings175
Security Warnings47
Dodgy code Warnings141
Total497

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@ezaquarii@AndyScherzinger@tobiasKaminsky@nextcloud-android-bot