jenkins-bot has submitted this change and it was merged.
Change subject: Rename mobile-sections-references to references
......................................................................
Rename mobile-sections-references to references
This is a companion endpoint to the `formatted` endpoint.
It's not designed to go together with the other `mobile-sections` endpoints.
Change-Id: I7f31d4559d5ec817c2288274b90b0c8c6c0c9d10
---
M routes/mobile-sections.js
M test/features/mobile-sections/pagecontent.js
2 files changed, 3 insertions(+), 3 deletions(-)
Approvals:
Mholloway: Verified; Looks good to me, approved
Jdlrobson: Looks good to me, approved
jenkins-bot: Verified
Niedzielski: Looks good to me, but someone else must approve
diff --git a/routes/mobile-sections.js b/routes/mobile-sections.js
index 18a374b..db242d3 100644
--- a/routes/mobile-sections.js
+++ b/routes/mobile-sections.js
@@ -265,10 +265,10 @@
});
/**
- * GET {domain}/v1/page/mobile-sections-references/{title}/{revision:?}
+ * GET {domain}/v1/page/references/{title}/{revision:?}
* Gets any sections which are part of a reference sections for a given wiki
page.
*/
-router.get('/mobile-sections-references/:title/:revision?', function (req,
res) {
+router.get('/references/:title/:revision?', function (req, res) {
return BBPromise.props({
page: parsoid.pageContentPromise(app, req)
}).then(function (response) {
diff --git a/test/features/mobile-sections/pagecontent.js
b/test/features/mobile-sections/pagecontent.js
index 8e38209..941b8db 100644
--- a/test/features/mobile-sections/pagecontent.js
+++ b/test/features/mobile-sections/pagecontent.js
@@ -182,7 +182,7 @@
});
it('Requesting just references returns only sections with references',
function() {
- return preq.get({uri: server.config.uri +
'en.wikipedia.org/v1/page/mobile-sections-references/Barack_Obama'})
+ return preq.get({uri: server.config.uri +
'en.wikipedia.org/v1/page/references/Barack_Obama'})
.then(function (res) {
assert.equal(res.status, 200);
assert.equal(res.body.sections.length, 4, 'Barack Obama has 4
reference sections');
--
To view, visit https://gerrit.wikimedia.org/r/323336
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7f31d4559d5ec817c2288274b90b0c8c6c0c9d10
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: BearND <[email protected]>
Gerrit-Reviewer: BearND <[email protected]>
Gerrit-Reviewer: Dbrant <[email protected]>
Gerrit-Reviewer: Fjalapeno <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: Jhernandez <[email protected]>
Gerrit-Reviewer: Mholloway <[email protected]>
Gerrit-Reviewer: Mhurd <[email protected]>
Gerrit-Reviewer: Mobrovac <[email protected]>
Gerrit-Reviewer: Niedzielski <[email protected]>
Gerrit-Reviewer: Ppchelko <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits