Skip to content

feat: add warning about use of old/removed/invalid experiments #12962

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

Merged
merged 14 commits into from
Apr 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing e2e tests by displaying safe but unset experiments which was t…
…he previous behaviour

Signed-off-by: Danny Kopping <danny@coder.com>
  • Loading branch information
dannykopping committed Apr 17, 2024
commit 8836f25c152eb26c332d4061adf34a458a3e78cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ const GeneralSettingsPage: FC = () => {
const safeExperiments: string[] = [];
const invalidExperiments: string[] = [];

(safeExperimentsQuery.data?.safe ?? []).forEach((value) =>
safeExperiments.push(value),
);

(enabledExperimentsQuery.data ?? []).forEach(function (exp) {
const found = (safeExperimentsQuery.data?.safe ?? []).find((value) => {
return exp === value;
});

if (found) {
safeExperiments.push(exp);
} else {
if (!found) {
invalidExperiments.push(exp);
}
});
Expand Down
Loading