-
Notifications
You must be signed in to change notification settings - Fork 45
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
Advisory messages #3396
Comments
actually if you mark it as deprecated in rust it gets pulled thru to the openapi spec and then we render it back out as deprecated ;) |
seems like a flawless approach :) |
then its a compile time warning til we fix it |
Because we're pre-v1 I think these should straight up be errors, because post-v1 launch we never want to deprecate anything. |
we can make rust fail on them, its just a clippy thing |
probably same for TS just less famililar |
To be clear I agree we do need a way for the backend to tell consumers of endpoints that are gone. I just think they should be errors, not deprecation warnings. |
i like doing it thru the sdks personally since we already have that functionality, if you arent using the sdks the docs will also show as deprecated |
i dont think it makes sense to do it at run time since the people who use the apis likely dont want their customers to know or care about this |
As others said, maybe there's something better we can do for deprecations that are purely internal/for us. However, the OP proposal works well, IMO, for things that you want to surface to end-users. The thing is, I'm having trouble thinking of a specific example because it has to satisfy all these criteria:
|
im very pro using the sdks since we literally already have code that does this, all you need to do is set |
(Typing from phone) Jess we may actually be digressing from the OP. I think engine just wants a way to communicate any message. Adam's proposal I believe is suitable. In retrospect my commentary was too focused on the deprecation bit. |
ah thats fair, but in the case of deprecations hahahaa |
IMO we shouldn't do this unless we actually have a good reason for it. If @mlfarrell 's only use-case is deprecation, and we already have a solution for it, then let's not needlessly complicate our API. |
My use case was for warnings. I'm fine doing this as long as there's zero additional overhead in the api if the "messages" are empty. i.e. I want the fast-path to be preserved, esp considering how many of these messages i've been finding that we're sending in some of our more complex cases. |
@mlfarrell What's an example of a warning you'd like to send? |
"An Object with this UUID already exists in the scene, this will eventually become an error" |
oh can we not warn and straight up error on that, i dont care if it breaks the front end its a forcing function, also i legit made it impossible for react to run execute over itself, so thats in and will get in a release, basically once this is in a PR point me at it and i can ensure we have front end in a good place |
Up to you. It could change other stuff though (i.e. I want to bring back the better scene clear method etc) |
yeah i think we are shooting ourselvves in the foot down the road if we dont hard fail |
Related to something that should be flagged. Right now I log this on engine creation. afaik, only F/E tests can make this happen, but if we ever see this pop up in prod, it'd be very bad.
|
Closing because I don't think we need this yet. Let's reopen if we have a use for it. |
@mlfarrell says that sometimes he wants to send a message back to the frontend from the engine, saying "this endpoint is deprecated". It's not an error yet -- but it might become one. Currently the backend has no way to send that data, and the frontend has no way to show it.
Solution
messages: [Message]
whereMessage
looks like{"severity": "warning", "contents": "the command Foo is deprecated"}
The text was updated successfully, but these errors were encountered: