Commit 2d7b2eef authored by Paul Slaughter's avatar Paul Slaughter

Merge branch '229850-expire-storage-alerts-on-a-monthly-basis' into 'master'

Have storage alert cookies last for 30 days

See merge request gitlab-org/gitlab!37333
parents 752615f7 41ff9b3b
......@@ -5,7 +5,7 @@ const handleOnDismiss = ({ currentTarget }) => {
dataset: { id, level },
} = currentTarget;
Cookies.set(`hide_storage_limit_alert_${id}_${level}`, true, { expires: 365 });
Cookies.set(`hide_storage_limit_alert_${id}_${level}`, true, { expires: 30 });
const notification = document.querySelector('.js-namespace-storage-alert');
notification.parentNode.removeChild(notification);
......
......@@ -30,7 +30,7 @@ describe('broadcast message on dismiss', () => {
dismiss();
expect(Cookies.set).toHaveBeenCalledWith('hide_storage_limit_alert_1_info', true, {
expires: 365,
expires: 30,
});
});
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment