Skip to content

Add async operation SMART scope ADR#5656

Draft
mikaelweave wants to merge 2 commits into
mainfrom
mikaelweave-async-job-smart-scope-e2e-tests
Draft

Add async operation SMART scope ADR#5656
mikaelweave wants to merge 2 commits into
mainfrom
mikaelweave-async-job-smart-scope-e2e-tests

Conversation

@mikaelweave

Copy link
Copy Markdown
Contributor

Description

Describe the changes in this PR.

Related issues

Addresses [issue #].

Testing

Describe how this change was tested.

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.
  • When changing or adding behavior, if your code modifies the system design or changes design assumptions, please create and include an ADR.
  • CI is green before merge Build Status
  • Review squash-merge requirements

Semver Change (docs)

Patch|Skip|Feature|Breaking (reason)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@b8c7ef5). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #5656   +/-   ##
=======================================
  Coverage        ?   77.56%           
=======================================
  Files           ?     1004           
  Lines           ?    36859           
  Branches        ?     5587           
=======================================
  Hits            ?    28590           
  Misses          ?     6917           
  Partials        ?     1352           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Require SMART system scopes for async job status and cancellation. Export status validates resource metadata while other async operations require all-resource read/write access.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
{
private IAuthorizationService<DataActions> _authorizationService;
private IQueueClient _queueClient;
private IAsyncOperationSmartScopeValidator _asyncOperationSmartScopeValidator;

private IAuthorizationService<DataActions> _authorizationService;
private IQueueClient _queueClient;
private IAsyncOperationSmartScopeValidator _asyncOperationSmartScopeValidator;
Comment on lines +63 to +69
foreach (string requiredResourceType in requiredResourceTypes)
{
if (!IsExportReadScopeSatisfied(accessControlContext, requiredResourceType))
{
throw new UnauthorizedFhirActionException();
}
}
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.

3 participants