Skip to content

VCST-4710: Change TEntity constraint to IEntity in generic CRUD services#2987

Open
ksavosteev wants to merge 2 commits intodevfrom
feat/VCST-4710
Open

VCST-4710: Change TEntity constraint to IEntity in generic CRUD services#2987
ksavosteev wants to merge 2 commits intodevfrom
feat/VCST-4710

Conversation

@ksavosteev
Copy link
Contributor

@ksavosteev ksavosteev commented Mar 5, 2026

Description

References

QA-test:

Jira-link:

https://virtocommerce.atlassian.net/browse/VCST-4710

Artifact URL:


Note

Medium Risk
Touches core generic CRUD/search/caching abstractions and changes the generic type constraints, which may ripple to downstream implementations and extension methods. Runtime risk is low, but compile-time/API compatibility issues are possible in modules that relied on Entity-specific behavior.

Overview
Updates the generic CRUD/search/caching stack (ICrudService, IOuterEntityService, CrudService, SearchService, and caching regions) to accept models constrained to IEntity rather than Entity, enabling use of non-Entity model types.

In CrudService, replaces use of Entity.IsTransient() with a new overridable IsTransient(IEntity) helper (defaulting to Id == null) when determining which models should be loaded as existing entities.

Written by Cursor Bugbot for commit 2908fa0. This will update automatically on new commits. Configure here.

Image tag:
ghcr.io/VirtoCommerce/platform:3.1008.0-pr-2987-2908-vcst-4710-2908fa05

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 5, 2026

@ksavosteev ksavosteev changed the title VCST-4710: Change TEntity to IEntity in generic CRUD services VCST-4710: Change TEntity constraint to IEntity in generic CRUD services Mar 5, 2026
Copy link
Contributor

@vc-ci vc-ci left a comment

Choose a reason for hiding this comment

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

Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 8.164
Timestamp: 05-03-2026T14:50:18

Copy link
Contributor

@vc-ci vc-ci left a comment

Choose a reason for hiding this comment

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

Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 7.331
Timestamp: 05-03-2026T15:11:14

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