openclimatefix / openclimatefix/data-platform
Support Energy Source Updates in Update Endpoint
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 3
- Forks
- 1
- Avg merge
- 44m
- Merged PRs (30d)
- 2
Description
Description
The current update endpoint does not support updating the energy_source field. As a result, we are unable to modify the energy source of an existing location.
Expected Behavior
The update endpoint should allow updates to the energy_source attribute, similar to how other editable fields are handled.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the location update endpoint and compare its editable-field handling with the other supported attributes. Trace how energy_source is represented and validated, then add endpoint coverage showing that an existing location's energy source can be changed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100