New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds confirmation when changing segments definition #10199
Conversation
Looks ok 👍 Though maybe it would be better to change 'segment-change-confirm' to 'segment-definition-change-confirm' and 'ChangingSegmentConfirmation' to 'ChangingSegmentDefinitionConfirmation' to point out this functionality concerns segment definition change? |
Review:
|
Ok. I've changed the text and added a ui test: |
just realised we can make things a bit more clear and reduce some possible confusion from the wording:
(the if statement logic reproduces some sub logic of After this change LGTM and feel free to merge! |
Review:
|
@@ -6,6 +6,8 @@ | |||
"AreYouSureDeleteSegment": "Are you sure you want to delete this segment?", | |||
"AutoArchivePreProcessed": "segmented reports are pre-processed (faster, requires cron)", | |||
"AutoArchiveRealTime": "segmented reports are processed in real time", | |||
"ChangingSegmentDefinitionConfirmationNotProcessedOnRequest": "You're about to change the segment definition. Your analytics reports for this new segment won't be available until the reports are re-processed. It may take a few hours for reports data to show for this segment. Proceed anyway?", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe refactor in separate translation strings the You're about to change the segment definition.
and Proceed anyway?
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure we could do that. But maybe it's better to have complete messages as one string. That prevents from having only parts of it translated, which would look very ugly in the UI I think.
I'm a bit confused now. What will happen when the segment setting and the config setting differ? Will a segment not be processed at all if I choose real time processing for the segment, but have a config setting enforcing not to do it? (or vice versa) |
If a segment is set to real time processing, but browser archiving (real time processing) is disabled in the UI, and enforced via FYI: if a segment is set to "real time processing" but the browser archiving is disabled and enforced, then the data for the segment cannot be processed, and we show this popup: |
New attempt ;) Confirmation should now also work as expected (more than once). Message now also depends on segments auto-archive option, but will only be displayed if browser archiving is not available. |
fyi: after double checking what I wrote yesterday I realised it wasn't actually working this way. Created bug report: #10307 and PR: #10309 |
Ok I'll have a look at your PR. What about this one? Did you have another look? Can we merge? |
Saving a changed segment definition will now trigger a confirmation:
Maybe there's a better text to show. Suggestions welcome
fixes #9984