New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PCS: expose pagelib CSS #1048
PCS: expose pagelib CSS #1048
Conversation
http://localhost:7231/en.wikipedia.org/v1/data/css/mobile/pagelib Bug: https://phabricator.wikimedia.org/T202105
What prevents us from merging the 2 and make |
Besides that we would probably need to do this for all three variations ( |
The latter can be just several examples - easy! The former - we can just make a combined description with something like a bullet-point list with different variants. I think it would be nicer then a giant copy-paste |
Ok, will give it a shot. |
👌 |
The three CSS endpoints are similar enough to make it generic and have a parameter `file` for which kind of CSS is used: base, pagelib, or site. QA: http://localhost:7231/en.wikipedia.org/v1/data/css/mobile/base http://localhost:7231/en.wikipedia.org/v1/data/css/mobile/pagelib http://localhost:7231/en.wikipedia.org/v1/data/css/mobile/site Bug: https://phabricator.wikimedia.org/T202105
CI's still not happy but a bit better than before. Still, all seem unrelated issues. This time it's Node 6 with a PDF service 500. |
I'm almost inclined to make the PDF tests just a warning. They're too annoying |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, some bikeshedding opportunity inlined, feel free to ignore
v1/css.yaml
Outdated
@@ -11,20 +11,37 @@ info: | |||
name: Apache licence, v2 | |||
url: https://www.apache.org/licenses/LICENSE-2.0 | |||
paths: | |||
/css/mobile/base: | |||
/css/mobile/{file}: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bikeshedding... Maybe 'type' or smth?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, while this does get a file, in the context of the API type
sounds more appropriate. Let's change that, otherwise LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I could go with that. Another idea I had would be bundle
. What do you think of that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I could go with that. Another idea I had would be bundle. What do you think of that?
This is a totally bikeshedding session here, but I personally don't like bundle
- the bundle is what's returned, and the parameter for the bundle is the type
of the bundle
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, type
it is then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
v1/css.yaml
Outdated
@@ -11,20 +11,37 @@ info: | |||
name: Apache licence, v2 | |||
url: https://www.apache.org/licenses/LICENSE-2.0 | |||
paths: | |||
/css/mobile/base: | |||
/css/mobile/{file}: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, while this does get a file, in the context of the API type
sounds more appropriate. Let's change that, otherwise LGTM.
Adds a new <link rel="stylesheet" href="https://meta.wikimedia.org/api/rest_v1/data/css/mobile/pagelib"> to the html/head element. Note: the required RESTBase PR[1] was deployed a few hours ago. QA: http://localhost:6927/en.wikipedia.org/v1/page/mobile-html/Dog [1] wikimedia/restbase#1048 Bug: T202105 Change-Id: Ifd68b5344b4da04d900ec178baf1b37e6a37c47d
http://localhost:7231/en.wikipedia.org/v1/data/css/mobile/pagelib
Bug: https://phabricator.wikimedia.org/T202105