Skip to content

Commit 81bdd99

Browse files
Merge pull request #33 from dynatrace-wwse/rfe/miscellaneus
Miscellaneus small changes
2 parents b544c31 + 09e8718 commit 81bdd99

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

.devcontainer/util/functions.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,11 @@ setupMCPServer(){
346346
printInfo "Environment variables location: $ENV_FILE"
347347
}
348348

349-
selectDemoEnvironment(){
349+
selectEnvironment(){
350350
# Check if DT_ENVIRONMENT is already set
351351
if [ -n "$DT_ENVIRONMENT" ]; then
352352
printWarn "DT_ENVIRONMENT is already set to $DT_ENVIRONMENT. This function will override the DT_ENVIRONMENT environment variable and the entry in the $ENV_FILE file."
353+
printWarn "You should be careful if you have other variables needed for that environment such as API Tokens."
353354
printf "Do you want to override it? (y/n): "
354355
read override
355356
if [ "$override" != "y" ] && [ "$override" != "Y" ]; then
@@ -362,7 +363,8 @@ selectDemoEnvironment(){
362363
printInfo "1. playground (wkf10640)"
363364
printInfo "2. demo.live (guu84124)"
364365
printInfo "3. tacocorp (bwm98081)"
365-
printf "Enter your choice (1-3): "
366+
printInfo "4. other, you'll be prompted to enter the full URL (Prod/Sprint/Dev)"
367+
printf "Enter your choice (1-4): "
366368
read choice
367369
case $choice in
368370
1)
@@ -374,6 +376,15 @@ selectDemoEnvironment(){
374376
3)
375377
DT_ENVIRONMENT="https://bwm98081.apps.dynatrace.com"
376378
;;
379+
4)
380+
printf "Enter in the format eg. https://abc123.apps.dynatrace.com or for sprint -> https://abc123.sprint.apps.dynatracelabs.com\nURL to your Dynatrace Platform:"
381+
read -r DT_ENVIRONMENT
382+
# Basic validation to ensure it starts with https://
383+
if [[ ! "$DT_ENVIRONMENT" =~ ^https:// ]]; then
384+
printWarn "URL should start with 'https://'. Please try again."
385+
return 1
386+
fi
387+
;;
377388
*)
378389
printWarn "Invalid choice. Defaulting to playground."
379390
DT_ENVIRONMENT="https://wkf10640.apps.dynatrace.com"
@@ -391,7 +402,7 @@ selectDemoEnvironment(){
391402

392403
printInfoSection "$DT_ENVIRONMENT selected, the VS Code agent should start the MPC server automatically"
393404
printInfo "you can alternatively go to 'Extensions > MCP Servers installed > dynatrace-mcp-server' and start it."
394-
printInfo "If you want to connect to another MCP server, just type the function 'selectDemoEnvironment'"
405+
printInfo "If you want to connect to another MCP server, just type the function 'selectEnvironment'"
395406

396407
}
397408

docs/snippets/disclaimer.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
!!! warning "Support Policy"
2-
This is an enablement project created by the Center of Excellence - Enablement Team at Dynatrace.
1+
!!! example "Support Policy - experiment, share feedback, and help shape the future"
2+
This repository is part of an enablement project created by the Center of Excellence at Dynatrace. Our mission is to empower you to explore and adopt these resources to accelerate innovation.
3+
Support is community-driven and provided exclusively via [GitHub Issues](https://github.com/dynatrace-wwse/codespaces-framework/issues).
34

4-
**Support is provided via GitHub issues only**. The materials provided in this repository are offered "as-is" without any warranties, express or implied. Use them at your own risk.
5+
We will make every effort to assist and address reported problems, but please note:
6+
7+
- The materials are provided “as-is”, without any warranties or guarantees.
8+
- Use of this technology is at your own discretion and risk.
9+
10+
We encourage you to experiment, [share feedback](https://forms.office.com/r/QaCx6VAJe8), and help shape the future. Start building today!

docs/snippets/dt-enablement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
??? example "[![dt-badge](https://img.shields.io/badge/powered_by-DT_enablement-8A2BE2?logo=dynatrace)](https://dynatrace-wwse.github.io/codespaces-framework)"
1+
??? example "[![dt-badge](https://img.shields.io/badge/Powered_by-DT_Enablement-8A2BE2?logo=dynatrace)](https://dynatrace-wwse.github.io/codespaces-framework)"
22
This Codespace leverages the Dynatrace Enablement Framework, providing a robust and flexible development environment. Key features include:
33

44
- Seamless operation within GitHub Codespaces, as a remote container, or locally via Docker.

0 commit comments

Comments
 (0)