-
Notifications
You must be signed in to change notification settings - Fork 350
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
allow configuring alternate key vocabulary and address performance co… #2491
base: release-7.x
Are you sure you want to change the base?
Conversation
… can guarantee preconditions
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
IEdmVocabularyAnnotation coreAnnotationValue = model.FindVocabularyAnnotations<IEdmVocabularyAnnotation>(type, CoreVocabularyModel.AlternateKeysTerm).FirstOrDefault(); | ||
|
||
if (annotationValue != null || coreAnnotationValue != null) | ||
var any = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ | ||
return; | ||
} | ||
any = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we wait to set this until we have a value on line 3539 (i.e., versus the collectionexpression being empty)?
It looks like both the existing and new code could return either null or an empty dictionary, so the calling code presumably has to be prepared for either. Is there an advantage to returning one over the other?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕐
…ncerns
Issues
This pull request fixes #2490.
Description
Updated the
AlternateKeyODataUriResolver
to be able to configure which alternate key vocabularies are used and removed the use of a lambda which presented a memory leak concern.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.