Skip to content

cleanup: remove deprecated show_progress_bar logic #1583#1601

Open
AviJxn wants to merge 1 commit intoaces:masterfrom
AviJxn:cleanup/remove-progress-bar-1583
Open

cleanup: remove deprecated show_progress_bar logic #1583#1601
AviJxn wants to merge 1 commit intoaces:masterfrom
AviJxn:cleanup/remove-progress-bar-1583

Conversation

@AviJxn
Copy link
Contributor

@AviJxn AviJxn commented Mar 10, 2026

This PR performs a surgical cleanup of the dead code associated with the deprecated "show_progress_bar" feature as discussed in #1583. Following recent updates to the "cbrain-plugins-psom" repository I have removed the "show_progress_bar?" method from the "PortalTask" model and the corresponding rendering logic from the task information view. These changes are strictly limited to the scope of the issue to ensure codebase stability.

@AviJxn AviJxn closed this Mar 10, 2026
@AviJxn AviJxn force-pushed the cleanup/remove-progress-bar-1583 branch from 867f953 to 927725e Compare March 10, 2026 19:35
@AviJxn AviJxn reopened this Mar 10, 2026
@prioux prioux self-assigned this Mar 11, 2026
Copy link
Member

@prioux prioux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is not sufficient.

return {:color => color, :progress => progress, :message => nil, :show_percentage => false }
end

# Returns true if progress bar has to be shown. Task must override this method
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is insufficient. Please review the subsystem carefully, you are currently leaving other dead code in the code base. It's not enough just to remove lines, you need to understand how these lines are integrated with the rest of the codebase.

@AviJxn AviJxn force-pushed the cleanup/remove-progress-bar-1583 branch from 57bebf5 to 96dea91 Compare March 11, 2026 18:36
@AviJxn
Copy link
Contributor Author

AviJxn commented Mar 11, 2026

Thank you for the feedback @prioux . You were absolutely right that removing the view was not enough. I have now performed a full audit of the subsystem and decommissioned the "progress_info" and "show_progress_bar?" methods from "PortalTask" along with the legacy documentation. I have verified via a project wide search that no other components depend on this code. I have amended the PR into a single clean commit to ensure the cleanup is complete. I appreciate the guidance!

Screenshot 2026-03-12 002840

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.

2 participants