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

Fix/2265 child collection nextlink #2279

Closed

Conversation

KenitoInc
Copy link
Contributor

Issues

This pull request fixes issue #2265 .

Description

Briefly describe the changes of this pull request.

Checklist (Uncheck if it is not completed)

  • Test cases added
  • Build and test with one-click build and test script passed

Additional work necessary

If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.

@KenitoInc KenitoInc marked this pull request as ready for review September 10, 2020 07:59
@KenitoInc KenitoInc added the Ready for review Use this label if a pull request is ready to be reviewed label Sep 10, 2020
[Theory]
[InlineData("http://localhost/Customers(1)/Orders", 10, null, false, "http://localhost/Customers(1)/Orders?$skip=10")]
[InlineData("http://localhost/Customers?$expand=Orders", 10, null, false, "http://localhost/Customers?$expand=Orders&$skip=10")]
public void GetNextPageLink_ReturnsCorrectNextLink(string baseUri, int pageSize, Object instance, bool enableSkipToken, string expectedUri)
Copy link
Member

Choose a reason for hiding this comment

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

If the pageSize, instance, enableSkipToken are not changeable, we can move them directly into the test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#Resolved

private ODataSerializerContext GetContext(bool enableSkipToken = false)
{
CustomersModelWithInheritance model = new CustomersModelWithInheritance();
IEdmEntitySet entitySet = model.Model.EntityContainer.FindEntitySet("Customers");
Copy link
Member

Choose a reason for hiding this comment

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

I knew there's properties to access the element in the model? maybe you can directly use the properties?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#Resolved

@mikepizzo mikepizzo added this to the 7.5 milestone Sep 14, 2020
Copy link
Member

@mikepizzo mikepizzo left a comment

Choose a reason for hiding this comment

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

:shipit:

@KenitoInc KenitoInc force-pushed the fix/2265-child-collection-nextlink branch from 282a71e to a6990a4 Compare September 15, 2020 17:21
Copy link
Member

@xuzhg xuzhg left a comment

Choose a reason for hiding this comment

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

:shipit:

@xuzhg
Copy link
Member

xuzhg commented Sep 15, 2020

Merged at 0561a39

@xuzhg xuzhg closed this Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready for review Use this label if a pull request is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants