Closed
Bug 1081023
Opened 10 years ago
Closed 10 years ago
Adjust standalone link clicker UI to handle change of URL format.
Categories
(Hello (Loop) :: Client, defect)
Hello (Loop)
Client
Tracking
(firefox35 fixed, firefox36 fixed)
backlog | Fx34+ |
People
(Reporter: standard8, Assigned: standard8)
References
Details
(Whiteboard: [standalone])
Attachments
(1 file, 1 obsolete file)
21.03 KB,
patch
|
NiKo
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Bug 1046114 is going to change the url format that the server provides. We need to update the standalone UI to handle the new format, currently it relies on:
#call/<token>
Updated•10 years ago
|
backlog: --- → Fx34+
Assignee | ||
Comment 1•10 years ago
|
||
The main changes here are to the url handling in webapp.jsx. Most of the rest of the changes are consequential.
This makes it so that the standalone app can support urls of the format:
<hostname>/#call/{token}
<hostname>/c/{token}
as per bug 1046114 comment 33. It does not support the rooms format yet, as we haven't started the rooms work for standalone.
The changes in the server were mainly to try and be more explicit about which directories are hosted where on the server, to make maintenance easier. I also tried to document it, to make it easier in future.
Note that the old #call format will go away 30 days or so once we've transitioned the servers to the new format.
Attachment #8506888 -
Flags: review?(nperriault)
Assignee | ||
Comment 2•10 years ago
|
||
Background for the regexps:
https://github.com/mozilla-services/loop-server/blob/master/loop/tokenlib.js#L10
Assignee | ||
Comment 3•10 years ago
|
||
Updated patch to account for bug 1079811 landing.
Setting review to NiKo or dmose.
Attachment #8507195 -
Flags: review?(nperriault)
Attachment #8507195 -
Flags: review?(dmose)
Comment on attachment 8507195 [details] [diff] [review]
Handle call url changes to the format for Loop's call links
Review of attachment 8507195 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good but I feel like there's room for a tiny refactoring. As you're on PTO for 3 days, I'll take care of updating the patch.
::: browser/components/loop/standalone/content/js/webapp.js
@@ +929,1 @@
> }
This should be extracted to some helper function, eg. extractLoopToken(document.location).
::: browser/components/loop/standalone/content/js/webapp.jsx
@@ +929,1 @@
> }
How about moving this to some helper function so we could simply write:
var token = extractTokenFromLoopURL(document.location);
if (token) {
conversation.set({loopToken: token});
}
Attachment #8507195 -
Flags: review?(nperriault) → feedback+
Grmbl splinter. Oh well, you get the picture.
Comment on attachment 8506888 [details] [diff] [review]
Handle call url changes to the format for Loop's call links
Review of attachment 8506888 [details] [diff] [review]:
-----------------------------------------------------------------
Canceling review for this obsolete version of the patch.
Attachment #8506888 -
Flags: review?(nperriault)
Updated•10 years ago
|
Whiteboard: [standalone]
Comment on attachment 8507195 [details] [diff] [review]
Handle call url changes to the format for Loop's call links
Review of attachment 8507195 [details] [diff] [review]:
-----------------------------------------------------------------
I'll actually r+ this, as working on a router impl. is being done in bug 1086588.
Attachment #8507195 -
Flags: review?(dmose)
Attachment #8507195 -
Flags: review+
Attachment #8507195 -
Flags: feedback+
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=c0aa34523ce8
https://tbpl.mozilla.org/?tree=Try&rev=c0aa34523ce8
Keywords: checkin-needed
Removing checking-needed because of oranges: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=c0aa34523ce8
Seems unrelated to current patch, but I'm no expert in this area, hence why removing checkin-needed. Any help appreciated.
Keywords: checkin-needed
Updated•10 years ago
|
Target Milestone: mozilla35 → ---
Assignee | ||
Updated•10 years ago
|
Attachment #8506888 -
Attachment is obsolete: true
Assignee | ||
Comment 10•10 years ago
|
||
Try issues were unrelated (random failures), so pushed the patch:
https://hg.mozilla.org/integration/fx-team/rev/6f8bcb8400a5
Iteration: --- → 36.1
Points: --- → 1
Target Milestone: --- → mozilla36
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 12•10 years ago
|
||
status-firefox35:
--- → fixed
status-firefox36:
--- → fixed
Comment 13•10 years ago
|
||
Comment on attachment 8507195 [details] [diff] [review]
Handle call url changes to the format for Loop's call links
Approval Request Comment
Landed on aurora per IRC with lsblakk with a=loop-only
Attachment #8507195 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
Attachment #8507195 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 14•9 years ago
|
||
This is covered by unit tests and functional tests.
Flags: in-testsuite? → in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•