Skip to content

Conversation

@ParaskP7
Copy link
Contributor

@ParaskP7 ParaskP7 commented Jun 15, 2022

Parent #16562
Fixes #16567

This PR restructures the networking module by disassociating the WordPress-Networking-Android repo and removing the extra WordPressNetworking level from it. This effectively makes networking a pure module, without any extra inner levels or unnecessary build files lying around (like settings.gradle, .gitignore, etc).

PS: @ashiagr I added you as the main reviewer, that is, in addition to the @wordpress-mobile/owl-team team itself, since I know you were working with Reader and Discover in the past, which will come handy for testing purposes. As such, I think you might be the best person to sign-off on that change for WPAndroid. 🥇


Question (❓): As per my licensing question on this other related PR of mine here and since I don't see any LICENCE file for this module, like I did for the analytics mode, which is pointing to MIT, I am not sure if we should include a licence for this module too or exclude the licensing information from the analytics and all other modules in general so that we start depending solely on the root level LICENCE that WPAndroid is using, which is GPLv2, wdyt? 🤔


@oguzkocer related to your comments on this other related PR of mine here I am still waiting for us to align on both, the module naming convention and the README file. Then, I'll proceed and make the necessary update(s), if any, on all the PRs. You will see me progressing with my PRs anyway just so that I kepp move forward, but that doesn't mean anything, I can and will make the change(s) we end up agreeing on afterwards and before I merge any of my PRs so don't worry if you see me creating more PRs like that.


To test:

  • Build the app and install it on your device or emulator.
  • Go to Reader -> DISCOVER tab.
  • Trigger pull-to-refresh and verify that the tab is updated with new content (see ReaderDiscoverLogic.kt class, line 123 and the WordPress.getRestClientUtilsV2(...) call.

The above is just one example of how this change can tested so that we could quickly verify the overall correctness of this PR. However, feel free to smoke test other aspects as well, especially if you are aware any or all the other places where networking is being used to fetch data instead of FluxC.


Regression Notes

  1. Potential unintended areas of impact

N/A

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

See To test section above.

  1. What automated tests I added (or what prevented me from doing so)

N/A

PR submission checklist:

  • I have completed the Regression Notes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

ParaskP7 added 5 commits June 15, 2022 16:08
This file and its inner properties seem to be duplicate of the root
level 'gradle.properties-example' file and/or outdated.
The root level '.gitignore' file should be all that is needed from now
on.
The inner 'build.gradle' file from the 'WordPressNetworking' module
should be all that is needed from now on.
Everything within the 'WordPressNetworking' module ('build.gradle' +
'src') is now moved to the new root 'networking' module.

With this change the new 'networking' module is effectively and
completely disassociated from the 'WordPress-Networking-Android' repo.

URL: https://github.com/wordpress-mobile/WordPress-Networking-Android
@ParaskP7 ParaskP7 added this to the 20.2 milestone Jun 15, 2022
@ParaskP7 ParaskP7 requested review from a team and ashiagr June 15, 2022 14:52
@ParaskP7 ParaskP7 self-assigned this Jun 15, 2022
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Jun 15, 2022

You can trigger optional UI/connected tests for these changes by visiting CircleCI here.

@wpmobilebot
Copy link
Contributor

Found 1 violations:

The PR caused the following dependency changes:

+\--- project :libs:networking
+     \--- com.automattic:rest:1.0.8
-\--- project :libs:networking:WordPressNetworking
-     \--- com.automattic:rest:1.0.8

Please review and act accordingly

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jun 15, 2022

You can test the Jetpack changes on this Pull Request by downloading an installable build (jetpack-installable-build-pr16752-6f2c174.apk), or scanning this QR code:

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jun 15, 2022

You can test the WordPress changes on this Pull Request by downloading an installable build (wordpress-installable-build-pr16752-6f2c174.apk), or scanning this QR code:

Copy link
Contributor

@ashiagr ashiagr left a comment

Choose a reason for hiding this comment

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

Thanks for this PR, @ParaskP7! Code changes look good to me. Also, pull-to-refresh in Reader > Discover gave me refreshed results. 👍

I'll leave the decision for including licensing info to the platform team.

@ParaskP7
Copy link
Contributor Author

👋 @ashiagr !

Thank you reviewing and testing this PR! 🙇

I'll leave the decision for including licensing info to the platform team.

Yes indeed, this might be the best way forward with that. I already added a task for that on the parent issue for this modules restructuring overall work (search for LICENSE). 👍

@ParaskP7 ParaskP7 merged commit 7cb0558 into trunk Jun 16, 2022
@ParaskP7 ParaskP7 deleted the build/restructure-networking-module branch June 16, 2022 08:55
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.

Modules Restructuring - Networking Module

5 participants