wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.99k stars 1.33k forks source link

Show the correct years for stats #21450

Closed nbradbury closed 1 week ago

nbradbury commented 1 week ago

Fixes #21448

Prior to this PR, "Years and Months" stats incorrectly showed the six earliest years instead of the six most recent. For example:

stats

This PR resolves the problem by showing the six most recent:

stats

To test:

Note: While working on this I noticed that the "View more" link under "Avg views per day" wasn't working. I tracked that down to this line of code, which explicitly says to do nothing. I'll file a separate issue for that.

dangermattic commented 1 week ago
1 Warning
:warning: PR is not assigned to a milestone.

Generated by :no_entry_sign: Danger

sonarcloud[bot] commented 1 week ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

wpmobilebot commented 1 week ago
WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr21450-f3931b2
Commitf3931b25f1236f6e4113837f6bc59dedb8bcb29a
Direct Downloadwordpress-prototype-build-pr21450-f3931b2.apk
Note: Google Login is not supported on these builds.
wpmobilebot commented 1 week ago
Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr21450-f3931b2
Commitf3931b25f1236f6e4113837f6bc59dedb8bcb29a
Direct Downloadjetpack-prototype-build-pr21450-f3931b2.apk
Note: Google Login is not supported on these builds.
codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 39.50%. Comparing base (ae41f3f) to head (f3931b2). Report is 27 commits behind head on trunk.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## trunk #21450 +/- ## ======================================= Coverage 39.50% 39.50% ======================================= Files 2120 2120 Lines 99438 99438 Branches 15282 15282 ======================================= Hits 39281 39281 Misses 56675 56675 Partials 3482 3482 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.