Skip to content

chore: world_heritage-split-command-refactor#386

Merged
zigzagdev merged 1 commit intochore/integrate-image_url-into-image-tablefrom
chore/delete-command-writing-image_url-into-heritage-command
Mar 28, 2026
Merged

chore: world_heritage-split-command-refactor#386
zigzagdev merged 1 commit intochore/integrate-image_url-into-image-tablefrom
chore/delete-command-writing-image_url-into-heritage-command

Conversation

@zigzagdev
Copy link
Copy Markdown
Owner

What

  • Removed image_url and primary_image_url writes from normalizeSiteRowImportReady
  • Removed image_url write from mergeSiteRowPreferExisting
  • Added url_hash (sha256) to image rows for de-dup upsert
  • Fixed variable name bug in extractCriteriaList ($s → $stringText)

Why

image_url / primary_image_url on the main table is redundant with world_heritage_site_images.
Persisting images only in the images table makes the data source of truth clear and avoids inconsistency.

@zigzagdev zigzagdev requested a review from Copilot March 28, 2026 11:28
@zigzagdev zigzagdev self-assigned this Mar 28, 2026
@zigzagdev zigzagdev linked an issue Mar 28, 2026 that may be closed by this pull request
13 tasks
Copy link
Copy Markdown
Owner Author

@zigzagdev zigzagdev left a comment

Choose a reason for hiding this comment

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

Ok

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the World Heritage JSON split/import preparation to remove redundant image URL fields from world_heritage_sites and to improve criteria parsing/cleanup while preparing image rows for de-duplication.

Changes:

  • Stop writing image_url / primary_image_url into normalized site rows and stop merging image_url from incoming rows.
  • Adjust image row generation logic in the split output (intended: support de-dup via hashing).
  • Refactor criteria extraction to fix a variable naming bug and centralize deduplication.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

zigzagdev

This comment was marked as duplicate.

@zigzagdev zigzagdev merged commit 22f12dc into chore/integrate-image_url-into-image-table Mar 28, 2026
29 checks passed
@zigzagdev zigzagdev deleted the chore/delete-command-writing-image_url-into-heritage-command branch March 28, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update importer: stop writing image_url, insert only images

2 participants