Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Begin setting up public activity * Added custom activity tracking to existing functionality, added basic translation views * Moved generating of sample activity to underneath a project namespace * Removed generate_activity calls and updated models to use tracked (which will create activities for crud operations. Created a concern for activity * Removed views not required * Changed colors for component, added current model to keep track of the current user so it can be used in models. * Removed include not required * Updated track activity concern to format activities to just include description and created date which will be used by the activity component to display the activity * Moved project activity into scrollable div, refactored code * Updated to include uploading/removal of sequencing data from a sample * Updated to get the trackable if it was soft-deleted * Refactored code, and updated to get activity trackable which are soft-deleted for members and namespace group links * Removed rubocop disables * Added custom activity for transferred samples * Created new migration for public activity and set the belongs_to type to uuid for fields, updated to create custom attachment activities in services attached to the attachable instead of in the attachment model * Fixed custom activity for transferring samples, formatted activity date/time * Fixed gemfile lock file, updated setting of owner for activities to Current.user * Reverted changes to gemfile.lock, updated attachments create and destroy service to create activites instead of the controller, updated projects transfer service to create activity * chore: update Gemfile.lock after rebasing * chore: fix issues during rebase * Moved create activity from samples transfer controller to transfer service and updated to also create activity in project to which the samples were transferred. Added activities for cloning samples to source and target project * Removed generate_activity code block that is no longer required * Broke up activities into individual components, and translations are now done within the component rather than server side to allow us to use links * Begin setting up public activity * Added custom activity tracking to existing functionality, added basic translation views * Moved generating of sample activity to underneath a project namespace * Removed generate_activity calls and updated models to use tracked (which will create activities for crud operations. Created a concern for activity * Removed views not required * Changed colors for component, added current model to keep track of the current user so it can be used in models. * Removed include not required * Updated track activity concern to format activities to just include description and created date which will be used by the activity component to display the activity * Moved project activity into scrollable div, refactored code * Updated to include uploading/removal of sequencing data from a sample * Removed rubocop disables * Added custom activity for transferred samples * Created new migration for public activity and set the belongs_to type to uuid for fields, updated to create custom attachment activities in services attached to the attachable instead of in the attachment model * Fixed custom activity for transferring samples, formatted activity date/time * Fixed gemfile lock file, updated setting of owner for activities to Current.user * Reverted changes to gemfile.lock, updated attachments create and destroy service to create activites instead of the controller, updated projects transfer service to create activity * chore: update Gemfile.lock after rebasing * chore: fix issues during rebase * Moved create activity from samples transfer controller to transfer service and updated to also create activity in project to which the samples were transferred. Added activities for cloning samples to source and target project * Removed generate_activity code block that is no longer required * Removed duplicate entry for public_activity gem * Updated activity components class comments * Updated translations and removed duplicate link to activity page left over from rebase * Updated gemfile lockfile * Updated project_activity_component to render links for sample clone and transfer, fixed current user not being set as owner for tracked, refactored code * Refactored code to remove rubocop disables, updated sample create/update/destroy and sample attachment create/destroy services to create custom activities as using the out of box solution would cause the existing activity of a sample to get added to a project the sample was transferred to * Removed code not required for this pr * Fixed rubocop warnings * Removed duplicate include of haspuid * Updated text styling in _html translations for activities * Fixed styling * Added activity component preview * Added custom activity for project sample metadata update * Added activity component testing, removed components not required for this pr, fixed accessors for parameters set for activities * Fixed Gemfile.lock file which had a bad rebase * Refactored code to remove rubocop disable, activity parameters keys are now transformed before being added to the array of activities so we have consistent access to hash key/values, added missing key to namespace group link activity translation, updated translation to include html to bold name of group * Refactored code to remove some more rubocop disables, fixed formatting * Fixed rubocop warning, fixed formatting * Removed scrollable container and updated to use full page scroll like the project samples page * Moved activity-app to its own css rule to fix issue with scrollbar appearing when it was not necessary * Updated to load 10 activities at a time using pagy, updated text for uploading/removing data from a sample * Updated to use custom activities and removed automated model crud tracking, updated workflow execution completion service to add activities for automation bot attaching outputs and metadata to a sample from a workflow run * Updated activity to display sample puid instead of it's name, added activity for creating an automated workflow execution * Updated activities fixtures * Added french translation placeholders * Fixed translations * Activity now displays project puid for transfer/clone instead of name * Added missing translation in turbo stream file * Fixed translation to show href for member when attributes updated for member, fixed rubocop warnings, fixed bug with activity displaying expanded if previously visited and load more button was clicked * Normalized and fixed translation files * Removed else statement which wasn't required for workflow activity component * chore: Moved `Activities` and `History` project menu items * Changed create_activity variable names, updated ui view components for activity, updated translations * Updated destroy multiple samples service, and samples transfer and clone services calls to return sample puids that were deleted,clone,or transferred --------- Co-authored-by: Eric Enns <[email protected]> Co-authored-by: Josh Adam <[email protected]>
- Loading branch information