This repository has been archived by the owner on Oct 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Export/dev VP-255 use export in do export in pricing #521
Open
AliveMen
wants to merge
22
commits into
export/dev
Choose a base branch
from
export/dev_255_Use_export_in_DoExport_in_Pricing
base: export/dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Export/dev VP-255 use export in do export in pricing #521
AliveMen
wants to merge
22
commits into
export/dev
from
export/dev_255_Use_export_in_DoExport_in_Pricing
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yecli
reviewed
Aug 15, 2019
...es/vc-module-pricing/VirtoCommerce.PricingModule.Data/ExportImport2/ExportablePricingFull.cs
Outdated
Show resolved
Hide resolved
...e-pricing/VirtoCommerce.PricingModule.Data/ExportImport2/PricingFullExportPagedDataSource.cs
Outdated
Show resolved
Hide resolved
...e-pricing/VirtoCommerce.PricingModule.Data/ExportImport2/PricingFullExportPagedDataSource.cs
Outdated
Show resolved
Hide resolved
{ | ||
var newExportDataQuery = new T(); | ||
newExportDataQuery.Skip = _dataQuery.Skip; | ||
newExportDataQuery.Take = _dataQuery.Take; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure we need to fill Skip and Take here with source dataQuery values
...e-pricing/VirtoCommerce.PricingModule.Data/ExportImport2/PricingFullExportPagedDataSource.cs
Outdated
Show resolved
Hide resolved
...e-pricing/VirtoCommerce.PricingModule.Data/ExportImport2/PricingFullExportPagedDataSource.cs
Show resolved
Hide resolved
state.Result = Array.Empty<IExportable>(); | ||
if (state.ReceivedCount < state.TotalCount) | ||
{ | ||
state.DataQuery.Take = takeNext; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How dataQuery pagination is respected here? If we sent dataQuery.Take and Skip (e.g. dynamic scroll in viewer), they should be respected based on the states TotalCount-s.
...e-pricing/VirtoCommerce.PricingModule.Data/ExportImport2/PricingFullExportPagedDataSource.cs
Outdated
Show resolved
Hide resolved
...e-pricing/VirtoCommerce.PricingModule.Data/ExportImport2/PricingFullExportPagedDataSource.cs
Outdated
Show resolved
Hide resolved
@@ -1,4 +1,4 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<Project Sdk="Microsoft.NET.Sdk"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this file
use master DataSourse .Take and .Skip Ensure have total count
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
add PricingFullPagedDataSource
update metadata getters