Skip to content

Conversation

@sungam3r
Copy link
Member

No description provided.

@sungam3r sungam3r requested a review from Shane32 December 11, 2021 21:21
@sungam3r sungam3r added the bugfix Pull request that fixes a bug label Dec 11, 2021
@github-actions github-actions bot added the test Pull request that adds new or changes existing tests label Dec 11, 2021
@sungam3r sungam3r added enhancement New feature or request and removed test Pull request that adds new or changes existing tests labels Dec 11, 2021
// validation rule should check that but here we should just ignore that
// "unknown" field.
if (context.Inputs.TryGetValue(variableRef.Name, out object input) &&
if (context.Inputs != null &&
Copy link
Member Author

Choose a reason for hiding this comment

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

@Shane32 NRT helps find bug here - NRE before context.Inputs check, see passes_with_claim_on_variable_type_without_inputs_but_fails_later_either. I'll backport this check into master.

@github-actions github-actions bot added the test Pull request that adds new or changes existing tests label Dec 11, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #181 (d417e04) into develop (5094301) will decrease coverage by 0.66%.
The diff coverage is 77.77%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #181      +/-   ##
===========================================
- Coverage    84.47%   83.81%   -0.67%     
===========================================
  Files            9        9              
  Lines          277      278       +1     
  Branches        45       46       +1     
===========================================
- Hits           234      233       -1     
  Misses          33       33              
- Partials        10       12       +2     
Impacted Files Coverage Δ
...rc/GraphQL.Authorization/AuthorizationEvaluator.cs 100.00% <ø> (ø)
...raphQL.Authorization/AuthorizationPolicyBuilder.cs 45.45% <ø> (ø)
src/GraphQL.Authorization/AuthorizationSettings.cs 33.33% <50.00%> (ø)
...aphQL.Authorization/AuthorizationValidationRule.cs 94.95% <66.66%> (-1.66%) ⬇️
src/GraphQL.Authorization/AuthorizationContext.cs 83.33% <100.00%> (ø)
src/GraphQL.Authorization/AuthorizationResult.cs 100.00% <100.00%> (ø)
...tion/Requirements/ClaimAuthorizationRequirement.cs 86.95% <100.00%> (ø)

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 5094301...d417e04. Read the comment docs.

@sungam3r sungam3r mentioned this pull request Dec 11, 2021
@sungam3r sungam3r merged commit a390cb9 into develop Dec 11, 2021
@sungam3r sungam3r deleted the nrt branch December 11, 2021 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes a bug enhancement New feature or request test Pull request that adds new or changes existing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants