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: Unneeded warning in payload of REST API calls #9240

Merged
merged 1 commit into from Dec 26, 2017
Merged

Conversation

rodrigok
Copy link
Member

@rodrigok rodrigok commented Dec 26, 2017

@RocketChat/core

Closes #9037

Only return the warning when calling routes starting with channel(s) or group(s) and the return contains the room info.

@rodrigok rodrigok added this to the 0.60.0 milestone Dec 26, 2017
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-9240 December 26, 2017 16:20 Inactive
Copy link
Contributor

@graywolf336 graywolf336 left a comment

Choose a reason for hiding this comment

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

Looks good, I would think we should make it so it only is sent when the node environment isn't production.

@rodrigok
Copy link
Member Author

@graywolf336 Why only in development env? It's a real production warning right?

@sampaiodiego
Copy link
Member

if the size of the warning content is a problem, it could be shorter with a link to the full explanation

@rodrigok rodrigok dismissed graywolf336’s stale review December 26, 2017 17:31

It's a production warning, I don't think we should show it only in development

@rodrigok rodrigok merged commit c6cf840 into develop Dec 26, 2017
@rodrigok rodrigok deleted the hotfix/9037 branch December 26, 2017 17:31
rodrigok added a commit that referenced this pull request Dec 26, 2017
Fix: Unneeded warning in payload of REST API calls
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.

[BUG] Unneeded warning in payload of REST API calls
4 participants