Page MenuHomePhabricator

[Spike] Investigate developing a Share-a-fact card service in MCS
Closed, DeclinedPublic

Description

The iOS team is updating share-a-fact with new designs to make the content more "shareable".

The creation of these cards will eventually be done on Android as well. This means that sharing the code would be preferable.

Additionally, share cards could be beneficial to other clients as well for sharing on social media.

In order to support this, it would be ideal to have a service that could generate these cards on behalf of the clients, making sharing much easier.

API would be a POST which would accept:
A project and title
A snippet of text from the article

It would return a rendered image containing:
Image
Article title
Text snippet

Additionally the image would be water marked with the Wikipedia name and proper licensing.

Would this be possible to host in the MCS on SCB? It is a stateless service, but all requests would hit the application (no caching possible)

Event Timeline

I'm going to inquire about this during the Services sync on Thursday

Pchelolo subscribed.

What's the expected request rate? SCB has a lot of capacity, so I don't think it would be a problem.

We can expose the endpoint through RESTBase at something like /transform/text/to/card or something similar (name TBD)

@Pchelolo thanks, good to know…

We can get current usage from the apps for sharing. it isn't "high" for sure, but we are trying to increase sharing (though I'm guessing we aren't expecting order of magnitude growth).

@JMinor or @cmadeo do you happen to have recent numbers for share-a-fact. Not sure if you set any KPIs for the new sharing flow.

mobrovac subscribed.

From the description, it looks like this would just perform reformatting? If so, and given the fact that clients already have all the needed info, what would be the exact benefit of doing this server-side?

what would be the exact benefit of doing this server-side?

Sharing code between the apps (plus potentially expanding this feature to mobile web as well).

@mobrovac basically what @bearND said. We want to have a consistent share experience with all clients, and doing it server side would help ensure that.

It would be more than just reformatting… it would be rendering a "card" given the information outlined above. The cards will look like this:

https://wikimedia.invisionapp.com/boards/JF3CORRU7KN8W#/5630823

Just to post images here as well:

03  Small image long text.png (291×512 px, 130 KB)

03 Image short text two line title.png (291×512 px, 89 KB)

03 No image, long text.png (291×512 px, 43 KB)

Basically taking the content, rendering it with HTML/CSS and then outputting an image.

LGoto closed this task as Declined.Oct 9 2020, 4:50 PM