Closed Bug 1095358 Opened 10 years ago Closed 10 years ago

Add subject to direct calls (aka as conversations)

Categories

(Hello (Loop) :: Server, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: oteo, Assigned: frsela)

References

Details

(Whiteboard: [loop-server 0.14])

Attachments

(2 files)

Product team wants users making direct calls to have the option to include a subject for the call so that they can tell the other party what the communication is going to be about.

At a glance, it seems this requires changes in:

- POST /calls (to indicate the subject when making the call)
- GET /calls?version=<version> (to retrieve the subject when receiving the call)
- POST /call-url (not sure if this is going to be really used with the new room model but maybe we should add it for the sake of consistency)
In addition, PUT /call-url/{token} should also be able to get this new "subject" option.

I also need some more information in order to cap the value to a maximum. Would 124 chars be enough for a subject?

I'm okay with this change, but would need a seal of approval by Adam ;)
Flags: needinfo?(oteo)
Flags: needinfo?(adam)
Flags: needinfo?(oteo)
(In reply to Alexis Metaireau (:alexis) from comment #1)
> In addition, PUT /call-url/{token} should also be able to get this new
> "subject" option.
Thanks for taking care of it!!
> 
> I also need some more information in order to cap the value to a maximum.
> Would 124 chars be enough for a subject?
I've checked with Product ream and it's more than enough :)

> I'm okay with this change, but would need a seal of approval by Adam ;)
of course!!
Is this a change for mobile only or would desktop need to make the same change?

Our (desktop's) development schedule for the next few weeks is very tight, and I'd need to discuss with Darrin what the UX implications are for desktop if we make this change. Plus, I'd have to get a new UX design from Darrin for direct calls. 

If this can be a mobile-only change (at least for the short term), then many of my concerns and objections go away.
AFAIK, I think it can be an optional thing so if desktop do implements it they can still continue to use loop-server as they are doing today.
Yes, this is an optional parameter. In case it's not present, it won't be used.
Hi Maria,

Can you catch me up on which product team discussion/decision this bug is around?  This has impact on desktop implementation and UX as well.  Can we catch up before we make server changes, to make sure all the parts work together?  :)
Flags: needinfo?(rtestard)
Flags: needinfo?(oteo)
Hi Shell, this is one of the User Stories for 1.1.1 Loop Mobile version, so clearing my ni and setting it to Jorge as this is a Product call.

Anyway, as far as I know, this subject field is an optional parameter so there should not be any problem if Desktop does not use it.
Flags: needinfo?(oteo) → needinfo?(jorge.munuera)
Hi Shell, this field is optional and we would like to use it in the mobile app. As Alexis said, is it not present, it wont be used.
Flags: needinfo?(jorge.munuera)
Sorry for the delay here. This makes perfect sense from a protocol perspective, and I think we should plan to support it on the Desktop as time allows (i.e., we should open and schedule a bug to handle this on the desktop client -- one UX, one implementation). No rush, of course -- but it would be good to make sure they don't get dropped on the floor.

Maire: can I have you open these desktop bugs and make sure they get tracked?

Alexis: can I have you update the docs with a new parameter?
Flags: needinfo?(mreavy)
Flags: needinfo?(alexis+bugs)
Flags: needinfo?(adam)
Blocks: 1097529
Assignee: nobody → frsela
Attached file Proposed patch (WIP)
This is a WIP patch.
Pending Unit-Tests
Attachment #8522866 - Flags: feedback?(alexis+bugs)
Comment on attachment 8522866 [details] [review]
Proposed patch (WIP)

I did a first round of feedback on the pull request, thanks!
Flags: needinfo?(alexis+bugs)
Attachment #8522866 - Flags: feedback?(alexis+bugs) → feedback+
Comment on attachment 8522866 [details] [review]
Proposed patch (WIP)

Tests updated.
Attachment #8522866 - Flags: review?(alexis+bugs)
Attached file Documentation update
Attachment #8525177 - Flags: review?(alexis+bugs)
Comment on attachment 8522866 [details] [review]
Proposed patch (WIP)

The way tests are done is not correct. Please see the pull request comments for reference.
Attachment #8522866 - Flags: review?(alexis+bugs) → review-
Comment on attachment 8525177 [details] [review]
Documentation update

Needs to be revised, thanks!
Attachment #8525177 - Flags: review?(alexis+bugs) → review-
Comment on attachment 8525177 [details] [review]
Documentation update

Changes done.
Attachment #8525177 - Flags: review- → review?(alexis+bugs)
Comment on attachment 8522866 [details] [review]
Proposed patch (WIP)

Changes done.
Attachment #8522866 - Flags: review- → review?(alexis+bugs)
Comment on attachment 8525177 [details] [review]
Documentation update

thanks, doc is correct!
Attachment #8525177 - Flags: review?(alexis+bugs) → review+
Comment on attachment 8522866 [details] [review]
Proposed patch (WIP)

We're almost there. I've made other comments there. You need to update the tests to not create new blocks when they're not needed and also update the documentation of the function which takes new parameters.

Thanks!
Attachment #8522866 - Flags: review?(alexis+bugs) → review-
Thank you alexis.
Tests fixed and function documentation too.

I cann't land the doc since I haven't write access.
Attachment #8522866 - Flags: review- → review?(alexis+bugs)
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(rtestard)
Flags: needinfo?(mreavy)
Resolution: --- → FIXED
Whiteboard: [loop-server 0.14]
Blocks: 1103988
Alexis, this bug has the [loop-server 0.14] whiteboard but if I am not wrong is not in that release (it's in development server) when do you plan push it to Production?
Flags: needinfo?(alexis+bugs)
Removing the ni, I am seeing that will be part of 0.14.0 https://github.com/mozilla-services/loop-server/releases (10th Dec) and now Production is 0.13.2
Flags: needinfo?(alexis+bugs)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: