Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this? (check all applicable)
Have you discussed this change with the InvokeAI team?
Have you updated all relevant documentation?
Description
This PR is based on #4423 and should not be merged until it is merged.
feat(nodes): add version to node schemas
The
@invocation
decorator is extended with an optionalversion
arg. On execution of the decorator, the version string is parsed using thesemver
package (this was an indirect dependency and has been added topyproject.toml
).All built-in nodes are set with
version="1.0.0"
.The version is added to the OpenAPI Schema for consumption by the client.
feat(ui): handle node versions
Related Tickets & Documents
QA Instructions, Screenshots, Recordings
Loading old workflows should prompt a warning, and the node status icon should indicate some action is needed.
[optional] Are there any post deployment tasks we need to perform?
I've updated the default workflows:
Default Workflows.zip
I'm not sure where these are being stored right now @Millu