Skip to content

Refactor trial widget data for sidebar into presenter pattern

Doug Stull requested to merge 460679-refactor-trial-concerns into master

What does this MR do and why?

Move to using a presenter pattern for trial concerns in the sidebar helper.

This helps reduce logic at the helper layer and store it in a more isolated/testable area by using a presenter pattern.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

no change

How to set up and validate locally

note: covered by ee/spec/features/trials/duo_pro/trial_widget_in_sidebar_spec.rb and ee/spec/features/trials/trial_widget_in_sidebar_spec.rb

  1. Ultimate Trial widget
  2. Duo Pro Trial widget

Related to #460679 (closed)

Edited by Doug Stull

Merge request reports