mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
[web] Clean up group-audit-logs split test (#27614)
GitOrigin-RevId: e22183820e418cabc83cf2619c2c10cf4f82d3b9
This commit is contained in:
@@ -177,10 +177,6 @@ async function userSubscriptionPage(req, res) {
|
||||
premiumSource: aiAssistViaWritefullSource,
|
||||
} = await UserGetter.promises.getWritefullData(user._id)
|
||||
|
||||
// populate splitTestVariants in locals with a value for the split test, so
|
||||
// it's available in meta ol-splitTestVariants in the browser
|
||||
await SplitTestHandler.promises.getAssignment(req, res, 'group-audit-logs')
|
||||
|
||||
const data = {
|
||||
title: 'your_subscription',
|
||||
plans: plansData?.plans,
|
||||
|
||||
+6
-12
@@ -97,10 +97,6 @@ export default function ManagedGroupSubscriptions() {
|
||||
getMeta('ol-groupSettingsAdvertisedFor') || []
|
||||
const groupSettingsEnabledFor = getMeta('ol-groupSettingsEnabledFor') || []
|
||||
|
||||
const splitTestVariants = getMeta('ol-splitTestVariants')
|
||||
const displayAuditLogsLink =
|
||||
splitTestVariants?.['group-audit-logs'] === 'active'
|
||||
|
||||
return (
|
||||
<>
|
||||
{managedGroupSubscriptions.map(subscription => {
|
||||
@@ -129,14 +125,12 @@ export default function ManagedGroupSubscriptions() {
|
||||
{groupSettingsAdvertisedFor?.includes(subscription._id) && (
|
||||
<GroupSettingsButtonWithAdBadge subscription={subscription} />
|
||||
)}
|
||||
{displayAuditLogsLink && (
|
||||
<RowLink
|
||||
href={`/manage/groups/${subscription._id}/audit-logs`}
|
||||
heading={t('audit_logs')}
|
||||
subtext={t('view_audit_logs_group_subtext')}
|
||||
icon="list"
|
||||
/>
|
||||
)}
|
||||
<RowLink
|
||||
href={`/manage/groups/${subscription._id}/audit-logs`}
|
||||
heading={t('audit_logs')}
|
||||
subtext={t('view_audit_logs_group_subtext')}
|
||||
icon="list"
|
||||
/>
|
||||
<RowLink
|
||||
href={`/metrics/groups/${subscription._id}`}
|
||||
heading={t('usage_metrics')}
|
||||
|
||||
-4
@@ -97,10 +97,6 @@ describe('<ManagedGroupSubscriptions />', function () {
|
||||
value: managedGroupSubscriptions,
|
||||
},
|
||||
{ name: 'ol-usersEmail', value: 'admin@example.com' },
|
||||
{
|
||||
name: 'ol-splitTestVariants',
|
||||
value: { 'group-audit-logs': 'active' },
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user