Page MenuHomePhabricator

[lib/ native] Rename fetchJSON to callServerEndpoint
ClosedPublic

Authored by michal on Sep 28 2022, 2:10 AM.
Tags
None
Referenced Files
F3369959: D5247.diff
Tue, Nov 26, 12:25 AM
F3369269: D5247.id.diff
Mon, Nov 25, 10:22 PM
F3369268: D5247.diff
Mon, Nov 25, 10:22 PM
F3368457: D5247.id17171.diff
Mon, Nov 25, 7:55 PM
F3368454: D5247.id17128.diff
Mon, Nov 25, 7:54 PM
Unknown Object (File)
Thu, Nov 7, 7:46 PM
Unknown Object (File)
Tue, Nov 5, 9:58 AM
Unknown Object (File)
Oct 10 2024, 4:47 PM
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
Branch
eng1865
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek added inline comments.
lib/utils/action-utils.js
148

This doesn't read too well. Maybe serverEndpointCallsWaitingForNewCookie

375–376

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

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

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)