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 |
eladiw
left a comment
There was a problem hiding this comment.
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
StatusChangedQueueTriggerHow is this addressed
StatusChangedQueueTriggersend atoDeleteEventwhen a request is cancelled.previous_statusin addition tonew_statusin "status changed" messagesToDeleteTriggerAzure FunctionStatusChangedQueueTriggerby extracting code from method:get_source_dest_for_copyinto 2 new methods:get_storage_accountfor getting the source andget_storage_account_destination_for_copyfor getting the target