Add api.getEmbedDefaults #2312

Closed
opened 2014-02-16 09:15:50 +00:00 by rlx · 1 comment
Owner

This is an optimization. To populate the embed dialog (potentially from an external instance), we need defaults, and we don't want to make several separate requests to get them. So getEmbedDefaults would return:

{
    document: str // first public document, sorted by id
    edit: str // first public edit, sorted by name
    editDuration: float // duration of that edit
    item: str // first public item, sorted by id
    itemDuration: float // duration of that item
    itemRatio: float // video ratio of that item
    list: str // first public list, sorted by name
    text: str // first public text, sorted by name
    videoRatio: float // pandora.site.video.previewRatio
    videoResolution: int // largest value in pandora.site.video.resolutions
}
This is an optimization. To populate the embed dialog (potentially from an external instance), we need defaults, and we don't want to make several separate requests to get them. So getEmbedDefaults would return: ``` { document: str // first public document, sorted by id edit: str // first public edit, sorted by name editDuration: float // duration of that edit item: str // first public item, sorted by id itemDuration: float // duration of that item itemRatio: float // video ratio of that item list: str // first public list, sorted by name text: str // first public text, sorted by name videoRatio: float // pandora.site.video.previewRatio videoResolution: int // largest value in pandora.site.video.resolutions } ```
rlx added the
backend
label 2014-02-16 09:15:50 +00:00
rlx added this to the 14.01 milestone 2014-02-16 09:15:50 +00:00
j was assigned by rlx 2014-02-16 09:15:50 +00:00
rlx added the
normal
enhancement
labels 2014-02-16 09:15:50 +00:00
Owner

In []changeset:pandora,4127:

#!CommitTicketReference repository="" revision="pandora,4127"
add getEmbedDefaults api, fixes #2312
In []changeset:pandora,4127: ``` #!CommitTicketReference repository="" revision="pandora,4127" add getEmbedDefaults api, fixes #2312 ```
j added the
fixed
label 2014-02-16 10:16:37 +00:00
j closed this issue 2014-02-16 10:16:37 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#2312
No description provided.