Skip to content

Create upgrade_schema() - #363

Merged
peterdesmet merged 12 commits into
v2from
339-Create-upgrade_schema()
Aug 28, 2026
Merged

Create upgrade_schema()#363
peterdesmet merged 12 commits into
v2from
339-Create-upgrade_schema()

Conversation

@sannegovaert

Copy link
Copy Markdown
Contributor

foreignKeys.reference[x].resource is removed when equal to the resource name. I first tried to add it only when it is not equal to resource name, but then the order of the list was changed. Therefore this solution

@sannegovaert
sannegovaert requested review from peterdesmet and a lite review from Copilot and removed request for Copilot August 26, 2026 14:27
@codecov

codecov Bot commented Aug 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (462fadd) to head (ff68c3a).
⚠️ Report is 61 commits behind head on v2.

Additional details and impacted files
@@            Coverage Diff            @@
##                v2      #363   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           26        27    +1     
  Lines          757       792   +35     
=========================================
+ Hits           757       792   +35     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@peterdesmet peterdesmet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice! I've changed to foreignKeys approach to make use of purrr::modify_if(), which doesn't remove custom properties (those are used by DwC-DP I believe) and made the tests stricter.

I've also used the modify_if() approach for contributors in upgrade_descriptor()

@peterdesmet peterdesmet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh, and I added a helper function character_to_list() to convert string values to arrays, since we have to do that in 4 places.

@peterdesmet
peterdesmet merged commit 9506648 into v2 Aug 28, 2026
9 checks passed
@peterdesmet
peterdesmet deleted the 339-Create-upgrade_schema() branch August 28, 2026 16:21
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.

Create upgrade_schema() helper function

2 participants