Closed Bug 1207121 Opened 10 years ago Closed 10 years ago

Guard ctx._resolve with ctx.fetch

Categories

(Firefox OS Graveyard :: Gaia::L10n, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stas, Assigned: stas)

References

Details

Attachments

(1 file)

39 bytes, text/x-github-pull-request
zbraniecki
: review+
Details | Review
When bug 1204086 lands, we should be able to move ctx.fetch into ctx._resolve, instead of doing it in the Service. The reason why this used to be in the Service was so that we only call ctx.fetch once per call to translateFragment (which called ctx.resolveEntity many times over). With bug 1204086, we don't have to worry about too many promises being resolved because ctx.resolveEntities takes care of that logic for us.
Blocks: 1207122
Blocks: 1207120
Attached file Pull request
Assignee: nobody → stas
Status: NEW → ASSIGNED
Attachment #8664507 - Flags: review?(gandalf)
Comment on attachment 8664507 [details] [review] Pull request lgtm!
Attachment #8664507 - Flags: review?(gandalf) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: