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

Update load of search param status on initialization #4711

Merged
merged 7 commits into from
Nov 6, 2024

Conversation

feordin
Copy link
Contributor

@feordin feordin commented Nov 3, 2024

Description

Sets the SearchParameterStatus property correctly upon initialization. Also updates the DataActions to allow globalAdmin to run search parameter status changes.

Related issues

Addresses [issue AB#131939].

Testing

Automated tests were rerun, manual testing done

FHIR Team Checklist

  • Update the title of the PR to be succinct and less than 65 characters
  • Add a milestone to the PR for the sprint that it is merged (i.e. add S47)
  • Tag the PR with the type of update: Bug, Build, Dependencies, Enhancement, New-Feature or Documentation
  • Tag the PR with Open source, Azure API for FHIR (CosmosDB or common code) or Azure Healthcare APIs (SQL or common code) to specify where this change is intended to be released.
  • Tag the PR with Schema Version backward compatible or Schema Version backward incompatible or Schema Version unchanged if this adds or updates Sql script which is/is not backward compatible with the code.
  • CI is green before merge Build Status
  • Review squash-merge requirements

Semver Change (docs)

Patch|Skip|Feature|Breaking (reason)

@feordin feordin added Bug Bug bug bug. Area-Search Area related to search. Azure API for FHIR Label denotes that the issue or PR is relevant to the Azure API for FHIR Azure Healthcare APIs Label denotes that the issue or PR is relevant to the FHIR service in the Azure Healthcare APIs Schema Version unchanged labels Nov 3, 2024
@feordin feordin added this to the S153 milestone Nov 3, 2024
@feordin feordin requested a review from a team as a code owner November 3, 2024 23:53
@@ -81,12 +81,14 @@ internal async Task EnsureInitializedAsync(CancellationToken cancellationToken)
if (p.IsSearchable != tempStatus.IsSearchable ||
p.IsSupported != tempStatus.IsSupported ||
p.IsPartiallySupported != tempStatus.IsPartiallySupported ||
p.SortStatus != result.SortStatus)
p.SortStatus != result.SortStatus ||
p.SearchParameterStatus != result.Status)
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated a unit test to cover this case.

@feordin
Copy link
Contributor Author

feordin commented Nov 5, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@feordin feordin requested a review from brendankowitz November 5, 2024 17:41
brendankowitz
brendankowitz previously approved these changes Nov 5, 2024
@feordin
Copy link
Contributor Author

feordin commented Nov 5, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@feordin
Copy link
Contributor Author

feordin commented Nov 6, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@feordin
Copy link
Contributor Author

feordin commented Nov 6, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@feordin feordin requested a review from brendankowitz November 6, 2024 17:32
mikaelweave
mikaelweave previously approved these changes Nov 6, 2024
@feordin feordin enabled auto-merge (squash) November 6, 2024 19:55
@feordin feordin merged commit 6525a6d into main Nov 6, 2024
47 checks passed
@feordin feordin deleted the personal/jaerwin/search-param-status-bug branch November 6, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Search Area related to search. Azure API for FHIR Label denotes that the issue or PR is relevant to the Azure API for FHIR Azure Healthcare APIs Label denotes that the issue or PR is relevant to the FHIR service in the Azure Healthcare APIs Bug Bug bug bug. Schema Version unchanged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants