Modify to fix issue for #2076, Containment expand problem#2083
Open
xuzhg wants to merge 369 commits into
Open
Conversation
…rate is:
AspNet : 4648 pass, 0 fail - 100% enabled, 100% pass
AspNetCore: 4123 pass, 97 fail - 91% enabled, 89% pass
This change:
1.) ModifiesEnableQuery to return a Json format similar to the HttpError format in AspNet. Many tests are expecting
the exact json format from AspNet classic. It's a fine format not specific to any platform so I chose to
emulate is for AspNetCore.
2.) Implements async client query pattern as the NetStandard version of the client does not support sync methods.
3.) Modifies LowerCamelCase tests to match error profile of AspNetCore for model validation failures.
…instead of ignoring them.
to avoid having AspNetCore validate the object, which may access properties such as SelectClause which throw if the clause is invalid.
…riPartial.Path) to return the path port of the Uri, which escapes characters that need it. The ODL Parser expects those characters to be escaped. Uri.GetLeftPart(UriPartial.Path) is used in the AspNet version in this scenario as well.
…rate is:
AspNet : 4648 pass, 0 fail - 100% enabled, 100% pass
AspNetCore: 4155 pass, 65 fail - 91% enabled, 98% pass
This change:
1.) Wrap EnableQueryAttribute and IActionFilter in a QueryFilterProvider() in the test fixture.
This is similar to the configuration used in the product configuration extensions.
2.) Modifies the case of Json properties in TopSkipOrderByTests.cs.
3.) Implements async client query pattern in SingletonClientTest.cs.
4.) Implements CreateODataPath().
the description and the QueryFilter itself.
the EntityId. The response code is not set properly until after ExecuteResultAsync() is completed.
key is not present in the SerializableError. Convert the errors in SerializableError into ODataErrorDetail collection.
Fix DollarId test parallel running
* Added support for functions and constants in aggregate expression * Tests for more cannonical functions * Time tests * Support for compute transformation in $apply * Support sorting for columns introduced in compute * Remove redundant code * Fix flakyness in AggregateNavigationPropertyWorks * Fix the ToInt16 overflow during build * Fix typos * Make _values field private * Explicit way to mutate element type and lambda param * Test to demonstrate that we could run compute on complex entity properties * Support for complex types * Simplify keepoing ElementType and LambdaParameter in sync Co-authored-by: Sam Xu <saxu@microsoft.com>
… dynamic controller (OData#2035) * Enable endpoint routing using dynamic controller * Update to 7.4.0 * Update the PublicAPI test cases * Add the E2E test cases * Change the startup to test the per-route configuration * Some test codes about policy * Use MatcherPolicy Instead of EndpointSelector to resolve the ambiguity * Address the comments and add LinkGenerator test cases * Revert the EF Core version to 2.2.0 to make Aggregation E2E test pass
6667e20 to
7f03890
Compare
mikepizzo
reviewed
Jan 5, 2021
|
|
||
| namespace AspNetCore3xEndpointSample.Web.Controllers | ||
| { | ||
| {/* |
Contributor
There was a problem hiding this comment.
Is there a reason to keep the commented out version?
mikepizzo
reviewed
Jan 5, 2021
|
|
||
| namespace AspNetCore3xEndpointSample.Web.Models | ||
| { | ||
| {/* |
Contributor
There was a problem hiding this comment.
why is this commented out? Is it no longer used? Just remove?
mikepizzo
reviewed
Jan 5, 2021
| //public CustomerOrderContext(DbContextOptions<CustomerOrderContext> options) | ||
| // : base(options) | ||
| //{ | ||
| //} |
mikepizzo
reviewed
Jan 5, 2021
| public DbSet<Customer> Customers { get; set; } | ||
|
|
||
| public DbSet<Order> Orders { get; set; } | ||
| // public DbSet<Order> Orders { get; set; } |
mikepizzo
reviewed
Jan 5, 2021
| builder.EntitySet<Order>("Orders"); | ||
| var customers = builder.EntitySet<Customer>("Customers"); | ||
| customers.Binding.HasManyPath(c => c.CustomerReferrals, true).HasRequiredBinding(r => r.ReferredCustomer, "Customers"); | ||
| // builder.EntitySet<Order>("Orders"); |
mikepizzo
reviewed
Jan 5, 2021
| services.AddDbContext<CustomerOrderContext>(opt => opt.UseLazyLoadingProxies().UseInMemoryDatabase("CustomerOrderList")); | ||
| //services.AddDbContext<CustomerOrderContext>(opt => opt.UseLazyLoadingProxies().UseInMemoryDatabase("CustomerOrderList")); | ||
| //services.AddScoped<CustomerOrderContext>(_ => new CustomerOrderContext(Configuration.GetConnectionString("DefaultConnection"))); | ||
| services.AddOData(); |
Contributor
There was a problem hiding this comment.
Remove commented out lines?
Contributor
|
Is there a test to verify that the issue reported in issue 2076 is addressed? I see changes to the sample but no code that calls them in new ways. |
Contributor
|
Hey @xuzhg -- Do you have an update on this PR? I left a few minor comments. Can we address, rebase, and merge, or are there open issues? |
4c43a84 to
ddfd3dd
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Issues
This pull request fixes issue #2076.
Description
*This fixes the issue in #2076.
2)ODataQueryOptionParser should know the "Path" to parse the query option.
Checklist (Uncheck if it is not completed)
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.