Closed Bug 1515679 Opened 5 years ago Closed 5 years ago

Add test data / initial dev tools for testing / developing pocket layouts

Categories

(Firefox :: New Tab Page, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 66
Iteration:
66.3 - Jan 7 - 20

People

(Reporter: k88hudson, Assigned: k88hudson)

References

Details

We'd like to be able to easily develop on the layout/component system so having some locally available data would be beneficial.
It was mentioned today that there's a gist being passed around to do this in the interim.  What's the URL for that?
Flags: needinfo?(gsuntop)
We should switch over to the actual API ASAP. The gist schema is slightly outdated now...

https://firefox-mathijs.dev.readitlater.com/v3/home/layout?version=1&consumer_key=40249-e88c401e1b1f2242d9e441c4
Hmm...looks like that's down. Mathijs, what URL is the endpoint at now?
Flags: needinfo?(mathijs)
I was using my staging server briefly for something else on Friday and switched back to this branch when done. Sorry for the interruption. I'll deploy to production today.
Flags: needinfo?(mathijs)
Repost from Slack:

Layout endpoint is live on our production server:
https://getpocket.com/v3/home/layout?version=1&consumer_key=40249-e88c401e1b1f2242d9e441c4

You can use Mozilla's CDN as we do for the current new-tab:
https://getpocket.cdn.mozilla.net/v3/home/layout?version=1&consumer_key=40249-e88c401e1b1f2242d9e441c4
Let me know if you want to test any particular layouts. Once the actual feed variants are defined by product, I'll add those too.

We're also hosting the endpoint definition (thanks for the idea @gvn!)
https://getpocket.com/v3/home/layout.yml
It's using the OpenAPI 3.0 syntax. The intent is to use this for automated tests, to validate that the schema. Let me know if you want to use it for some other purpose, in particular if you want to use it in production code, which I am assuming we won't do.
Assignee: nobody → khudson
Iteration: --- → 66.3 - Jan 7 - 20
Priority: -- → P1
Severity: normal → enhancement

I'm going to close this since our initial implementation is usable and working for what we need.

If there is more work to be done, let's file individual issues as needed.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED

[Note for QA]: No new code is associated with this bug, new functionality was tested in https://bugzilla.mozilla.org/show_bug.cgi?id=1517596

Target Milestone: --- → Firefox 66
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.