-
Notifications
You must be signed in to change notification settings - Fork 143
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
Handle request cancellation in Airlock processor #2584
Handle request cancellation in Airlock processor #2584
Conversation
…ture/1968-airlock-handle-request-cancellation
Unit Test Results524 tests +521 522 ✔️ +520 17s ⏱️ - 2h 13m 52s Results for commit a44e3bd. ± Comparison against base commit 7fe7a89. This pull request removes 3 and adds 524 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
…ture/1968-airlock-handle-request-cancellation
…ture/1968-airlock-handle-request-cancellation
A. IMO toDeleteTrigger should be called ContainerDeletionTrigger |
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.
great job. I had one major comment about the naming but the overall refactoring looks good!
Co-authored-by: Elad Iwanir <13205761+eladiw@users.noreply.github.com>
Co-authored-by: Elad Iwanir <13205761+eladiw@users.noreply.github.com>
I can clarify why the ToDeleteTrigger was named this way: prior to its introduction, all the other triggers were named after the episode that caused the trigger to set off. With ToDelete, this "episode" is "a new item to delete has appeared", and this is why it's called this way (for brevity). I agree it's a little clumsy though! I support renaming it but would say that adding a "container" into its name would make the name inaccurate, as currently the event contains the URL of the blob to delete and not the whole container (which I don't think was changed in this PR). Also, the form "deletion" doesn't sound consistent with the rest of the trigger names, e.g. "BlobCreatedTrigger" still has an adjective in the name. |
while not consistent, I don't think the term 'deletion' sounds off, I think |
I like DataDeletionTrigger the most out of those proposed! |
@eladiw if you also agree on |
|
…ture/1968-airlock-handle-request-cancellation
approved. as discussed, in the next PR we will align all the ToDelete to DataDeletion... |
/test |
🤖 pr-bot 🤖 🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3045331636 (with refid (in response to this comment from @yuvalyaron) |
renaming will be done in PR #2592 |
Resolves #1968
What is being addressed
StatusChangedQueueTrigger
How is this addressed
StatusChangedQueueTrigger
send atoDeleteEvent
when a request is cancelled.previous_status
in addition tonew_status
in "status changed" messagesToDeleteTrigger
Azure FunctionStatusChangedQueueTrigger
by extracting code from method:get_source_dest_for_copy
into 2 new methods:get_storage_account
for getting the source andget_storage_account_destination_for_copy
for getting the target