Closed Bug 1169558 Opened 9 years ago Closed 9 years ago

[Messages][NG] Lay out Conversation service structure

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.2 S14 (12june)

People

(Reporter: azasypkin, Assigned: julienw)

References

Details

(Whiteboard: [p=1])

Attachments

(1 file)

46 bytes, text/x-github-pull-request
azasypkin
: review+
steveck
: review+
azasypkin
: feedback+
Details | Review
Based on ConversationService spec from bug 1169543, we'd like to create basic ConversationService interface here.

Patch for this bug should contain full service/client definition without real method implementation (just stub methods throwing "Not Implemented" exception for now).
Blocks: messages-nga
Assignee: nobody → felash
Attached file master github PR
Hey Oleg, Steve,

Please tell me what you think :)

I added a ServiceMixin that I stole both from Steve's work in mozMobileMessagingShim and Oleg's Event Dispatcher :)

Should I add unit tests for this too?
Attachment #8621003 - Flags: feedback?(schung)
Attachment #8621003 - Flags: feedback?(azasypkin)
Comment on attachment 8621003 [details] [review]
master github PR

Looks good to me! Added some nits and questions at GitHub.

Thanks!
Attachment #8621003 - Flags: feedback?(azasypkin) → feedback+
Comment on attachment 8621003 [details] [review]
master github PR

I fixed the nits and added a unit test.

Tell me what you think !

Do we need to do the client right now ?
Attachment #8621003 - Flags: review?(schung)
Attachment #8621003 - Flags: review?(azasypkin)
Attachment #8621003 - Flags: feedback?(schung)
Comment on attachment 8621003 [details] [review]
master github PR

(In reply to Julien Wajsberg [:julienw] from comment #3)
> Comment on attachment 8621003 [details] [review]
> master github PR
> 
> I fixed the nits and added a unit test.
> 
> Tell me what you think !

Looks good, just few tiny nits/questions at github!

> 
> Do we need to do the client right now ?

Honestly, I don't think so. IMO it's hard to say how client will look like right now.
Attachment #8621003 - Flags: review?(azasypkin) → review+
I fixed everything Oleg reported; now waiting for Steve's review :)
Blocks: messages-nga-services
No longer blocks: messages-nga
master: 2157bb84cf217ecb3d217a2f1ee4282d59ea248c

Steve, if you notice anything, we can fix in a follow-up.

Thanks !
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment on attachment 8621003 [details] [review]
master github PR

Overall looks good, just some question(for the bridge mixin):
- Would you prefer that all the services should follow this pattern that leaving all the bridge setup and interface in this bridge mixin?
- If it's our pattern for services, will we plan to support the service in non-worker context?
Attachment #8621003 - Flags: review?(schung) → review+
(In reply to Steve Chung [:steveck] from comment #7)
> Comment on attachment 8621003 [details] [review]
> master github PR
> 
> Overall looks good, just some question(for the bridge mixin):
> - Would you prefer that all the services should follow this pattern that
> leaving all the bridge setup and interface in this bridge mixin?

If we can do that, yep, I think it would be nice. I followed up with your approach in bug 1171865 because I thought it was a good idea, and extended it to make it more generic.

> - If it's our pattern for services, will we plan to support the service in
> non-worker context?

I don't think so; I think that even for the non-splitted-view app, we can use the services-in-worker. Or what do you have in mind ?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: