Skip to content

Conversation

@SB-virendrasolanke
Copy link
Contributor

@SB-virendrasolanke SB-virendrasolanke commented Dec 18, 2025

Motivation and Context

STOP-4423

Description

Elements crash when user tries to apply query parameter to try request

How Has This Been Tested?

Screenshot(s)/recordings(s)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • This PR's code follows as closely as possible the coding style/guidelines of this project.
  • I have added error reporting and followed the error reporting guidelines.
  • I have added event tracking and followed the event tracking guidelines.
  • I have updated any internal docs to reflect this PR's changes.
  • If this PR affects existing features or includes UI changes, I have reached out to the Tech Writers team OR added the s/needs-docs label.
  • I have added automated tests (unit/integration/e2e/other) to cover my changes.
  • All new and existing tests pass locally (excluding flaky CI tests).
  • If this PR completes a story or makes a substantial UX change, demo it to the Product Manager.

@netlify
Copy link

netlify bot commented Dec 18, 2025

Deploy Preview for stoplight-elements-demo ready!

Name Link
🔨 Latest commit 864f33e
🔍 Latest deploy log https://app.netlify.com/projects/stoplight-elements-demo/deploys/694528d2d01d5c00089b7e27
😎 Deploy Preview https://deploy-preview-2859--stoplight-elements-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Dec 18, 2025

Deploy Preview for stoplight-elements ready!

Name Link
🔨 Latest commit 864f33e
🔍 Latest deploy log https://app.netlify.com/projects/stoplight-elements/deploys/694528d230e96300086f0029
😎 Deploy Preview https://deploy-preview-2859--stoplight-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@prafullaAtSB prafullaAtSB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks common code of encodeSafeSelectorValue method here and at packages/elements-core/src/components/TryIt/Servers/VariableEditor.tsx

create utility class and use it at both place.

@SB-virendrasolanke
Copy link
Contributor Author

@prafullaAtSB , I have removed the redundant code.

Copy link
Contributor

@prafullaAtSB prafullaAtSB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes looks good to go ahead after comments incorporating..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants