Skip to content
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

Team Sync: Fix URL encode Group IDs for external team sync #20280

Merged
merged 2 commits into from
Nov 8, 2019

Conversation

gotjosh
Copy link
Contributor

@gotjosh gotjosh commented Nov 8, 2019

External Group IDs can have special characters. Encode them to make them
URL-safe.

What this PR does / why we need it:

Encodes the groupID to make it URL-safe as we issue a deletion

Which issue(s) this PR fixes:

Fixes https://github.com/grafana/grafana-enterprise/issues/281

Special notes for your reviewer:

External Group IDs can have special characters. Encode them to make them
URL-safe.
@gotjosh gotjosh requested a review from torkelo November 8, 2019 13:18
Copy link
Member

@torkelo torkelo left a comment

Choose a reason for hiding this comment

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

need to change to encodeURIComponent

public/app/features/teams/state/actions.ts Outdated Show resolved Hide resolved
@gotjosh gotjosh added this to the 6.5.0-beta1 milestone Nov 8, 2019
@gotjosh gotjosh merged commit 7e96a57 into master Nov 8, 2019
@gotjosh gotjosh deleted the fix-url-encoding branch November 8, 2019 14:28
@marefr marefr changed the title Fix: URL Encode Groupd IDs for external team sync Team Sync: Fix URL encode Group IDs for external team sync Nov 12, 2019
kylebrandt pushed a commit that referenced this pull request Nov 13, 2019
* Fix: URL Encode Group IDs for external team sync

External Group IDs can have special characters. Encode them to make them
URL-safe.

(cherry picked from commit 7e96a57)
kylebrandt pushed a commit that referenced this pull request Nov 14, 2019
* Fix: URL Encode Group IDs for external team sync

External Group IDs can have special characters. Encode them to make them
URL-safe.

(cherry picked from commit 7e96a57)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants