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

Refactor project activity components #936

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

deepsidhu85
Copy link
Contributor

What does this PR do and why?

Describe in detail what your merge request does and why.

Refactored project activities into individual components and updated to only have a link to a project namespace if it has not been deleted

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other pull requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

PR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

…to only have a link to a project namespace if it has not been deleted
…ing a link), added translations, added new method get_object_by_puid to track activity concern
@deepsidhu85 deepsidhu85 force-pushed the refactor-activities-project branch from 07164d3 to 40c6a5f Compare February 11, 2025 16:12
…updated component comments, updated workflow execution activity to only have clickable link if the workflow execution still exists, updated track activity concern methods to get object to work with and without acts with paranoid models

This comment has been minimized.

Copy link

Code Metrics Report

Coverage Test Execution Time
92.6% 10m15s

Code coverage of files in pull request scope (87.6%)

Files Coverage
app/components/activities/group_activity_component.html.erb 88.8%
app/components/activities/group_activity_component.rb 100.0%
app/components/activities/list_item_component.html.erb 92.5%
app/components/activities/list_item_component.rb 100.0%
app/components/activities/projects/base_activity_component.html.erb 100.0%
app/components/activities/projects/base_activity_component.rb 100.0%
app/components/activities/projects/metadata_template_activity_component.rb 0.0%
app/components/activities/projects/sample_activity_component.html.erb 66.6%
app/components/activities/projects/sample_activity_component.rb 80.0%
app/components/activities/projects/sample_clone_activity_component.html.erb 77.7%
app/components/activities/projects/sample_clone_activity_component.rb 100.0%
app/components/activities/projects/sample_transfer_activity_component.html.erb 66.6%
app/components/activities/projects/sample_transfer_activity_component.rb 100.0%
app/components/activities/projects/transfer_activity_component.html.erb 100.0%
app/components/activities/projects/transfer_activity_component.rb 100.0%
app/components/activities/workflow_execution_activity_component.html.erb 75.0%
app/components/activities/workflow_execution_activity_component.rb 66.6%
app/components/activity_component.html.erb 100.0%
app/models/concerns/track_activity.rb 94.8%
app/services/attachments/destroy_service.rb 96.9%

Reported by octocov

…ll be used in the display rather than getting the puid from the namespace object which could be nil if it is permanently deleted
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.

1 participant