Page MenuHomePhabricator

Use dedicated functions to get blobURI
ClosedPublic

Authored by bartek on Jun 29 2023, 6:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 12:45 PM
Unknown Object (File)
Sat, Nov 23, 7:10 AM
Unknown Object (File)
Sat, Nov 23, 7:10 AM
Unknown Object (File)
Sat, Nov 23, 7:10 AM
Unknown Object (File)
Sun, Nov 17, 9:30 AM
Unknown Object (File)
Mon, Nov 11, 7:22 AM
Unknown Object (File)
Sun, Nov 10, 12:33 PM
Unknown Object (File)
Sat, Nov 9, 4:19 AM
Subscribers

Details

Summary

Part of ENG-3966.

In this diff, I use the new utilities from the previous diff to correctly read the blob URI in all places where it's accessed. This ensures compatibility with both old and new message formats.

Depends on D8372

Test Plan

This stack is tested altogether, actual test plan in the last diff.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Jun 29 2023, 8:15 AM
bartek edited the test plan for this revision. (Show Details)
bartek added inline comments.
lib/utils/message-ops-utils.js
52 ↗(On Diff #28261)

Hopefully, when serializing message to Client DB, I kept the original uri field name, so the format of stored data won't change here

151 ↗(On Diff #28261)

After deserializing from Client DB, we can construct a multimedia message in the new format, it will be understood correctly from now on.

I am accepting this fairly blindly. I don't have a good idea of all the callsites that need to be updated here, or the general data flow. Trusting that @bartek has thought it through and tested it carefully

This revision is now accepted and ready to land.Jul 2 2023, 6:32 PM

I am accepting this fairly blindly. I don't have a good idea of all the callsites that need to be updated here, or the general data flow. Trusting that @bartek has thought it through and tested it carefully

These are all places where we accessed properties holder/thumbnailHolder of objects of types Media and MediaInfo. The types were affected by changes in D8370.