Problem/Motivation

The articles imported during the installation of the demo_umami profile are held in a csv file, with one article per line.
This makes making and reviewing changes to the articles very difficult, as git diff will just show you that the entire line has changed.

Proposed resolution

Move the article body into their own text file. Reference the name of the file in the csv where we currently have the entire instruction text.

Remaining tasks

All the things.

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

kjay created an issue. See original summary.

kjay’s picture

StatusFileSize
new12.96 KB

Work in progress. Based on @eli-t's work in #2940362, this patch contains the existing articles as html files in a sub-directory.

eli-t’s picture

We should definitely do this.

eli-t’s picture

Patch to actually import the articles.

Still needs test for htaccess preventing the html being loaded.

Have run this and can see articles being imported that look ok, but cannot currently A/B test against 8.6.x as simplytest.me can't currently build it.

eli-t’s picture

Status: Active » Postponed

Further changes were requested of #2940362: Move recipe instruction out of csv file in to their own text file., so postponing this until that lands

eli-t’s picture

Status: Postponed » Needs work
eli-t’s picture

Status: Needs work » Needs review
StatusFileSize
new28.25 KB
new1.44 KB

Test added to prove the articles are actually loaded on install.

eli-t’s picture

Status: Needs review » Needs work

Still need one more test to prove the html files containing the article body texts are not accessible

eli-t’s picture

Status: Needs work » Needs review
Issue tags: -Needs tests
StatusFileSize
new29.18 KB
new785 bytes

Final test implemented. This is now ready for review.

eli-t’s picture

Screenshots of article listing and pages for A/B reviewing:

Articles overview before patch

Articles overview after patch

Herbs without

Herbs with

Supermarket without

Supermarket with

Mushrooms without

Mushrooms with

Carrots without

Carrots with

eli-t’s picture

Issue tags: +Umami stable blocker
cehfisher’s picture

StatusFileSize
new255.8 KB

Patch in #9 tested and applied cleanly to local Umami install since SimplyTest.me seems to be having issues with 8.6.x currently. Looks good!

markconroy’s picture

Status: Needs review » Reviewed & tested by the community

This one is ripe for RTBC

The last submitted patch, 2: 2941837_1_article_body_out_of_csv.patch, failed testing. View results

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 6eee27d and pushed to 8.6.x. Thanks!

  • alexpott committed 6eee27d on 8.6.x
    Issue #2941837 by Eli-T, kjay, cehfisher: Move article body out of csv...

  • alexpott committed 8c0a00b on 8.5.x
    Issue #2941837 by Eli-T, kjay, cehfisher: Move article body out of csv...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.