Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PricingSearchService: search extensibility improvements #73

Merged
merged 3 commits into from
Jan 28, 2020

Conversation

avas
Copy link
Contributor

@avas avas commented Jan 27, 2020

In HOT, we needed to extend pricelist assignments search by our custom pricelist assignment fields. But this required us to copy the entire PricingSearchServiceImpl.SearchPricelistAssignments() method and add custom properties handling to it, because database query building is inlined right into the body of this method. So, this PR extracts database query building to separate virtual methods - this will make extending search of pricing entities much simpler (all we'll need to do is just to override the needed query building and filtering method).

Also, this PR removes the Model/ModelDiagram.cd reference from the VirtoCommerce.PricingModule.Data.csproj - the file is missing anyway, so there is no point to have it in the project.

@avas avas requested a review from yecli January 27, 2020 08:19
@yecli yecli requested a review from tatarincev January 27, 2020 08:38
@yecli yecli merged commit ac264d9 into dev Jan 28, 2020
@yecli yecli deleted the feature/pricing-service-extension branch January 28, 2020 13:50
@yecli
Copy link
Contributor

yecli commented Jan 29, 2020

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