Code Tidy: Clean up further obsoleted code scheduled for removal in Umbraco 18 (IMemberService.GetMembersByPropertyValue)#22678
Conversation
… the related tests.
|
Claude finished @AndyButland's task in 1m 24s —— View job PR ReviewTarget: Removes the four
No Critical, Important, or Suggestion findings. The cleanup is thorough:
ApprovedThis looks good to be merged as-is, but please do a manual sanity check and testing before merging. |
There was a problem hiding this comment.
Pull request overview
Removes the previously-obsoleted IMemberService.GetMembersByPropertyValue overloads as part of the Umbraco 18 cleanup, along with the integration tests that exercised those deprecated APIs.
Changes:
- Removed 4 obsolete
GetMembersByPropertyValueoverloads fromIMemberService. - Removed the corresponding implementations from
MemberService. - Deleted the 14 integration tests that directly covered the deprecated API (and cleaned up now-unused usings).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MemberServiceTests.cs | Removes integration tests that exercised the deprecated GetMembersByPropertyValue API and drops now-unused Examine/Sync usings. |
| src/Umbraco.Core/Services/MemberService.cs | Removes the obsolete GetMembersByPropertyValue method implementations from the concrete service. |
| src/Umbraco.Core/Services/IMemberService.cs | Removes the obsolete GetMembersByPropertyValue overloads from the public service contract. |
Description
This continues the v18 cleanup series, removing the four
IMemberService.GetMembersByPropertyValueoverloads. All four were[Obsolete("Please use Search (Examine) instead, scheduled for removal in Umbraco 18.")]and had no production callers — the only consumers were 14 tests inMemberServiceTeststhat exercised the deprecated API directly.Removed
From
Umbraco.Cms.Core.Services.IMemberServiceand its implementationUmbraco.Cms.Core.Services.MemberService:GetMembersByPropertyValue(string propertyTypeAlias, string value, StringPropertyMatchType matchType = StringPropertyMatchType.Exact)GetMembersByPropertyValue(string propertyTypeAlias, int value, ValuePropertyMatchType matchType = ValuePropertyMatchType.Exact)GetMembersByPropertyValue(string propertyTypeAlias, bool value)GetMembersByPropertyValue(string propertyTypeAlias, DateTime value, ValuePropertyMatchType matchType = ValuePropertyMatchType.Exact)Tests
The 14 corresponding tests in
tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/MemberServiceTests.cs(Get_By_Property_String_Value_*,Get_By_Property_Int_Value_*,Get_By_Property_Date_Value_*) have been removed. No replacement coverage is needed — the recommended path is search via Examine, which has its own dedicated test coverage.Breaking changes
IMemberService: the fourGetMembersByPropertyValueoverloads have been removed. Callers should migrate to search (Examine) as documented in the original obsoletion message — see https://docs.umbraco.com/umbraco-cms/reference/searching/examine/indexing#changing-ivaluesetvalidator.Testing
Solution builds and tests pass.