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

Fix: failing create teams request #636

Merged
merged 5 commits into from
Jul 13, 2020
Merged

Conversation

thewahome
Copy link
Collaborator

Overview

Running the create a team query breaks the app like so
image

The characters previously unsupported when hashEncoding are now supported.

Notes

Optional. Ancillary topics, caveats, alternative strategies that didn't work out, anything else.

Testing Instructions

  • Log in
  • Set to POST and run https://graph.microsoft.com/beta/teams adding the request body described in the docs here
  • Notice the browser does not break 💯

}

if (sampleHeaders && sampleHeaders.length > 0) {
const headers = hashEncode(JSON.stringify(sampleHeaders));
shareLink = `${shareLink}&headers=${headers}`;
shareLink += `${shareLink}&headers=${headers}`;
Copy link

Choose a reason for hiding this comment

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

shouldn't this be removed or stay as before?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It should actually stay as before

@@ -66,7 +66,7 @@ export class QueryInput extends Component<IQueryInputProps, any> {
background: getStyleFor(selectedVerb),
};

const httpMethodsToDisplay = (mode === Mode.TryIt && !authenticated ) ? [httpMethods[0]] : httpMethods;
const httpMethodsToDisplay = (mode === Mode.TryIt || !authenticated) ? [httpMethods[0]] : httpMethods;
Copy link

Choose a reason for hiding this comment

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

probably correct but we should consider if users may be confused minus text to say they need to sign in.

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.

2 participants