fix(ui): revert node type change of metadata_accumulator -> core_metadata

The type of this node was changed due to breaking changes in f0db4d36e4.

The change to the node type means pending queue items using this node would break if the app was updated.

In the end, there were no breaking changes, so to prevent queue items being stale and erroring, we can safely revert the change.

Note: This node was hidden from the workflow editor, so nobody has used it there in any official release.
This commit is contained in:
psychedelicious 2023-10-30 10:50:12 -05:00
parent 8dca194e2c
commit 2f89081d37
No known key found for this signature in database
4 changed files with 211 additions and 293 deletions

View File

@ -112,8 +112,10 @@ GENERATION_MODES = Literal[
]
@invocation("core_metadata", title="Core Metadata", tags=["metadata"], category="metadata", version="1.0.0")
class CoreMetadataInvocation(BaseInvocation):
@invocation(
"metadata_accumulator", title="Metadata Accumulator", tags=["metadata"], category="metadata", version="2.0.0"
)
class MetadataAccumulatorInvocation(BaseInvocation):
"""Collects core generation metadata into a MetadataField"""
generation_mode: Optional[GENERATION_MODES] = InputField(

View File

@ -56,7 +56,7 @@ export const IP_ADAPTER = 'ip_adapter';
export const DYNAMIC_PROMPT = 'dynamic_prompt';
export const IMAGE_COLLECTION = 'image_collection';
export const IMAGE_COLLECTION_ITERATE = 'image_collection_iterate';
export const METADATA = 'core_metadata';
export const METADATA = 'metadata_accumulator';
export const BATCH_METADATA = 'batch_metadata';
export const BATCH_METADATA_COLLECT = 'batch_metadata_collect';
export const BATCH_SEED = 'batch_seed';

View File

@ -9,7 +9,7 @@ export const addCoreMetadataNode = (
): void => {
graph.nodes[METADATA] = {
id: METADATA,
type: 'core_metadata',
type: 'metadata_accumulator',
...metadata,
};

File diff suppressed because one or more lines are too long