Closed john-thomas-dotcms closed 1 year ago
Right now, a user can change the original page while an Experiment is running. But this essentially changes the page, which means that if the change is significant, it can invalidate the results collected to that point.
When an Experiment is running, and a user clicks the Edit tab in the page editor, we need to pop up a modal that requires them to confirm before they edit the page.
Message in the confirmation popup:
An Experiment is currently running on this Page. If you Edit the Page, you may invalidate any results already collected.
Are you sure you want to continue?
Buttons the user can select:
The solution above was chosen because it's easy and safe to implement, and allows emergency edits, but requires the user to acknowledge that their edits my cause problems.
But there are several other ways we could solve this problem. While an Experiment is running, we could:
IQA Passed: Confirm Dialog showed on a Page with a Running Experiment (On tab Edit).
Ok we have a problem here...
DOT_FEATURE_FLAG_SEO_IMPROVEMENTS”: ‘true’
), this is changing a little bit the UI and after enable this this fix is not working anymore. We need to discuss this and find the way this fix work in both cases.
QA: Now the changes works with the SEO feature flag on DOT_FEATURE_FLAG_SEO_IMPROVEMENTS
, PR: https://github.com/dotCMS/core/pull/25828
Pass Internal QA: Work as expeced with the SEO feature flag on DOT_FEATURE_FLAG_SEO_IMPROVEMENTS
We need some work here:
We are showing this confirmation before go to edit page, but if you are editing the page and click on the edit tab, we are showing thins message again, wich does not make sense since you already are editing the page and you already accept this.
If you are in the editing tab and click in the same tab again, you need to escape this exception
https://github.com/dotCMS/core/assets/2641437/e71bc540-3ad2-4144-a258-54fd39098bbb
IQA Passed:
Fixed, tested on master // Docker // FF
Parent
https://github.com/dotCMS/core/issues/22455