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, May 14, 9:15 AM
Unknown Object (File)
Mon, Apr 22, 1:15 PM
Unknown Object (File)
Sun, Apr 21, 11:14 AM
Unknown Object (File)
Sun, Apr 21, 11:14 AM
Unknown Object (File)
Sun, Apr 21, 11:14 AM
Unknown Object (File)
Sun, Apr 21, 11:14 AM
Unknown Object (File)
Sun, Apr 21, 11:07 AM
Unknown Object (File)
Apr 13 2024, 4:24 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)