Skip to content

Conversation

@ehennestad
Copy link
Collaborator

Added 'AbortIfNodeExists' option to node addition methods in Collection

Added preference to control whether controlled instances should be added to a Metadata Collection or not

Added 'AbortIfNodeExists' option to node addition methods and improved handling of controlled term instances based on preferences. Subnodes are now added before the main node, and code comments were updated to reflect new functionality.
@ehennestad ehennestad enabled auto-merge (squash) November 20, 2025 09:20
@github-actions
Copy link
Contributor

github-actions bot commented Nov 20, 2025

Test Results (R2021b)

568 tests  ±0   568 ✅ ±0   1m 32s ⏱️ -7s
 16 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 7946ba0. ± Comparison against base commit 1987e0c.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 20, 2025

Test Results (R2024b)

568 tests  ±0   568 ✅ ±0   1m 26s ⏱️ -4s
 16 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 7946ba0. ± Comparison against base commit 1987e0c.

♻️ This comment has been updated with latest results.

Added a check to reshape allInstances to a row vector if it is a column. This prevents issues when iterating over instances and ensures consistent behavior in the addNode method.
@ehennestad ehennestad merged commit 15b4762 into main Nov 20, 2025
7 checks passed
@codecov
Copy link

codecov bot commented Nov 20, 2025

Codecov Report

❌ Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 75.73%. Comparing base (1987e0c) to head (7946ba0).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
code/+openminds/@Collection/Collection.m 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #79      +/-   ##
==========================================
+ Coverage   75.68%   75.73%   +0.05%     
==========================================
  Files         349      349              
  Lines        3726     3734       +8     
==========================================
+ Hits         2820     2828       +8     
  Misses        906      906              

☔ 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.

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