Closed Bug 1032741 Opened 11 years ago Closed 11 years ago

/call_url no longer works with latest loop-server - changed parameter name

Categories

(Hello (Loop) :: Client, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla33

People

(Reporter: standard8, Assigned: standard8)

References

Details

(Whiteboard: [p=1])

Attachments

(1 file)

/call_url's parameter for "call_url" got changed to "callUrl" in: https://github.com/mozilla-services/loop-server/pull/129 (no bug # afaict). This will break devs trying out the server, but additionally when the server is next deployed it will break the nightly builds.
Yes MLP and MVP server won't be compatible.
So, if we're going to change this name, changing it now is probably the easiest time. Mark: during the transitional period, can you do something like: var callUrl = callUrlData.call_url || callUrlData.callUrl; So that we work with both old and new servers? Otherwise we need a flag day, and that annoys people.
What's the rationale for the change? It's not clear from reading this bug why the right fix isn't to revert the server change and leave things compatible.
The goal is to be consistent with the all API which uses camelCase for object keys. We have spotted only two variables not in camelCase (call_url and simple_push_url)
We should do this after bug 1020876 as that's rearranging the current client.js a bit.
Assignee: nobody → standard8
Depends on: 1020876
No longer depends on: 1025792
Priority: -- → P1
Blocks: 1033988
This is what we need to work correctly with the latest server. There's changes to both the desktop and the client. This is built and tested against the fx-team branch, as the latest changes I needed haven't landed in central yet. I've already got bug 1033988 filed to handle the removal of the two-line part that's only needed whilst we transition.
Attachment #8450099 - Flags: review?(nperriault)
Comment on attachment 8450099 [details] [diff] [review] Adapt to latest Loop server changes - update parameter name for /calls_url and add a callType parameter when starting a call Review of attachment 8450099 [details] [diff] [review]: ----------------------------------------------------------------- Looks good overall, but you might want to address a few comments before landing: ::: browser/components/loop/standalone/content/js/standaloneClient.js @@ +88,5 @@ > * Posts a call request to the server for a call represented by the > * loopToken. Will return the session data for the call. > * > * @param {String} loopToken The loopToken representing the call > * @param {Function} cb Callback(err, sessionData) Missing docs for callType ::: browser/components/loop/standalone/content/js/webapp.js @@ +97,5 @@ > }), > + outgoing: true, > + // For now, we assume both audio and video as there is no > + // other option to select. > + callType: "audio-video" I could totally see that default value being defined in the model. ::: browser/components/loop/test/shared/models_test.js @@ +96,5 @@ > outgoing: false > }); > > + sinon.assert.calledOnce(requestCallsInfoStub); > + sinon.assert.calledWith(requestCallsInfoStub); I think you want to check for a passed parameter here :)
Attachment #8450099 - Flags: review?(nperriault) → review+
(In reply to Nicolas Perriault (:NiKo`) from comment #7) > ::: browser/components/loop/standalone/content/js/webapp.js > @@ +97,5 @@ > > }), > > + outgoing: true, > > + // For now, we assume both audio and video as there is no > > + // other option to select. > > + callType: "audio-video" > > I could totally see that default value being defined in the model. Yeah, I'm torn, as its just for initiate at the moment, I think it'll be best to keep it as it is to be explicit about what we're doing. As me progress towards adding more features, we can work out what we want to do with it.
Whiteboard: [p=1]
Target Milestone: 33 Sprint 2- 7/7 → mozilla33
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Does this need manual testing or is testsuite coverage sufficient?
Flags: qe-verify?
Mark, can you please answer comment 11?
Flags: needinfo?(standard8)
(In reply to Anthony Hughes, QA Mentor (:ashughes) from comment #11) > Does this need manual testing or is testsuite coverage sufficient? This is integral to general call functionality, and is such tested every time a call is made.
Flags: needinfo?(standard8)
Flags: qe-verify? → qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: