-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix workflow execution completion activities (#791)
* starting a migration to remove group activites with workflow keys * checking if workflow completion service was executed by an automation bot before adding activities * starting to add public activity checks within the workflow execution completion service * adding a new test * fixing translations * fixing rubocop error * fixing migration query * fixing load more button on activities page * fixing load more button on activities page
- Loading branch information
Showing
15 changed files
with
273 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
db/migrate/20240925155747_remove_group_activities_with_workflow_keys.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# frozen_string_literal: true | ||
|
||
# Migration to remove any activities from a group where an automated workflow key exists | ||
class RemoveGroupActivitiesWithWorkflowKeys < ActiveRecord::Migration[7.2] | ||
def change | ||
PublicActivity::Activity.where( | ||
trackable_id: Group.as_ids, | ||
trackable_type: 'Namespace', | ||
key: ['workflow_execution.automated_workflow_completion.outputs_and_metadata_written', | ||
'workflow_execution.automated_workflow_completion.metadata_written', | ||
'workflow_execution.automated_workflow_completion.outputs_written'] | ||
).find_each(&:destroy) | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
some text in here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
and more in here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
even more text here |
58 changes: 58 additions & 0 deletions
58
test/fixtures/files/blob_outputs/normal4/iridanext.output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"files": { | ||
"global": [ | ||
{ | ||
"path": "summary.txt" | ||
} | ||
], | ||
"samples": { | ||
"INXT_SAM_AAAAAAAAA3": [ | ||
{ | ||
"path": "analysis1.txt" | ||
}, | ||
{ | ||
"path": "analysis2.txt" | ||
} | ||
], | ||
"INXT_SAM_AAAAAAAAA4": [ | ||
{ | ||
"path": "analysis3.txt" | ||
} | ||
] | ||
} | ||
}, | ||
"metadata": { | ||
"samples": { | ||
"INXT_SAM_AAAAAAAAA3": { | ||
"organism": "an organism", | ||
"amr": [ | ||
{ | ||
"gene": "x", | ||
"start": 1234, | ||
"end": 5678 | ||
}, | ||
{ | ||
"gene": "y", | ||
"start": 1, | ||
"end": 2 | ||
} | ||
] | ||
}, | ||
"INXT_SAM_AAAAAAAAA4": { | ||
"organism": "a different organism", | ||
"amr": [ | ||
{ | ||
"gene": "x", | ||
"start": 2345, | ||
"end": 6789 | ||
}, | ||
{ | ||
"gene": "y", | ||
"start": 2, | ||
"end": 3 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is a text file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.