Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Feature 7/add tn to md2html conversion #190

Conversation

PhotoNomad0
Copy link
Contributor

@PhotoNomad0 PhotoNomad0 commented Oct 17, 2017

Issue: unfoldingWord/door43.org#7

Example: http://test-door43.org.s3-website-us-west-2.amazonaws.com/u/tx-manager-test-data/en_tn/c9efc46e91/

Fixes for multipart race conditions, and updated comments to clarify multi part deploy stages.

bspidel
bspidel previously approved these changes Oct 18, 2017
Copy link
Contributor

@bspidel bspidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gulp. LGTM

@jag3773
Copy link
Contributor

jag3773 commented Oct 18, 2017

Do not merge until develop is merged to master first, please.

…o Feature_7/Add_tN_to_md2html_Conversion

# Conflicts:
#	functions/convert_md2html/module.json
#	libraries/client/preprocessors.py
#	libraries/door43_tools/templaters.py
#	tests/converter_tests/test_md2html_converter.py
#	tests/door43_tools_tests/test_project_deployer.py
#	tests/integration_tests/test_conversion.py
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 0a04233 on PhotoNomad0:Feature_7/Add_tN_to_md2html_Conversion into ** on unfoldingWord-dev:develop**.

…o Feature_7/Add_tN_to_md2html_Conversion

# Conflicts:
#	libraries/converters/usfm2html_converter.py
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.8%) to 91.9% when pulling 8528938 on PhotoNomad0:Feature_7/Add_tN_to_md2html_Conversion into d60c033 on unfoldingWord-dev:develop.

…rge running at the same time. Improved some of the naming.
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.9%) to 91.822% when pulling 0b2078e on PhotoNomad0:Feature_7/Add_tN_to_md2html_Conversion into d60c033 on unfoldingWord-dev:develop.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.7%) to 92.078% when pulling b146ab1 on PhotoNomad0:Feature_7/Add_tN_to_md2html_Conversion into d60c033 on unfoldingWord-dev:develop.

MarkdownLinter - fix paths to source files in warnings
TestTnLinter - add markdown warnings
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 93.118% when pulling 4d032aa on PhotoNomad0:Feature_7/Add_tN_to_md2html_Conversion into 4ac3ff5 on unfoldingWord-dev:develop.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 93.184% when pulling cae7da7 on PhotoNomad0:Feature_7/Add_tN_to_md2html_Conversion into 4ac3ff5 on unfoldingWord-dev:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 93.24% when pulling 5be30c5 on PhotoNomad0:Feature_7/Add_tN_to_md2html_Conversion into 4ac3ff5 on unfoldingWord-dev:develop.

@PhotoNomad0 PhotoNomad0 changed the title WIP: Feature 7/add tn to md2html conversion Feature 7/add tn to md2html conversion Oct 25, 2017
@PhotoNomad0
Copy link
Contributor Author

@richmahn - OK ready for review...again.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 93.234% when pulling 7c901e0 on PhotoNomad0:Feature_7/Add_tN_to_md2html_Conversion into 4ac3ff5 on unfoldingWord-dev:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 93.234% when pulling 561b908 on PhotoNomad0:Feature_7/Add_tN_to_md2html_Conversion into 4ac3ff5 on unfoldingWord-dev:develop.

Copy link
Member

@richmahn richmahn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be verifying 00-toc.html exists as we don't want that file.

unzip(self.out_zip_file, self.out_dir)
remove(self.out_zip_file)

files_to_verify = ['00-toc.html', 'manifest.yaml', 'index.json']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be verifying 00-toc.html exists as we don't want that file.

return # skip test if integration test not enabled
git_url = "https://git.door43.org/tx-manager-test-data/en_tn.git"
base_url, repo, user = self.get_parts_of_git_url(git_url)
expected_output_name = ["00-toc"] + FULL_BIBLE_LIST
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be verifying 00-toc.html exists as we don't want that file.

@richmahn richmahn dismissed bspidel’s stale review October 30, 2017 21:52

Was made when still WIP

files_to_verify = ['00-toc.html', 'manifest.yaml', 'index.json']
for dir in BOOK_NUMBERS:
book = '{0}-{1}'.format(BOOK_NUMBERS[dir], dir.upper())
file = '{0}.html'.format(book)
Copy link
Member

@richmahn richmahn Oct 30, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason file comes up even as orange here is its a reserved word in Python. Change to filename.

@richmahn
Copy link
Member

Deployed the latest of your branch to develop, registered modules, and set up and ran webhook for tx-manager-test-data/en_tn_nt, and found it is producing files for OT books, such as 01-GEN.html even though that isn't part of this (empty) (e.g. https://dev.door43.org/u/tx-manager-test-data/en_tn_nt/e48a154bbe/01-GEN.html), and index.html just shows that conversion is successful: https://dev.door43.org/u/tx-manager-test-data/en_tn_nt/e48a154bbe/

Also need the navigation to be like that of tQ's conversion (TqTemplater)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 93.234% when pulling e34b82b on PhotoNomad0:Feature_7/Add_tN_to_md2html_Conversion into 4ac3ff5 on unfoldingWord-dev:develop.

@PhotoNomad0
Copy link
Contributor Author

@richmahn - yeah en_tn_nt needs to have the manifest fixed to remove the ot references.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 93.234% when pulling f554e2a on PhotoNomad0:Feature_7/Add_tN_to_md2html_Conversion into 4ac3ff5 on unfoldingWord-dev:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 93.234% when pulling f554e2a on PhotoNomad0:Feature_7/Add_tN_to_md2html_Conversion into 4ac3ff5 on unfoldingWord-dev:develop.

@PhotoNomad0
Copy link
Contributor Author

@richmahn - have navigation pane displayed now. Ready for review.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 93.038% when pulling 6513288 on PhotoNomad0:Feature_7/Add_tN_to_md2html_Conversion into 4ac3ff5 on unfoldingWord-dev:develop.

Copy link
Member

@richmahn richmahn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@richmahn richmahn merged commit 8fa676a into unfoldingWord-dev:develop Oct 31, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
5 participants