Merge lp:~dholbach/developer-ubuntu-com/rework-importer into lp:~developer-ubuntu-com-dev/developer-ubuntu-com/django-1.8-cms-2.3
| Status: | Superseded | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Proposed branch: | lp:~dholbach/developer-ubuntu-com/rework-importer | ||||||||
| Merge into: | lp:~developer-ubuntu-com-dev/developer-ubuntu-com/django-1.8-cms-2.3 | ||||||||
| Diff against target: |
1625 lines (+953/-399) 28 files modified
TODO (+13/-0) developer_portal/admin.py (+1/-18) developer_portal/migrations/0001_initial.py (+0/-9) developer_portal/models.py (+0/-21) developer_portal/settings.py (+2/-0) locale/de.po (+2/-2) locale/en_GB.po (+2/-2) locale/es.po (+2/-2) locale/ug.po (+2/-2) locale/zh_CN.po (+2/-2) md_importer/admin.py (+36/-0) md_importer/management/commands/import-external-docs-branches.py (+35/-335) md_importer/management/importer/article.py (+118/-0) md_importer/management/importer/publish.py (+64/-0) md_importer/management/importer/repo.py (+168/-0) md_importer/management/importer/source.py (+60/-0) md_importer/migrations/0001_initial.py (+46/-0) md_importer/models.py (+54/-0) md_importer/tests/__init__.py (+8/-0) md_importer/tests/data/link-test/file1.md (+5/-0) md_importer/tests/data/link-test/file2.md (+3/-0) md_importer/tests/test_branch_fetch.py (+42/-0) md_importer/tests/test_branch_import.py (+67/-0) md_importer/tests/test_link_rewrite.py (+44/-0) md_importer/tests/test_snappy_import.py (+70/-0) md_importer/tests/test_utils.py (+33/-0) md_importer/tests/utils.py (+67/-0) requirements.txt (+7/-6) |
||||||||
| To merge this branch: | bzr merge lp:~dholbach/developer-ubuntu-com/rework-importer | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ubuntu App Developer site developers | 2015-12-22 | Pending | |
|
Review via email:
|
|||
| Daniel Holbach (dholbach) wrote : | # |
- 252. By Daniel Holbach on 2015-12-22
-
break up tests into individual files
- 253. By Daniel Holbach on 2015-12-22
-
update TODO
- 254. By Daniel Holbach on 2016-01-05
-
improve create_repo helper function
- 255. By Daniel Holbach on 2016-01-05
-
allow SourceCode.
_get_branch to use local docs (ie for testing) - 256. By Daniel Holbach on 2016-01-05
-
first cut at testing local links
- 257. By Daniel Holbach on 2016-01-05
-
fix simple link rewrite functionality and test
- 258. By Daniel Holbach on 2016-01-06
-
move md_importer into its own app
- 259. By Daniel Holbach on 2016-01-06
-
add migration for md_importer
- 260. By Daniel Holbach on 2016-01-06
- 261. By Daniel Holbach on 2016-01-06
-
make directory structure clearer
- 262. By Daniel Holbach on 2016-01-06
-
adapt to new name of management command
- 263. By Daniel Holbach on 2016-01-06
-
add more readable error message
- 264. By Daniel Holbach on 2016-01-08
-
add more local test data (imported just the docs from snappy's and snapcraft's git master branches)
- 265. By Daniel Holbach on 2016-01-08
-
WIP commit:
- move and update TODO file
- define some global values for the importer centrally
- don't sys.exit() when adding pages to the db
- add debug messages
- break _find_parent() into its own function
- mostly make use of local test data
- drop singleton, use separate test classes instead
- add more assertions in tests - 266. By Daniel Holbach on 2016-01-08
-
remove debug prints, make Repo class variables actual members
- 267. By Daniel Holbach on 2016-01-08
-
- make pep8 happy, remove unnecessary imports
- use TestLocalBranchImport as base class for almost everything,
reduces a lot of duplication - 268. By Daniel Holbach on 2016-01-08
-
remove unnecessary code, fix publishing of pages in tests
- 269. By Daniel Holbach on 2016-01-08
-
fix test_link_rewrite by fixing the URL
- 270. By Daniel Holbach on 2016-01-08
-
make Article class variables actual members
- 271. By Daniel Holbach on 2016-01-08
-
add new test to check links in snapcraft import, move link checking function into TestLocalBranch
Import - 272. By Daniel Holbach on 2016-01-11
-
merge lp:~developer-ubuntu-com-dev/developer-ubuntu-com/django-1.8-cms-2.3
- 273. By Daniel Holbach on 2016-01-11
-
allow empty strings in import directives
- 274. By Daniel Holbach on 2016-01-11
-
update migration
- 275. By Daniel Holbach on 2016-01-11
-
check if articles were added below home
- 276. By Daniel Holbach on 2016-01-11
-
remove unnecessary call to set a page's publisher_is_draft bit
- 277. By Daniel Holbach on 2016-01-11
-
give article a .publish() method which gives back the page's public_object
- 278. By Daniel Holbach on 2016-01-11
-
rename home_page to root_page, use cms.test_
utils.testcases .CMSTestCase, make sure we use public_object wherever possible - 279. By Daniel Holbach on 2016-01-11
-
update tests accordingly
- 280. By Daniel Holbach on 2016-01-11
-
disregard anchors, make link checking more flexible (ie not only check for intro.md, but also things like docs/intro.md
- 281. By Daniel Holbach on 2016-01-11
-
make URL work, even if LANG is already part of it
- 282. By Daniel Holbach on 2016-01-11
-
links look like they're working now
- 283. By Daniel Holbach on 2016-01-11
-
add test with a broken link, add convenience function is_local_link, modify tests
- 284. By Daniel Holbach on 2016-01-11
-
import doc fix from https:/
/bugs.launchpad .net/developer- ubuntu- com/+bug/ 1531200 - 285. By Daniel Holbach on 2016-01-11
-
bug fixed
- 286. By Daniel Holbach on 2016-01-12
-
stop import if local images are found, add tests
- 287. By Daniel Holbach on 2016-01-12
-
update TODO
- 288. By Daniel Holbach on 2016-01-12
-
add test to see if importing the same content twice results in the same number of pages
- 289. By Daniel Holbach on 2016-01-15
-
when replacing links, only update HTML if things actually change, only publish if page is dirty
- 290. By Daniel Holbach on 2016-01-15
-
only update page attributes if they actually change, only update the text plugin if the html actually changes, veryify with djangocms_
text_ckeditor. html.clean_ html, add a text plugin to a page, even if html is empty - 291. By Daniel Holbach on 2016-01-15
-
add test to check if running an import twice will update the articles in question
- 292. By Daniel Holbach on 2016-01-15
-
update TODO
- 293. By Daniel Holbach on 2016-01-15
-
add misc tests - forgot to 'bzr add'
- 294. By Daniel Holbach on 2016-01-15
-
make update-mtemplate work again, simplify it
- 295. By Daniel Holbach on 2016-01-15
-
update .pot file
- 296. By Daniel Holbach on 2016-01-15
-
add actual page object to repo.pages
- 297. By Daniel Holbach on 2016-01-15
-
use UTC for ImportedArticle
.last_import, simplify ImportedArticle cleanup - 298. By Daniel Holbach on 2016-01-15
-
use repo instead of branch consistently
- 299. By Daniel Holbach on 2016-01-15
-
break out the process of importing a branch into its own module, add a first simple test for it
- 300. By Daniel Holbach on 2016-01-16
-
fix clean up of imported articles, add a test
- 301. By Daniel Holbach on 2016-01-18
-
update TODO
Unmerged revisions
- 301. By Daniel Holbach on 2016-01-18
-
update TODO
- 300. By Daniel Holbach on 2016-01-16
-
fix clean up of imported articles, add a test
- 299. By Daniel Holbach on 2016-01-15
-
break out the process of importing a branch into its own module, add a first simple test for it
- 298. By Daniel Holbach on 2016-01-15
-
use repo instead of branch consistently
- 297. By Daniel Holbach on 2016-01-15
-
use UTC for ImportedArticle
.last_import, simplify ImportedArticle cleanup - 296. By Daniel Holbach on 2016-01-15
-
add actual page object to repo.pages
- 295. By Daniel Holbach on 2016-01-15
-
update .pot file
- 294. By Daniel Holbach on 2016-01-15
-
make update-mtemplate work again, simplify it
- 293. By Daniel Holbach on 2016-01-15
-
add misc tests - forgot to 'bzr add'
- 292. By Daniel Holbach on 2016-01-15
-
update TODO


sqlite> select * from developer_ portal_ externaldocsbra nch; /github. com/ubuntu- core/snapcraft. git|1|master| /github. com/ubuntu- core/snapcraft. git|1|1.x| /github. com/ubuntu- core/snappy. git|1|master| /github. com/ubuntu- core/snappy. git|1|15.04| portal_ externaldocsbra nchimportdirect ive; md|snappy/ build-apps/ devel|1 snappy/ build-apps/ devel|1 md|snappy/ build-apps/ |2 snappy/ build-apps/ |2 snappy/ guides/ devel|3 snappy/ guides/ current| 4 md|snappy/ build-apps/ hacking| 1
1|https:/
2|https:/
3|https:/
4|https:/
sqlite> select * from developer_
1|README.
2|docs|
3|README.
4|docs|
5|docs|
6|docs|
7|HACKING.
sqlite>