Skip to content

Commit 8d55ffc

Browse files
authored
Merge pull request #180 from RedisInsight/main
fix segment write key
2 parents 9f26e9e + fa68727 commit 8d55ffc

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

.circleci/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,16 +231,20 @@ jobs:
231231
- run:
232232
name: Build .vsix package
233233
command: |
234+
envFile=".env"
234235
packagePath=./release/redis-for-vscode-extension-mac
235236
236237
if [ << parameters.target >> ]; then
237238
yarn download:backend << parameters.target >>
238239
240+
echo "RI_SEGMENT_WRITE_KEY='$RI_SEGMENT_WRITE_KEY_STAGE'" >> $envFile
241+
sed -i '' "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" $envFile
239242
yarn package:stage --target darwin-<< parameters.target >> --out ${packagePath}-<< parameters.target >>.vsix
240243
exit 0;
241244
fi
242245
243246
if [ << parameters.env >> == 'prod' ]; then
247+
echo "RI_SEGMENT_WRITE_KEY='$RI_SEGMENT_WRITE_KEY'" >> $envFile
244248
yarn download:backend arm64
245249
yarn package:prod --target darwin-arm64 --out ${packagePath}-arm64.vsix
246250
@@ -249,6 +253,8 @@ jobs:
249253
exit 0;
250254
fi
251255
256+
echo "RI_SEGMENT_WRITE_KEY='$RI_SEGMENT_WRITE_KEY_STAGE'" >> $envFile
257+
sed -i '' "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" $envFile
252258
yarn download:backend arm64
253259
yarn package:stage --target darwin-arm64 --out ${packagePath}-arm64.vsix
254260
@@ -289,14 +295,17 @@ jobs:
289295
- run:
290296
name: Build .vsix package
291297
command: |
298+
envFile=".env"
292299
packagePath=./release/redis-for-vscode-extension-win-x64.vsix
293300
yarn download:backend
294301
295302
if [ << parameters.env >> == 'prod' ]; then
303+
echo "RI_SEGMENT_WRITE_KEY='$RI_SEGMENT_WRITE_KEY'" >> $envFile
296304
yarn package:prod --out ${packagePath}
297305
exit 0;
298306
fi
299307
308+
sed -i "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" $envFile
300309
yarn package:stage --out ${packagePath}
301310
shell: bash.exe
302311
no_output_timeout: 20m

l10n/bundle.l10n.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
"Use CLI to edit the score": "Use CLI to edit the score",
5454
"Enter Score": "Enter Score",
5555
"This data type is not currently supported.": "This data type is not currently supported.",
56-
"We are constantly working to launch support for more data types. If you have any ideas or suggestions, please ": "We are constantly working to launch support for more data types. If you have any ideas or suggestions, please ",
57-
"contact us.": "contact us.",
56+
"See our repository for the list of ": "See our repository for the list of ",
57+
"supported data types.": "supported data types.",
5858
"Edit value": "Edit value",
5959
"Empty": "Empty",
6060
"loading...": "loading...",
@@ -315,4 +315,4 @@
315315
"Add": "Add",
316316
"Release Notes": "Release Notes",
317317
"Redis for VS Code extension updated to {0}.": "Redis for VS Code extension updated to {0}."
318-
}
318+
}

src/webviews/src/modules/key-details/components/unsupported-type-details/UnsupportedTypeDetails.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ export const UnsupportedTypeDetails = () => (
1111
<div className={styles.textWrapper}>
1212
<h3>{l10n.t('This data type is not currently supported.')}</h3>
1313
<div>
14-
{l10n.t('We are constantly working to launch support for more data types. If you have any ideas or suggestions, please ')}
15-
14+
{l10n.t('See our repository for the list of ')}
1615
<Link
1716
target="_blank"
1817
href={EXTERNAL_LINKS.githubIssues}
1918
data-testid="unsupported-key-github-btn"
2019
>
21-
{l10n.t('contact us.')}
20+
{l10n.t('supported data types.')}
2221
</Link>
2322
</div>
2423
</div>

0 commit comments

Comments
 (0)