Skip to content

[Backend] Metadata.File: implement generateUpdateMetadataCacheNotification (Backend.Edge.App support)#3797

Open
arindahills wants to merge 2 commits into
OpenEMS:developfrom
arindahills:pr/metadata-file-aggregator
Open

[Backend] Metadata.File: implement generateUpdateMetadataCacheNotification (Backend.Edge.App support)#3797
arindahills wants to merge 2 commits into
OpenEMS:developfrom
arindahills:pr/metadata-file-aggregator

Conversation

@arindahills

@arindahills arindahills commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

When connecting Edges through the Backend.Edge.App aggregator (the supported architecture, see #3795 and #3818), the app needs the API-key to Edge-ID mapping from the central Backend's Metadata service. MetadataOdoo and MetadataDummy implement generateUpdateMetadataCacheNotification(), but MetadataFile inherited the empty default, so a File-metadata Backend cannot serve the aggregator (the cache never initializes and Edges are rejected).

This implements it for MetadataFile, mirroring MetadataOdoo/MetadataDummy, so deployments that use File-based Metadata (i.e. without running Odoo) can use the Backend.Edge.App aggregator.

…ation

File metadata returned the empty default, so the BackendEdge aggregator never
received an apikey->edgeId cache and its edge-facing server never started
(Cache.isInitialized gates on a non-empty map). Build the map from the loaded
edges so File-metadata backends can run the aggregator without requiring Odoo.

Signed-off-by: arindahills <arinda.hillary@gmail.com>
@arindahills
arindahills force-pushed the pr/metadata-file-aggregator branch from 8759a4a to c1edb5b Compare June 30, 2026 21:03
@arindahills arindahills changed the title [Backend] Metadata.File: implement generateUpdateMetadataCacheNotification [Backend] Metadata.File: implement generateUpdateMetadataCacheNotification (Backend.Edge.App support) Jul 9, 2026
@tushabe

tushabe commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@sfeilmeier Could you please help review this PR when you have a moment? It adds Metadata.File support for generating the UpdateMetadataCache notification, so Backend.Edge.App can get the apikey -> edgeId mapping when running with file-based metadata instead of Odoo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants