User talk:MHolloway (WMF)/Drafts/Compilation endoint schema

About this board

Image/thumb response type/format

1
MHolloway (WMF) (talkcontribs)

@DBrant (WMF) and I have been discussing how images should be represented in the compilation info response. The Image type defined here might not make much sense:

1) Will the dimensions actually be useful?

2) It's looking likely that we'll bundle all of the needed info (including image/thumb bitmaps) directly into our versions of the ZIM files so that they can function as a self-contained unit. Would should the corresponding image/thumb treatment be in the compilation endpoint response?

Reply to "Image/thumb response type/format"
RHo (WMF) (talkcontribs)

Just reviewing updated description on https://phabricator.wikimedia.org/T169905 around what compilations to initially support, and wonder if these two data points may be useful to include in the schema (even if we don't expose it in the UI initially):

- Media variants (All content / No audio or video / No images, audio or video)

- Language(s) of the compilation

MHolloway (WMF) (talkcontribs)

Agreed on both ideas. I'll update.

Reply to "Extra metadata..."

Specific to current project?

5
BSitzmann (WMF) (talkcontribs)

Will the response be specific to the current project? E.g. if I go to enwiki do I only see compilations for enwiki? Or do I see also compilations for other languages or projects?

CFloyd (WMF) (talkcontribs)

Hmmm… this is a good question.

I don't think we have anything like this built into the UI based on the designs.

Let me prompt Rita on this

CFloyd (WMF) (talkcontribs)

From Rita:

We can have mixed compilations so we shouldn't scope to the project level. So this API should live at the wikipedia.org domain level (no project subdomain)

RHo (WMF) (talkcontribs)

Hiya - this should show all available compilations, since one of the use-cases is enabling users to get compilations from multiple languages. Also, we could very well in future have a single compilation containing content from multiple languages - e.g. a medical compilation containing English and Chinese articles.

MHolloway (WMF) (talkcontribs)

Agreed, this endpoint should be available only on one wiki (say, meta) and serve content from all Wikipedias.

Edit: or, as Corey and/or Rita says, just wikipedia.org (no subdomain).

Reply to "Specific to current project?"
MHolloway (WMF) (talkcontribs)

How large of a thumbnail should the thumb_url property point to by default? Or should we provide a set with a variety of sizes, as is done in mobile-sections-lead for the page image thumbnail?

CFloyd (WMF) (talkcontribs)

We should probably mimic the summary end point. One thumb and one full.

MHolloway (WMF) (talkcontribs)

Cool. 320px seems to be the convention for the thumbnail image size; continue that here, then?

Reply to "Thumbnail size(s)"
There are no older topics