Support view on environment for commits and compare pages in rapid diffs
What does this MR do and why?
This MR adds "View on environment" (docs) to two pages in rapid diffs:
- Commits page
- Compare revision page
References
See implementation plan #554718 (comment 2857732295)
Screenshots or screen recordings
| Before | After | |
|---|---|---|
| Commits Page |
|
|
| Compare Revision Page |
How to set up and validate locally
Setting this up locally would involve quite a bit so I opted in to leverage existing features specs in spec/features/projects/view_on_env_spec
- adds
live _debugto:-
after line 62
wait_for_requestsinwhen visiting the commit/'has a "View on env" button' -
after line 121
wait_for_requestsinwhen visiting the commit/'has a "View on env" button'
-
after line 62
- enable feature flags:
- run
bundle exec rspec spec/features/projects/view_on_env_spec.rb:115for commits page orbundle exec rspec spec/features/projects/view_on_env_spec.rb:56for compare page - add
?rapid_diffs=trueto the url
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #554718
Edited by Chaoyue Zhao

