-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[BUG] Unneeded warning in payload of REST API calls #9037
Comments
#9054 complements it. |
The reason this developerWarning pops up in API responses is that
This statement right here rests just above the before mentioned line of code that could be commented out to resolve the issue. I am not exactly sure why this should be removed just yet when it says that it should be gone at 0.64, and the current version is just 0.60. That is what I could gather from the situation, and here is a PR regarding the same #9072 |
Why the warning? Because the default field selector has changed and removes all of the
So, that is why I closed your pull request @VibhorCodecianGupta as simply commenting it out is not the correct way to polish the warning. There is a reason that comment is placed there, as it was placed by me and you can see that if you use the git history of the file it is in. |
I see. That is what I suspected, apologies. I knew the comment was there for a reason, but now I get you that there needs to be a way to communicate that to the consumers of the api. The first bullet point seems like a sweet fix. May I implement this? @graywolf336 |
@VibhorCodecianGupta have you submitted a pull request for the first bullet point? |
Hello @graywolf336 , apologies for the late response. Something unavoidable came up. The mentioned PR implements the first bullet point, i.e the warning shows in the payload response only if The respective PR is #9213 |
Hi, I was working on this issue @graywolf336 and requested a review too! Should I consider my PR closed? |
Hi @VibhorCodecianGupta I don't think that warning should show only for dev environments, people using the API from a production app will miss that warning. A good addition would be a setting to disable warnings in API (off by default). But your PR, as it is right now, is not what we consider correct. |
Happening on 0.60.0
https://unstable.rocket.chat/api/v1/info
https://unstable.rocket.chat/api/v1/service.configurations
The text was updated successfully, but these errors were encountered: