Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29741581: Fixes 6546 - Swap the contents of default.tmpl and empty.tmpl in the test suite (Closed)

Created:
April 3, 2018, 2:19 p.m. by Vasily Kuznetsov
Modified:
April 4, 2018, 5:42 p.m.
Visibility:
Public.

Description

Fixes 6546 - Swap the contents of default.tmpl and empty.tmpl in the test suite Repository: https://hg.adblockplus.org/cms Base revision: b683e321a9d0

Patch Set 1 #

Patch Set 2 : Remove unnecessary template=default metadata and adjust the expected output for sitemap accordingly #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -27 lines) Patch
M tests/expected_output/en/sitemap View 1 1 chunk +0 lines, -9 lines 4 comments Download
M tests/test_additional_paths.py View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/test_site/pages/filter.tmpl View 1 1 chunk +0 lines, -1 line 0 comments Download
M tests/test_site/pages/get_page_url.tmpl View 1 1 chunk +0 lines, -1 line 0 comments Download
M tests/test_site/pages/global.tmpl View 1 1 chunk +0 lines, -1 line 0 comments Download
M tests/test_site/pages/sitemap.tmpl View 1 1 chunk +0 lines, -1 line 0 comments Download
M tests/test_site/pages/translate.md View 1 1 chunk +0 lines, -2 lines 0 comments Download
M tests/test_site/pages/translate-html.html View 1 1 chunk +0 lines, -2 lines 0 comments Download
M tests/test_site/pages/translate-include.md View 1 1 chunk +0 lines, -2 lines 0 comments Download
M tests/test_site/pages/translate-not-enough.md View 1 1 chunk +0 lines, -2 lines 0 comments Download
M tests/test_site/pages/translate-partial.md View 1 1 chunk +0 lines, -2 lines 0 comments Download
M tests/test_site/pages/translate-tmpl.tmpl View 1 1 chunk +0 lines, -2 lines 0 comments Download
M tests/test_site/templates/default.tmpl View 1 chunk +1 line, -0 lines 0 comments Download
M tests/test_site/templates/empty.tmpl View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 6
Vasily Kuznetsov
This change fixes the roadblock for https://codereview.adblockplus.org/29516687/
April 3, 2018, 2:25 p.m. (2018-04-03 14:25:02 UTC) #1
Sebastian Noack
LGTM https://codereview.adblockplus.org/29741581/diff/29741641/tests/expected_output/en/sitemap File tests/expected_output/en/sitemap (left): https://codereview.adblockplus.org/29741581/diff/29741641/tests/expected_output/en/sitemap#oldcode17 tests/expected_output/en/sitemap:17: <li>title : translate-tmpl </li> So these pages showed ...
April 3, 2018, 10:32 p.m. (2018-04-03 22:32:51 UTC) #2
Vasily Kuznetsov
https://codereview.adblockplus.org/29741581/diff/29741641/tests/expected_output/en/sitemap File tests/expected_output/en/sitemap (left): https://codereview.adblockplus.org/29741581/diff/29741641/tests/expected_output/en/sitemap#oldcode17 tests/expected_output/en/sitemap:17: <li>title : translate-tmpl </li> On 2018/04/03 22:32:51, Sebastian Noack ...
April 3, 2018, 10:47 p.m. (2018-04-03 22:47:05 UTC) #3
rosie
LGTM, just a quick note about making the expected behavior of `get_pages_metadata` a bit clearer ...
April 4, 2018, 4:22 p.m. (2018-04-04 16:22:17 UTC) #4
Vasily Kuznetsov
On 2018/04/04 16:22:17, rosie wrote: > LGTM, just a quick note about making the expected ...
April 4, 2018, 4:29 p.m. (2018-04-04 16:29:37 UTC) #5
Sebastian Noack
April 4, 2018, 5:42 p.m. (2018-04-04 17:42:58 UTC) #6
Message was sent while issue was closed.
https://codereview.adblockplus.org/29741581/diff/29741641/tests/expected_outp...
File tests/expected_output/en/sitemap (left):

https://codereview.adblockplus.org/29741581/diff/29741641/tests/expected_outp...
tests/expected_output/en/sitemap:17: <li>title : translate-tmpl </li>
On 2018/04/04 16:29:37, Vasily Kuznetsov wrote:
> It would be good to document this behavior (probably the docstring of
> `get_pages_metadata` is the best place), but this is not related to this
change,
> so it probably should be a separate noissue review.

As I pointed out in the other review, there is a comment in the source code:
https://hg.adblockplus.org/cms/file/b683e321a9d0/cms/converters.py#l477
But its merely indicating that pages without custom metadata are skipped, but
fails to explain why.

Furthermore, it seems there is out-of-source documentation for provided template
functions in docs/api/functions.md, which however is missing any mention of
get_pages_metadata() at all.

Powered by Google App Engine
This is Rietveld