From d4c1c43d9f556992cf9dbb185aeb0ca4223f177d Mon Sep 17 00:00:00 2001 From: Basit Date: Tue, 19 Apr 2022 23:57:19 +0200 Subject: [PATCH 1/3] feat(aggregations): fix help text on limit --- .../src/components/settings/settings.jsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/compass-aggregations/src/components/settings/settings.jsx b/packages/compass-aggregations/src/components/settings/settings.jsx index 82c907f9e51..04852db86ff 100644 --- a/packages/compass-aggregations/src/components/settings/settings.jsx +++ b/packages/compass-aggregations/src/components/settings/settings.jsx @@ -79,8 +79,17 @@ class Settings extends PureComponent {
- Limits input documents before $group, $bucket, and $bucketAuto - stages. Set a limit to make the collection run faster. + {global?.process?.env?.COMPASS_SHOW_NEW_AGGREGATION_TOOLBAR !== + 'true' ? ( + 'Limits input documents before $group, $bucket, and $bucketAuto stages. Set a limit to make the collection run faster.' + ) : ( + <> + Limits input documents before $group, $bucket, and $bucketAuto + stages. Set a limit to make the preview run faster. +
+ Note: this setting will not apply when running the pipeline. + + )}
From 379115accb8770a08ff1d4eec3c251ecbc01cea0 Mon Sep 17 00:00:00 2001 From: Basit <1305718+mabaasit@users.noreply.github.com> Date: Wed, 20 Apr 2022 17:59:04 +0200 Subject: [PATCH 2/3] Update packages/compass-aggregations/src/components/settings/settings.jsx Co-authored-by: Rhys --- .../compass-aggregations/src/components/settings/settings.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compass-aggregations/src/components/settings/settings.jsx b/packages/compass-aggregations/src/components/settings/settings.jsx index 04852db86ff..7067f45aaeb 100644 --- a/packages/compass-aggregations/src/components/settings/settings.jsx +++ b/packages/compass-aggregations/src/components/settings/settings.jsx @@ -87,7 +87,7 @@ class Settings extends PureComponent { Limits input documents before $group, $bucket, and $bucketAuto stages. Set a limit to make the preview run faster.
- Note: this setting will not apply when running the pipeline. + Note: this setting is only applied for the document previews, it is not applied when the pipeline is `Run`. )} From 5206795a95619a83f802000a6f29223b1165fdf2 Mon Sep 17 00:00:00 2001 From: Basit Date: Wed, 20 Apr 2022 18:01:18 +0200 Subject: [PATCH 3/3] feat(aggregations): text fix --- .../compass-aggregations/src/components/settings/settings.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compass-aggregations/src/components/settings/settings.jsx b/packages/compass-aggregations/src/components/settings/settings.jsx index 7067f45aaeb..0e6a3b1d3db 100644 --- a/packages/compass-aggregations/src/components/settings/settings.jsx +++ b/packages/compass-aggregations/src/components/settings/settings.jsx @@ -87,7 +87,7 @@ class Settings extends PureComponent { Limits input documents before $group, $bucket, and $bucketAuto stages. Set a limit to make the preview run faster.
- Note: this setting is only applied for the document previews, it is not applied when the pipeline is `Run`. + Note: this setting is only applied for the document previews, it is not applied when the pipeline is run. )}