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, Jun 29, 9:09 PM
Unknown Object (File)
Sat, Jun 29, 11:14 AM
Unknown Object (File)
Thu, Jun 27, 3:42 PM
Unknown Object (File)
Thu, Jun 20, 8:16 PM
Unknown Object (File)
Mon, Jun 10, 7:23 PM
Unknown Object (File)
Thu, Jun 6, 4:45 AM
Unknown Object (File)
Mon, Jun 3, 11:02 PM
Unknown Object (File)
Mon, Jun 3, 11:02 PM
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
Lint Not Applicable
Unit
Tests Not Applicable

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.