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

Add requests endpoint to core TRE API #4352

Merged
merged 15 commits into from
Feb 12, 2025
Merged

Conversation

marrobi
Copy link
Member

@marrobi marrobi commented Feb 10, 2025

Introduce a new 'requests' endpoint in the core TRE API to facilitate viewing airlock requests across workspaces, along with corresponding tests for added functionality.

  • api/requests/ takes airlock_manager bool to get requests for workspaces where the user is an airlock manager.
  • Updated UI with TRE landing page requests menu. For airlock includes "My Requests", "Awaiting My Review" and "All Requests".
  • Added tests
  • Fixed local debugging when not using Cosmos Key.

image

image

Fixes #2510

Add a new 'requests' endpoint in the core TRE API to view airlock requests across workspaces.
Copy link

github-actions bot commented Feb 10, 2025

Unit Test Results

608 tests   608 ✅  6s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit 20c5138.

♻️ This comment has been updated with latest results.

@marrobi marrobi requested a review from Copilot February 10, 2025 23:14

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 13 changed files in this pull request and generated no comments.

Files not reviewed (8)
  • api_app/api/routes/api.py: Evaluated as low risk
  • ui/app/src/components/root/RootLayout.tsx: Evaluated as low risk
  • CHANGELOG.md: Evaluated as low risk
  • api_app/api/dependencies/database.py: Evaluated as low risk
  • api_app/resources/strings.py: Evaluated as low risk
  • api_app/_version.py: Evaluated as low risk
  • ui/app/src/components/shared/RequestsList.tsx: Evaluated as low risk
  • ui/app/src/models/apiEndpoints.ts: Evaluated as low risk
Comments suppressed due to low confidence (1)

api_app/db/repositories/airlock_requests.py:135

  • The parameter for workspace_id should only be included if workspace_id is provided. Add a conditional check to include this parameter only when workspace_id is not None.
{"name": "@workspace_id", "value": workspace_id},

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 14 changed files in this pull request and generated no comments.

Files not reviewed (9)
  • ui/app/package.json: Language not supported
  • api_app/api/routes/api.py: Evaluated as low risk
  • ui/app/src/components/root/RootLayout.tsx: Evaluated as low risk
  • CHANGELOG.md: Evaluated as low risk
  • api_app/api/dependencies/database.py: Evaluated as low risk
  • api_app/_version.py: Evaluated as low risk
  • api_app/resources/strings.py: Evaluated as low risk
  • ui/app/src/models/apiEndpoints.ts: Evaluated as low risk
  • api_app/db/repositories/airlock_requests.py: Evaluated as low risk
@marrobi marrobi enabled auto-merge (squash) February 10, 2025 23:51
Copy link
Collaborator

@LizaShak LizaShak left a comment

Choose a reason for hiding this comment

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

LGTM

@marrobi marrobi marked this pull request as draft February 12, 2025 00:37
auto-merge was automatically disabled February 12, 2025 00:37

Pull request was converted to draft

@marrobi marrobi marked this pull request as ready for review February 12, 2025 00:37
Copy link
Collaborator

@ShakutaiGit ShakutaiGit left a comment

Choose a reason for hiding this comment

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

Great PR, the code is well-structured!
Found some minor improvements.

Copy link
Collaborator

@yuvalyaron yuvalyaron left a comment

Choose a reason for hiding this comment

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

LGTM

@marrobi
Copy link
Member Author

marrobi commented Feb 12, 2025

/test-extended

@marrobi marrobi enabled auto-merge (squash) February 12, 2025 12:52
Copy link

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/13285817274 (with refid 6133e514)

(in response to this comment from @marrobi)

@marrobi marrobi merged commit 72e98c3 into microsoft:main Feb 12, 2025
12 checks passed
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.

View requests (TRE level)
4 participants