Skip to content

v1.9.29 - Feature: DBEntityRepository.select: allow query ID#142

Merged
gmpassos merged 2 commits into
masterfrom
feature/DBEntityRepository-select-query-id
Apr 16, 2026
Merged

v1.9.29 - Feature: DBEntityRepository.select: allow query ID#142
gmpassos merged 2 commits into
masterfrom
feature/DBEntityRepository-select-query-id

Conversation

@gmpassos

Copy link
Copy Markdown
Contributor
  • DBEntityRepository:

    • select:
      • Added optimization for KeyConditionEQ matcher with a single key matching the entity ID field.
      • When matched, uses _selectByID to fetch the entity by ID and returns a single-element list or empty list accordingly.
  • Dependency updates:

    • vm_service: ^15.0.2 → ^15.1.0

- `DBEntityRepository`:
  - `select`:
    - Added optimization for `KeyConditionEQ` matcher with a single key matching the entity ID field.
    - When matched, uses `_selectByID` to fetch the entity by ID and returns a single-element list or empty list accordingly.

- Dependency updates:
  - `vm_service`: ^15.0.2 → ^15.1.0
@gmpassos gmpassos changed the title v1.9.29 v1.9.29 - feature: DBEntityRepository.select: allow query ID Apr 16, 2026
@gmpassos gmpassos changed the title v1.9.29 - feature: DBEntityRepository.select: allow query ID v1.9.29 - Feature: DBEntityRepository.select: allow query ID Apr 16, 2026
@codecov

codecov Bot commented Apr 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 79.16667% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.71%. Comparing base (04ee073) to head (48343bd).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
lib/src/bones_api_condition.dart 66.66% 2 Missing ⚠️
lib/src/bones_api_entity_db.dart 92.85% 1 Missing ⚠️
lib/src/bones_api_entity_db_object_directory.dart 50.00% 1 Missing ⚠️
lib/src/bones_api_entity_db_object_memory.dart 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #142      +/-   ##
==========================================
- Coverage   65.75%   65.71%   -0.05%     
==========================================
  Files          63       63              
  Lines       21198    21216      +18     
==========================================
+ Hits        13939    13942       +3     
- Misses       7259     7274      +15     
Flag Coverage Δ
unittests 65.71% <79.16%> (-0.05%) ⬇️

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

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

  - Added method `resolveIDValue` to resolve the ID value from parameters or `ConditionParameter`.

- `DBEntityRepository`:
  - Updated `selectIDsBy` and `_selectByID` to use `ConditionID.resolveIDValue` for ID resolution.

- `DBObjectDirectoryAdapter`:
  - Updated `_doCountImpl` and `_doDeleteImpl` to use `ConditionID.resolveIDValue` for ID resolution.
  - Updated public methods to pass combined parameters (`parameters ?? namedParameters`) to internal implementations.

- `DBObjectGCSAdapter`:
  - Updated `_doCountImpl` and `_doDeleteImpl` to use `ConditionID.resolveIDValue` for ID resolution.
  - Updated public methods to pass combined parameters (`parameters ?? namedParameters`) to internal implementations.

- `DBObjectMemoryAdapter`:
  - Updated `_doCountImpl` and `_doDeleteImpl` to use `ConditionID.resolveIDValue` for ID resolution.
  - Updated public methods to pass combined parameters (`parameters ?? namedParameters`) to internal implementations.
@gmpassos gmpassos merged commit 00b258b into master Apr 16, 2026
4 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.

1 participant