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

Refined unignore for V10 #1468

Merged
merged 4 commits into from
Mar 12, 2020
Merged

Conversation

michaelstaib
Copy link
Member

No description provided.

@michaelstaib michaelstaib self-assigned this Feb 11, 2020
@michaelstaib michaelstaib added this to the HC-10.4.0 milestone Feb 11, 2020
Fields.FirstOrDefault(t => t.Definition.Name.Equals(name));
Fields.FirstOrDefault(t =>
t.Definition.Name.Equals(name)
&& !t.Definition.Ignore);
Copy link
Member

Choose a reason for hiding this comment

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

Fields is also used in the generic version because of Field(x => x.Property)

Copy link
Member Author

Choose a reason for hiding this comment

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

But in that case it does not matter since the collision is only on names. I however think we should change the data structure to better controls ignored members.

Fields.FirstOrDefault(t => t.Definition.Name.Equals(name));
Fields.FirstOrDefault(t =>
t.Definition.Name.Equals(name)
&& !t.Definition.Ignore);
Copy link
Member

Choose a reason for hiding this comment

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

Fields is also used in the generic version because of Field(x => x.Property)

@@ -43,8 +43,6 @@ protected internal DirectiveTypeDescriptor(IDescriptorContext context)
base.OnCompleteArguments(arguments, handledProperties);
}
Copy link
Member

Choose a reason for hiding this comment

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

Is also using ``Arguments`

 public IDirectiveArgumentDescriptor Argument(
            Expression<Func<T, object>> property)
        {

@michaelstaib
Copy link
Member Author

#1453

@michaelstaib michaelstaib merged commit 69dad6b into version_10_0_0_master Mar 12, 2020
@sonarcloud
Copy link

sonarcloud bot commented Mar 12, 2020

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 1 Code Smell

83.3% 83.3% Coverage
1.0% 1.0% Duplication

@michaelstaib michaelstaib deleted the fix_unignore_issue branch March 14, 2020 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants