-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[No QA] Fix dependency cycles #6266
Conversation
… Network logs in API.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall looks pretty good, just had one comment.
Taking these changes off HOLD now that I am back from OOO Almost done with these JS style issues and want to wrap them up before we all start moving to higher priority things :) 🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by @marcaaron in version: 1.1.16-11 🚀
|
🚀 Deployed to production by @roryabraham in version: 1.1.17-7 🚀
|
Details
Most of the dependency cycles were added when a change was made to log from within
HttpUtils
which is pretty low level. My solution for this was to basically just move those logs out of there and into API. API also had a dependency cycle withLog
but by moving theAPI.Log
command into the file whereLog
is initialized instead we can avoid this.One other step taken here was to simplify the practice of "setting callbacks". Since there are many places where we have a pattern of avoiding dependency cycles by injecting callbacks from outside a module. This works fine, but is a little tedious so I added a utility that works like this:
Fixed Issues
$ #6251
Tests
❌
QA Steps
❌
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android