Skip to content

Add delete mode#4125

Merged
jp-dark merged 22 commits intomainfrom
dark/add-delete-mode
Jun 17, 2025
Merged

Add delete mode#4125
jp-dark merged 22 commits intomainfrom
dark/add-delete-mode

Conversation

@jp-dark
Copy link
Copy Markdown
Collaborator

@jp-dark jp-dark commented Jun 13, 2025

Issue and/or context:

  • Closes SOMA-168
  • Closes SOMA-170
  • Closes SOMA-180

Changes:

C++ Changes:

  • Make SOMAArray copy constructor the default copy constructor.
  • Add soma_mode_ as a private variable to SOMAArray and SOMAGroup.
  • Add new OpenMode::soma_delete option to OpenMode enum (the soma_ prefix was added since delete is a special keyword.
  • Add soma_ prefix to existing OpenMode values for consistency.

Python Changes:

  • Update to a new version of somacore (adds 'd' mode to somacore.options.OpenMode)
  • Add verify_open_for_deleting to SOMA objects
  • Rename _verify_open_for_reading to verify_open_for_reading
  • Add d as a valid mode for opening/reopening SOMA objects
  • Deprecate deleting elements from a Collection in write mode
  • Add support for deleting elements from a Collection in delete mode

R Changes:

  • Deprecate deleting elements from a Collection in write mode
  • Add support for deleting elements from a Collection in delete mode

Before Merging:

  • Update changelogs
  • Release and update somacore version

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 13, 2025

Codecov Report

Attention: Patch coverage is 78.13333% with 82 lines in your changes missing coverage. Please review.

Project coverage is 65.96%. Comparing base (143ffb2) to head (b40ac21).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4125      +/-   ##
==========================================
+ Coverage   65.89%   65.96%   +0.06%     
==========================================
  Files         158      160       +2     
  Lines       20988    21150     +162     
  Branches     1237     1248      +11     
==========================================
+ Hits        13830    13951     +121     
- Misses       6745     6782      +37     
- Partials      413      417       +4     
Flag Coverage Δ
libtiledbsoma 54.08% <78.36%> (+0.21%) ⬆️
python 89.32% <75.75%> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
python_api 89.32% <75.75%> (-0.09%) ⬇️
libtiledbsoma 44.89% <64.38%> (+0.50%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jp-dark jp-dark changed the title Dark/add delete mode Add delete mode Jun 14, 2025
Comment thread apis/python/src/tiledbsoma/_soma_object.py Outdated
Comment thread apis/python/HISTORY.md Outdated
Comment thread apis/python/src/tiledbsoma/_tdb_handles.py Outdated
Comment thread apis/python/src/tiledbsoma/pytiledbsoma.cc
Comment thread libtiledbsoma/src/soma/soma_array.cc Outdated
Comment thread libtiledbsoma/src/soma/soma_group.cc Outdated
Comment thread libtiledbsoma/src/soma/soma_group.cc Outdated
Comment thread apis/r/NEWS.md Outdated
Comment thread apis/r/R/SOMACollectionBase.R Outdated
Comment thread apis/r/R/SOMACollectionBase.R Outdated
Comment thread apis/r/R/SOMAObject.R Outdated
Comment thread apis/r/tests/testthat/test-11-reopen.R Outdated
Comment thread apis/r/tests/testthat/test-11-reopen.R Outdated
Copy link
Copy Markdown
Member

@bkmartinjr bkmartinjr left a comment

Choose a reason for hiding this comment

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

A bunch of small stuff, but nothing of major concern. Preemptively approving

@jp-dark jp-dark requested a review from mojaveazure June 17, 2025 15:15
@jp-dark jp-dark marked this pull request as ready for review June 17, 2025 15:16
Copy link
Copy Markdown
Member

@mojaveazure mojaveazure left a comment

Choose a reason for hiding this comment

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

LGTM; please remember to bump the R develop version in DESCRIPTION

@jp-dark jp-dark merged commit 43b768a into main Jun 17, 2025
33 checks passed
@jp-dark jp-dark deleted the dark/add-delete-mode branch June 17, 2025 19:16
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.

3 participants