Merge pull request #14866 from overleaf/jdt-hist-rename-test

fix: rename the history view split test so we can reroll it
GitOrigin-RevId: fd42fab5b6fd715b89688b401596962453b1d002
This commit is contained in:
Jimmy Domagala-Tang 2023-09-18 13:06:27 -04:00 committed by Copybot
parent 7939abdcab
commit ab4f0d6c5f
3 changed files with 5 additions and 3 deletions

View file

@ -702,7 +702,7 @@ const ProjectController = {
SplitTestHandler.getAssignment(
req,
res,
'history-view',
'history-view-version',
(error, assignment) => {
// do not fail editor load if assignment fails
if (error) {

View file

@ -19,7 +19,7 @@ export default function Toolbar({ diff, selection }: ToolbarProps) {
return (
<div className="history-react-toolbar">
<SplitTestBadge
splitTestName="history-view"
splitTestName="history-view-version"
displayOnVariants={['react']}
/>
<ToolbarDatetime selection={selection} />

View file

@ -126,7 +126,9 @@ export default HistoryManager = (function () {
}
isReact() {
return getMeta('ol-splitTestVariants')?.['history-view'] === 'react'
return (
getMeta('ol-splitTestVariants')?.['history-view-version'] === 'react'
)
}
hardReset() {