Skip to content

Use feature flags mixin in grouped security reports app

What does this MR do?

This follows up on @kushalpandya's comment here: !20381 (comment 255004769)

This is a small refactor of the grouped_security_reports_app.vue component to use the glFeatureFlagsMixin mixin instead of checking the global gon object. This change implies a refactor in the specs because the mountComponent() helper doesn't support the provide option which is required to properly stub the feature flag with the mixin, thus the helper had to be dropped in favor of Vue Test Utils' mount() function.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Paul Gascou-Vaillancourt

Merge request reports