- Notifications
You must be signed in to change notification settings - Fork1.1k
chore: use static params when dynamic param metadata is missing#17836
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Dynamic & static code flow is now independent
Emyrk commentedMay 15, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@aslilac I took your suggestion and it is way cleaner 👍
The |
aslilac left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
closer! still some issues tho
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
| }) | ||
| } | ||
| func (api*API)handleParameterWebsocket(rw http.ResponseWriter,r*http.Request,renderpreviewFunction) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
| func (api*API)handleParameterWebsocket(rw http.ResponseWriter,r*http.Request,renderpreviewFunction) { | |
| func (api*API)handleParameterWebsocket(rw http.ResponseWriter,r*http.Request,previewpreviewFunction) { |
still think we should call it preview, especially since that's what you named the type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
It will collide with the package name 😢
Uh oh!
There was an error while loading.Please reload this page.
9f3529a toa6ce197Comparea6ce197 todf65b92CompareUh oh!
There was an error while loading.Please reload this page.
f36fb67 intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Existing template versions do not have the metadata (modules + plan) in the db. So revert to using static parameter information from the original template import.
This data will still be served over the websocket.
TODO
Improve the error message when using static params.