Skip to content

Remove old stats resources#10282

Merged
khaykov merged 5 commits intodevelopfrom
remove_old_stats_code
Aug 11, 2019
Merged

Remove old stats resources#10282
khaykov merged 5 commits intodevelopfrom
remove_old_stats_code

Conversation

@planarvoid
Copy link
Copy Markdown
Contributor

@planarvoid planarvoid commented Jul 25, 2019

This PR removes all the unused code from the old stats. I think you can safely ignore most of the code. There are several things that were updated and might be broken:

  1. I moved constants from the OldStatsActivity and StatsAbstractFragment to StatsActivity and StatsViewAllFragment. This change should be pretty safe.
  2. I introduced a deleteAll and delete by site methods in FluxC and call them where we were previously deleting stats data. This was something missing from the new code.
  3. The changes in the FormattableContentClickHandler should be safe. I've removed the fields that were not consumed in StatsViewAllActivity

To test - there should be no functionality change:

  • Try the stats and check nothing is broken
  • Try opening the stats from Blog posts
  • Try the widgets

Update release notes:

  • If there are user facing changes, I have added an item to RELEASE-NOTES.txt.

@planarvoid planarvoid added this to the 13.0 milestone Jul 25, 2019
@planarvoid planarvoid requested a review from khaykov July 25, 2019 12:41
@planarvoid planarvoid self-assigned this Jul 25, 2019
@peril-wordpress-mobile
Copy link
Copy Markdown

Warnings
⚠️ PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible.

Generated by 🚫 dangerJS

@jkmassel
Copy link
Copy Markdown
Contributor

I'm bumping this to 13.1 as part of the 13.0 code freeze.

If you'd like it to be released as part of 13.0, please merge it against release/13.0 then DM me, and I'll be happy to issue a new beta release! :)

@jkmassel jkmassel modified the milestones: 13.0, 13.1 Jul 30, 2019
Copy link
Copy Markdown
Contributor

@khaykov khaykov left a comment

Choose a reason for hiding this comment

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

Looks good! Nothing seems broken so far 👍

@khaykov khaykov merged commit d4cea2e into develop Aug 11, 2019
@khaykov khaykov deleted the remove_old_stats_code branch August 11, 2019 21:46
ParaskP7 added a commit that referenced this pull request Dec 5, 2022
This dependency seems that was lastly used only for some stats related
classes that are no longer existing, like the
'StatsVisitorsAndViewsFragment' via teh 'com.jjoe64.graphview' import.

However, as part of the #10282 PR, all those stats related classes got
removed (see da7d52f).

As such, this leftover from back then can be now safely removed.

PS: Also, as part of this change the 'GraphView' dependency, and in
general, the complete list of 'LGPL v3' licensed dependencies is now
removed from the 'licenses.html' document for both, the WordPress and
Jetpack apps.
Sign up for free to 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