Page MenuHomePhabricator

[lib/ native] Rename fetchJSON to callServerEndpoint
ClosedPublic

Authored by michal on Sep 28 2022, 2:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 26, 2:33 AM
Unknown Object (File)
Tue, Nov 26, 12:25 AM
Unknown Object (File)
Mon, Nov 25, 10:22 PM
Unknown Object (File)
Mon, Nov 25, 10:22 PM
Unknown Object (File)
Mon, Nov 25, 7:55 PM
Unknown Object (File)
Mon, Nov 25, 7:54 PM
Unknown Object (File)
Thu, Nov 7, 7:46 PM
Unknown Object (File)
Tue, Nov 5, 9:58 AM
Subscribers

Details

Summary

Renames fetchJSON to callServerEndpoint and changes accompanying types to match.

Test Plan
  1. Run flow
  2. Test some basic things in the native and web app to check if it works

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek added inline comments.
lib/utils/action-utils.js
148 ↗(On Diff #17128)

This doesn't read too well. Maybe serverEndpointCallsWaitingForNewCookie

375–376 ↗(On Diff #17128)

This comment is slightly outdated - I'm pretty sure we don't use mapStateToProps anymore. I think that we can just skip the irrelevant part, but would like to get @ashoat perspective

This revision is now accepted and ready to land.Sep 28 2022, 10:07 AM
lib/utils/action-utils.js
375–376 ↗(On Diff #17128)

The fact that this comment is outdated doesn't really affect this diff, so I think a better approach would be to create a task and discuss there. @michal could you create it?

lib/utils/action-utils.js
375–376 ↗(On Diff #17128)

Sure, here ENG-1916

Additional rename, rebase

In retrospect we probably should've called this callKeyserverEndpoint, but we can save that rename for when we introduce multi-keyserver support (we'll need to change the function signature then)