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

Small refactor #1116

Merged
merged 5 commits into from
Dec 1, 2021
Merged

Small refactor #1116

merged 5 commits into from
Dec 1, 2021

Conversation

maurei
Copy link
Member

@maurei maurei commented Nov 23, 2021

  • Renamed some variables and types to be consistent with JSON:API spec, where the vocabulary is 'RelationshipsObject' with its members being a 'Relationship'. Improved consistency of resource object type names and their schema ids.
  • Fixed failing test from Update openapi branch #1105.

TODO:

  • Rebase on openapi.

QUALITY CHECKLIST

  • Changes implemented in code
  • Complies with our contributing guidelines
  • Adapted tests
  • (N\A) Documentation updated
  • (N\A) Created issue to update Templates: {ISSUE_NUMBER}

…e the vocabulary is 'RelationshipsObject' with its members being a 'Relationship'.
@maurei maurei force-pushed the openapi-rename-relationship-data branch from 6dfefc4 to 6160ad0 Compare November 23, 2021 10:38
@maurei maurei marked this pull request as ready for review November 23, 2021 11:06
@maurei maurei requested a review from bart-degreed November 23, 2021 11:06
Copy link
Contributor

@bart-degreed bart-degreed left a comment

Choose a reason for hiding this comment

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

Added some questions.

Note the cibuild fails one test, which also happens in the openapi branch. This surprises me because, on my laptop, all tests succeed. The failure is due to the location of the nullable schema in swagger.json. Download the full log from AppVeyor to see the diff. Perhaps a timing issue. Can you take a look?

test/OpenApiClientTests/LegacyClient/RequestTests.cs Outdated Show resolved Hide resolved
test/OpenApiTests/LegacyOpenApiIntegration/swagger.json Outdated Show resolved Hide resolved
@maurei maurei force-pushed the openapi-rename-relationship-data branch 2 times, most recently from a277ff6 to 6160ad0 Compare November 26, 2021 13:15
@codecov
Copy link

codecov bot commented Nov 26, 2021

Codecov Report

Merging #1116 (85ca072) into openapi (1c4d034) will increase coverage by 0.01%.
The diff coverage is 86.96%.

❗ Current head 85ca072 differs from pull request most recent head d877f7d. Consider uploading reports for the commit d877f7d to get more accurate results
Impacted file tree graph

@@             Coverage Diff             @@
##           openapi    #1116      +/-   ##
===========================================
+ Coverage    88.98%   88.99%   +0.01%     
===========================================
  Files          298      308      +10     
  Lines         8117     8180      +63     
===========================================
+ Hits          7223     7280      +57     
- Misses         894      900       +6     
Impacted Files Coverage Δ
...NetCoreExample/Controllers/OperationsController.cs 0.00% <0.00%> (ø)
...iDotNetCoreExample/Controllers/PeopleController.cs 0.00% <0.00%> (ø)
...ApiDotNetCoreExample/Controllers/TagsController.cs 0.00% <0.00%> (ø)
...tNetCoreExample/Controllers/TodoItemsController.cs 0.00% <0.00%> (ø)
...ples/JsonApiDotNetCoreExample/Data/AppDbContext.cs 0.00% <0.00%> (ø)
...otNetCoreExample/Definitions/TodoItemDefinition.cs 0.00% <ø> (ø)
...Examples/JsonApiDotNetCoreExample/Models/Person.cs 0.00% <0.00%> (ø)
...rc/Examples/JsonApiDotNetCoreExample/Models/Tag.cs 0.00% <0.00%> (ø)
...amples/JsonApiDotNetCoreExample/Models/TodoItem.cs 0.00% <0.00%> (ø)
src/Examples/JsonApiDotNetCoreExample/Startup.cs 0.00% <0.00%> (ø)
... and 284 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c948a6a...d877f7d. Read the comment docs.

@maurei maurei force-pushed the openapi-rename-relationship-data branch 5 times, most recently from da639f7 to b527567 Compare November 26, 2021 16:48
@maurei maurei force-pushed the openapi-rename-relationship-data branch from b527567 to 796f104 Compare November 26, 2021 16:50
@maurei maurei force-pushed the openapi-rename-relationship-data branch from 72391df to d877f7d Compare November 30, 2021 13:47
Copy link
Contributor

@bart-degreed bart-degreed left a comment

Choose a reason for hiding this comment

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

Nice work!

@bart-degreed bart-degreed merged commit ec2e678 into openapi Dec 1, 2021
@bart-degreed bart-degreed deleted the openapi-rename-relationship-data branch December 1, 2021 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants