Skip to content

upgrade/24.09.1, convert-entity: adds entity-types-php@2 mixin even the extension doesn't define new entities#381

Merged
totten merged 3 commits intototten:masterfrom
semseysandor:convert-entities
Jan 18, 2025
Merged

upgrade/24.09.1, convert-entity: adds entity-types-php@2 mixin even the extension doesn't define new entities#381
totten merged 3 commits intototten:masterfrom
semseysandor:convert-entities

Conversation

@semseysandor
Copy link
Copy Markdown
Contributor

\CRM\CivixBundle\Command\ConvertEntityCommand::convertEntities() is called regardless if there are actual legacy xml entities to convert, and it adds the entity-types-php@2 unconditionally.

In this PR, convertEntities is called only if there are files to convert. Also a check is
added to convertEntities to return early if it's called with no xml files.

fixes #372

@totten
Copy link
Copy Markdown
Owner

totten commented Jan 18, 2025

Seems good to me.

I played with running the upgrade on a few different extension scenarios, eg

  • Ext with no schema/upgrader/etc;
  • Ext with custom upgrader... but no EFv1 metadata
  • Ext with full EFv1 (upgrader/sql/metadata/etc)

Where it changed, it all seemed to change for the better. 👍

Thanks @semseysandor!

@totten totten merged commit 95b9357 into totten:master Jan 18, 2025
@semseysandor semseysandor deleted the convert-entities branch January 18, 2025 11:30
@colemanw
Copy link
Copy Markdown
Contributor

Great work @semseysandor !

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unconditionally prompts upgrade to EFv2

3 participants