Skip to content

Add security nav tabs in a dedicated method

What does this MR do?

In order to reduce cyclomatic and perceived complexity in the EE::ProjectsHelper#get_project_nav_tabs method, some of its code has been moved to a dedicated method.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

I did not add tests because the new method is implicitly tested by get_project_nav_tabs' specs, which feels sufficient to me.

Closes #219268 (closed)

Edited by Paul Gascou-Vaillancourt

Merge request reports