-
Notifications
You must be signed in to change notification settings - Fork 523
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
[Do Not Review] Implementing $includes operation with paging. #4810
base: main
Are you sure you want to change the base?
Conversation
if (address == null) | ||
{ | ||
uriString = _linkGenerator.GetUriByRouteValues( | ||
httpContext, | ||
routeName, | ||
routeValues, | ||
scheme, | ||
new HostString(host), | ||
pathBase); | ||
} | ||
else | ||
{ | ||
uriString = _linkGenerator.GetUriByAddress<RouteValuesAddress>( | ||
httpContext, | ||
address, | ||
address.ExplicitValues, | ||
address.AmbientValues, | ||
scheme, | ||
new HostString(host), | ||
pathBase); | ||
} |
Check notice
Code scanning / CodeQL
Missed ternary opportunity Note
if (!isIncludesOperation) | ||
{ | ||
// TODO: should this case be ignored or throw an exception? The Hl7 doc says, we should ignore it in general. (https://www.hl7.org/fhir/R4/search.html#errors) | ||
// throw new BadRequestException(string.Format(Core.Resources.InvalidContinuationToken, query.Item2, SupportedTotalTypes)); | ||
} |
Check warning
Code scanning / CodeQL
Futile conditional Warning
(SqlExpressionRewriterWithInitialContext<object>)(_schemaInformation.Current >= SchemaVersionConstants.PartitionedTables | ||
? StringOverflowRewriter.Instance | ||
: LegacyStringOverflowRewriter.Instance)) |
Check warning
Code scanning / CodeQL
Useless upcast Warning
null
SqlExpressionRewriterWithInitialContext - the conversion can be done implicitly.
src/Microsoft.Health.Fhir.SqlServer/Features/Search/SqlServerSearchService.cs
Fixed
Show fixed
Hide fixed
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Why move this from API to Core?
<data name="UnsupportedIncludesOperation" xml:space="preserve"> | ||
<value>The '$includes' operation is not supported for CosmosDB data store.</value> |
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.
I think it should just be "The '$includes' operation is not supported". We don't tend to mention the DB type in our messages.
MatchResourceTypeId = tid; | ||
MatchResourceSurrogateIdMin = sid0; | ||
MatchResourceSurrogateIdMax = sid1; | ||
initialized = 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.
Is an include CT valid without the two include values?
Description
This is the initial implementation of the $includes operation with paging.
Related issues
Addresses [issue #138967].
User Story 138967: Implement a new $include operation.
Testing
Manually tested. Automated tests being added.
FHIR Team Checklist
Semver Change (docs)
Patch|Skip|Feature|Breaking (reason)