It would be useful to import only content that has changed instead of deleting and re-importing all content for a static site. We should introduce an "import-partial" command, or augment how "import" works, to load and re-save or delete existing entities when ran.

Comments

samuel.mortenson created an issue. See original summary.

samuel.mortenson’s picture

I'm working on this now.

samuel.mortenson’s picture

Status: Active » Needs review
StatusFileSize
new21.57 KB

Here's my current progress on this. I was thinking about making this the default architecture for the "tome:import" command but it feels like there could still be edge cases and I don't want to break existing sites. Maybe that's a 8.x-2.x thing. :-)

Need to think about what I've done more and write tests.

Status: Needs review » Needs work

The last submitted patch, 3: 3040312-3.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

samuel.mortenson’s picture

Status: Needs work » Needs review
StatusFileSize
new23.29 KB
new1.99 KB
samuel.mortenson’s picture

StatusFileSize
new23.92 KB
new2.53 KB

Some weirdness with array references.

samuel.mortenson’s picture

StatusFileSize
new25.11 KB
new9.01 KB

More refactors, tweaks, etc.

samuel.mortenson’s picture

Note to self - hashes.json should be completely rebuilt whenever a full export is performed.

samuel.mortenson’s picture

StatusFileSize
new25.78 KB
new2.04 KB

Just needs tests now, and manual testing of multilingual.

samuel.mortenson’s picture

StatusFileSize
new32.01 KB
new7.63 KB

Added test coverage, fixed many bugs.

samuel.mortenson’s picture

StatusFileSize
new33.01 KB
new7.46 KB

Fixed more bugs! Things are looking really good now.

samuel.mortenson’s picture

StatusFileSize
new33.36 KB
new3.67 KB

  • samuel.mortenson authored d047be5 on 8.x-1.x
    Issue #3040312 by samuel.mortenson: Create a "tome:import-partial"...
samuel.mortenson’s picture

Status: Needs review » Fixed

Woot!

Status: Fixed » Closed (fixed)

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