Skip to content

Remove legacy main.js behaviors

Mike Greiling requested to merge mg-remove-remove-row into master

What does this MR do?

We have a special .remove-row class and .js-remove-tr class which would interact with rails-ujs events to remove a UI element after an asynchronous delete action was performed.

These were only used in a small handful of places. Furthermore, these special classes have stuck around in places where the rails-ujs functionality had since been removed.

This MR moves these helper behaviors directly into the page-specific javascripts where they are needed and removes them from main.js. It also removes vestigial instances of .remove-row and .js-remove-tr where they were included but did not do anything.

This is part of a larger effort to move jQuery out of our main.js bundle.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Merge request reports

Loading