• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FlexMeasures / flexmeasures / 24729372069

21 Apr 2026 02:53PM UTC coverage: 79.512% (+0.2%) from 79.316%
24729372069

push

github

web-flow
Feat/copy assets (#2017)

* chore: initialize repo

Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>

* chore: work in progress

Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>

* tests: added test to test for cpy asset feature

Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>

* chore: removed unused file

* refactor: relocate util function

Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>

* refacto: Refactored util for copying asset

Signed-off-by: Joshua Edward <oghenerobojosh01@gmail.com>

* tests: and new test case

Signed-off-by: Joshua Edward <oghenerobojosh01@gmail.com>

* chore: move logic into @post_load

Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>

* feat: implement deep copy of asset subtree including direct sensors

Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>

* feat: add permission requirement for copying assets

Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>

* feat: enhance asset copy endpoint with detailed OpenAPI specifications and query parameters

Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>

* feat: add test for asset copy API to ensure direct sensors are duplicated

Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>

* Update flexmeasures/api/v3_0/assets.py

Co-authored-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>

* feat: enhance asset copy response messages for clarity based on parameters

Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>

* Revert same-site sensor reference preservation in asset copy (#2056)

* Initial plan

* fix: add type annotation for result dict in _replace_sensor_refs to satisfy mypy

Co-authored-by: joshuaunity <45713692+joshuaunity@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FlexMeasures/flexmeasures/sessions/5015069b-4d6c-4084-8508-eaa501254a01

* style: apply black formatting after refactor

Co-authored-by: joshuauni... (continued)

203 of 216 new or added lines in 4 files covered. (93.98%)

12357 of 15541 relevant lines covered (79.51%)

0.8 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

89.96
/flexmeasures/api/common/utils/api_utils.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc