Skip to content

[FIX] Change how legacy ItemType is processed to handle nolink value#107

Merged
AaronSadlerUK merged 1 commit into
AaronSadlerUK:developfrom
NikRimington:amend/issue-with-migration-for-legacy-type
Feb 13, 2026
Merged

[FIX] Change how legacy ItemType is processed to handle nolink value#107
AaronSadlerUK merged 1 commit into
AaronSadlerUK:developfrom
NikRimington:amend/issue-with-migration-for-legacy-type

Conversation

@NikRimington

Copy link
Copy Markdown
Contributor

When testing this with some real data the values for "ItemType" used to be link or nolink. The migration was erroring because these were not valid for the enum it tried to parse to.

Changed the deserialisation process to put the original value into a string and the new property to try and convert, performing a bit of logic to differentiate between external and content links. If there is something other than those two values it will try and parse it into the enum, and if that fails it will throw an exception (not seen any other variants occur but it's always possible).

@AaronSadlerUK AaronSadlerUK merged commit fe94f4b into AaronSadlerUK:develop Feb 13, 2026
3 of 5 checks passed
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.

2 participants