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
Remove defaultConfig
+ defaultUserState
#122
Comments
I'm fine with that. |
Let's decide what we want. I vote for keeping it:
|
FWIW, I think keeping defaultConfig in versal.json makes sense, but not defaultUserState, since the latter should be specific to a gadget instance. |
Also we having naming to deal with... they're both named poorly. My argument is that it's poorly designed enough that I'd rather deprecate it and introduce something explicitly ASAP. The gadgets made in the meantime won't have this entanglement and will be easier to port (or no less hard) to a better API later. I think it can be valuable when you want to init some value to a default irrespective of learner, like setting a counter to 0. |
Maybe you're right @possibilities. We can delete them first and then think about what we want exactly, perhaps also based on what gadget developers do in their gadgets themselves. |
defaultConfig
+ defaultUserState
defaultConfig
+ defaultUserState
Removed [Discussion] from the title and keeping at "in progress" as I'll PR a solution to this today. |
Cool, thanks! |
defaultConfig
+ defaultUserState
defaultConfig
+ defaultUserState
After spending some time attempting to implement the complete removal of these from the manifest and talking with @mereskin I'm feeling a lot less excited about this approach:
At this point I don't think we should throw the baby out with the bath water. I propose adding a deprecation warning to the usage of both /cc @janpaul123 |
That sounds like a reasonable step for now. At least we have explored some different options here now, and we hopefully have a better idea of where we want to go. |
👍 |
We don't document this but it's in the default template. I vote for removing all references to this for now until we decide what we want?
https://github.com/Versal/sdk/blob/master/templates/minimal/versal.json#L10
/cc @mereskin @janpaul123
The text was updated successfully, but these errors were encountered: