Skip to content

Add 'ignorable' flag to import mappings#570

Merged
soininen merged 1 commit intomasterfrom
toolbox_3165_fix_missing_entity_alternative_import
Sep 9, 2025
Merged

Add 'ignorable' flag to import mappings#570
soininen merged 1 commit intomasterfrom
toolbox_3165_fix_missing_entity_alternative_import

Conversation

@soininen
Copy link
Copy Markdown
Contributor

@soininen soininen commented Sep 9, 2025

The new flag works analogously to export mappings: if True, child mappings will get processed even when the imported value is None. Otherwise we skip the children.

Fixes spine-tools/Spine-Toolbox#3165

Checklist before merging

  • Documentation (also in Toolbox repo) is up-to-date
  • Release notes have been updated
  • Unit tests have been added/updated accordingly
  • Code has been formatted by black & isort
  • Unit tests pass

The new flag works analogously to export mappings:
it makes the mapping to process child mappings even when the
imported value is None. Otherwise we skip the children.

Re spine-tools/Spine-Toolbox#3165
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.96%. Comparing base (b165cc6) to head (7edb21f).
⚠️ Report is 21 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #570      +/-   ##
==========================================
+ Coverage   84.49%   84.96%   +0.47%     
==========================================
  Files          80       80              
  Lines       10889    10931      +42     
  Branches     1599     1600       +1     
==========================================
+ Hits         9201     9288      +87     
+ Misses       1322     1280      -42     
+ Partials      366      363       -3     

☔ View full report in Codecov by Sentry.
📢 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.

@soininen soininen merged commit 5a77ca4 into master Sep 9, 2025
15 checks passed
@soininen soininen deleted the toolbox_3165_fix_missing_entity_alternative_import branch September 9, 2025 13:25
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.

Importer fails silently if no Activity

1 participant