Skip to content

Metrics: rename import/export to energy/returnEnergy#29907

Merged
andig merged 2 commits into
masterfrom
chore/metrics-energy-rename
May 15, 2026
Merged

Metrics: rename import/export to energy/returnEnergy#29907
andig merged 2 commits into
masterfrom
chore/metrics-energy-rename

Conversation

@andig
Copy link
Copy Markdown
Member

@andig andig commented May 15, 2026

Required for #29784 (comment). UI part omitted.

Renames the database columns, struct fields, and JSON tags from
import/export to energy/return_energy (DB) and energy/returnEnergy
(JSON/Go). Renames QueryImportEnergy() to QueryEnergy() and adds a
schema migration that chains from the previous rename steps.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@andig andig added the infrastructure Basic functionality label May 15, 2026
CI integration test was failing because the spec still asserted on the
old slot.import / slot.export keys. Update to slot.energy /
slot.returnEnergy to match the renamed API response.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Member

@naltatis naltatis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andig andig merged commit db82557 into master May 15, 2026
19 checks passed
@andig andig deleted the chore/metrics-energy-rename branch May 15, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Basic functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants