Skip to content

Conversation

@MarBert
Copy link
Collaborator

@MarBert MarBert commented Sep 15, 2025

This PR depends on #19

List of Changes

Add a migration to switch ck editor components with ck editor html components in tutorial parts

Motivation and Context

How Has This Been Tested?

on localhost

Screenshots (if appropriate):

Types of changes

  • Chore (nothing changes by a user perspective)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@MarBert MarBert self-assigned this Sep 15, 2025
@marcobottaro marcobottaro changed the base branch from main to DEV-2748-add-new-part September 16, 2025 08:44
@dpulls
Copy link

dpulls bot commented Sep 16, 2025

⚠️ Dpulls not installed on repository pagopa/developer-portal-cms. Checkout our quickstart for how to install.

Co-authored-by: marcobottaro <39835990+marcobottaro@users.noreply.github.com>
@github-actions github-actions bot removed the release label Sep 16, 2025
MarBert and others added 2 commits September 16, 2025 11:18
…tute-ckeditor-parts-with-ckeditorhtml-parts.js

Co-authored-by: marcobottaro <39835990+marcobottaro@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Sep 19, 2025

Jira Pull Request Link

This Pull Request refers to the following Jira issue DEV-2750

Copy link
Collaborator

Choose a reason for hiding this comment

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

We should use English for comments in the repository 😉

Comment on lines +17 to +19
// La creazione della tabella è fatta una sola volta, quindi può rimanere qui.
// Nota: lo script originale mischiava `knex` e `strapi.db.connection`.
// Per coerenza, usiamo `knex` anche qui.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Translate comments

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the date in the name of the file should be formatted "YYYY.MM.DD..." by standard ISO 8601

const tableExists = await knex.schema.hasTable('tutorials_components');

if (!tableExists) {
console.log("'tutorials_components' table does not exist. Skipping migration.");
Copy link
Collaborator

Choose a reason for hiding this comment

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

We could use console.warn here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants