Refactor compare index to use helper for data attributes
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
The following discussion from !52967 (merged) should be addressed:
-
@jivanvl started a discussion: Suggestion (optional) There's fair amount of data attributes for this app, I think it would be beneficial to move them to a helper a function and call that function here, an example of this pattern can be found at
https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/helpers/ee/operations_helper.rb#L16
https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/views/projects/environments/folder.html.haml
Edited by 🤖 GitLab Bot 🤖