Skip to content

MetadataFile use default implementation of generateUpdateMetadataCacheNotification #3703

@kuopching

Description

@kuopching

Description

The cache is not updated with values ​​from the configuration file. An empty list is always sent.
In io.openems.backend.metadata.fileMetadataFile needs override like :

public UpdateMetadataCache.Notification generateUpdateMetadataCacheNotification() {
		var apikeysToEdgeIds = this.edges.values().stream() 
				.collect(Collectors.toMap(
						e -> e.getApikey(), 
						e -> e.getId()));
		return new UpdateMetadataCache.Notification(apikeysToEdgeIds);
	}

Screenshots

No response

Operating System

Windows 11
OpenEMS v.2026.4.0

How to reproduce the Error?

Use Metadafile in backend

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions