wordpress-mobile / WordPress-Android

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

Fix empty bar chart issue #20674

Closed irfano closed 3 weeks ago

irfano commented 3 weeks ago

This fixes an issue that is introduced with https://github.com/wordpress-mobile/WordPress-Android/pull/20605. Some cards were stuck in the loading state, and the date picker was disabled.

I added values with 0f to the chart data to fix the issue.

before after

To Test:

  1. Log in.
  2. Select a site with empty stats. (You can create a fresh one)
  3. Open the DAYS tab from "My Site → Stats"

Regression Notes

  1. Potential unintended areas of impact

    • None
  2. What I did to test those areas of impact (or what existing automated tests I relied on)

    • N/A
  3. What automated tests I added (or what prevented me from doing so)

    • This reverts some part of previous PR.

PR Submission Checklist:


Testing Checklist (strike-out the not-applying and unnecessary ones):

sonarcloud[bot] commented 3 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

wpmobilebot commented 3 weeks 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
Versionpr20674-a2e569d
Commita2e569ddf51f5c395846bb6162921fdafbded3de
Direct Downloadwordpress-prototype-build-pr20674-a2e569d.apk
Note: Google Login is not supported on these builds.
wpmobilebot commented 3 weeks 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
Versionpr20674-a2e569d
Commita2e569ddf51f5c395846bb6162921fdafbded3de
Direct Downloadjetpack-prototype-build-pr20674-a2e569d.apk
Note: Google Login is not supported on these builds.
codecov[bot] commented 3 weeks ago

Codecov Report

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

Project coverage is 40.27%. Comparing base (921ce21) to head (a2e569d).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## trunk #20674 +/- ## =========================================== - Coverage 82.58% 40.27% -42.32% =========================================== Files 15 1476 +1461 Lines 534 68115 +67581 Branches 50 11281 +11231 =========================================== + Hits 441 27431 +26990 - Misses 75 38190 +38115 - Partials 18 2494 +2476 ```

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