Closed Bug 1043686 Opened 10 years ago Closed 10 years ago

Add an endpoint to list all the call-url generated and valid

Categories

(Hello (Loop) :: Server, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: alexis+bugs, Assigned: rhubscher)

Details

(Whiteboard: [qa+])

Attachments

(1 file)

56 bytes, text/x-github-pull-request
alexis+bugs
: review+
Details | Review
Starting this bug as a discussion: would it make sense to have a way to list all the call-url that were generated by an user?

I believe that would help synchro between clients for instance.
This sounds like a late API change. How will this impact the current release and the overall release schedule?
Whiteboard: [qa+]
This is a feature we would add for next versions of the API, it's not breaking any sort of compatibility so I wouldn't consider this a late API change.

Adam, I would like your opinion on this particular proposal, would it make sense to add this to the server APIs?
Flags: needinfo?(adam)
What is the scenario today if you have lost your FF environment ? Do you need to re-create a call-url if you did not save it somewhere ?
Today, there is no way to get back the call-urls if you lose them.
semi-related: on desktop it could be a sync record in Firefox Sync
(In reply to Alexis Metaireau (:alexis) from comment #4)
> Today, there is no way to get back the call-urls if you lose them.

This isn't strictly true -- to accommodate URL revocation in the case of, say, abusive calls (even if you don't have a list of all the URLs), we do indicate the callUrl as a parameter when you find out about a new incoming call: https://wiki.mozilla.org/Loop/Architecture/MVP#GET_.2Fcalls.3Fversion.3D.3Cversion.3E

(At least, that's the design -- I haven't double-checked the implementation)

But, yes, in the general case, if you don't track the URLs locally or if you somehow lose the list of URLs that you've issued, there's no way to request a new copy of them. Now that we've gone to a stateful model for URLs, it probably does make sense to have a method to retrieve them. The client synchronization use case is a good example of why this makes sense.

That said, in discussions with Darrin so far, we haven't considered URL management to be part of MVP, so I would put this further out on the timeline.

(In reply to Tarek Ziadé (:tarek) from comment #3)
> What is the scenario today if you have lost your FF environment ? Do you
> need to re-create a call-url if you did not save it somewhere ?

For non-logged in users, losing your environment means all your previously-issued URLs become invalid. The only thing that binds a URL to your browser is the HAWK token that your browser stores. If you lose that, you have no way to assert ownership of the URLs.

For users with an identity (FxA or MSISDN), issued URLs are bound to the identity. Loss of a profile has no impact on issued URLs, which will continue to route to any device that can authenticate as the associated identity.
(In reply to Tarek Ziadé (:tarek) from comment #5)
> semi-related: on desktop it could be a sync record in Firefox Sync

I think we want the service experience to be as seamless as possible between Desktop and FxOS, at least long-term. I would hesitate to take any decisions that make this more difficult...
Flags: needinfo?(adam)
 
 
> That said, in discussions with Darrin so far, we haven't considered URL
> management to be part of MVP, so I would put this further out on the
> timeline.

Okay. If that makes sense to you, I can implement that on the server-side when I'll have some extra cycles, and the client can consume it later on when there is a UX experience around it?
Flags: needinfo?(adam)
(In reply to Alexis Metaireau (:alexis) from comment #8)
> Okay. If that makes sense to you, I can implement that on the server-side
> when I'll have some extra cycles, and the client can consume it later on
> when there is a UX experience around it?

Sure, if you don't have any higher-priority tasks. :)
Flags: needinfo?(adam)
Assignee: nobody → rhubscher
Attached file Link to github PR
Attachment #8474436 - Flags: review?(alexis+bugs)
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
How soon does this need to be deployed to Stage/Prod?
There is no ETA it is not needed for Fx34 nor Fx35 but it will be in the next release before 2nd of September.
Version 0.11.0 is out in Production.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: