Skip to content

Conversation

@molund
Copy link
Collaborator

@molund molund commented Dec 24, 2025

Jira Ticket

CMS-1324

Description

Added a new script based on the same pattern as import-feature-types.js to sync DateTypes from Strapi to DOOT.

This includes new fields that have been added to Strapi in v2.16.0 and this should not be deployed until after CMS v2.16.0 is released.

@molund molund self-assigned this Dec 24, 2025
@molund molund added the WIP label Dec 24, 2025
@molund molund requested a review from Copilot December 24, 2025 22:07
Copy link
Contributor

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 adds a new automated script to synchronize DateType records from Strapi CMS to the DOOT database, matching the existing pattern used for feature type imports. The script maps Strapi's park-date-type data to DOOT's DateType model, including new fields introduced in CMS v2.16.0.

Key changes:

  • New import script with transaction safety and comprehensive logging
  • Configuration update to enable park-date-type data fetching from Strapi
  • Documentation covering data mapping, usage, and transaction handling

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
backend/tasks/import-date-types/import-date-types.js Main import script that syncs DateType records from Strapi, with create/update logic and transaction support
backend/tasks/import-date-types/README.md Documentation explaining the script's purpose, data mapping, and usage instructions
backend/strapi-sync/strapi-data-service.js Adds park-date-type endpoint configuration to enable data fetching

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

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.

2 participants