Conversation
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
|
CC @nhoening |
Documentation build overview
Show files changed (7 files in total): 📝 7 modified | ➕ 0 added | ➖ 0 deleted
|
|
Thank you for requesting a review. It looks like the scope of this PR may be mistaken? You are creating an endpoint to copy all assets under a given account*, rather than an endpoint to copy a given asset, including all assets under it. |
|
We can also discuss the test strategy. Joshua chose to implement a part of the solution, then tests for that, then the next part, test for that etc. I believe we suggested initially to have one test case that tests a complete successful copy, then work on making it pass.
|
| "20 \u00b0C", | ||
| "3 * 230V * 16A" | ||
| ] | ||
| "description": "Quantity string describing a fixed quantity." |
Signed-off-by: Joshua Edward <oghenerobojosh01@gmail.com>
Signed-off-by: Joshua Edward <oghenerobojosh01@gmail.com>
Flix6x
left a comment
There was a problem hiding this comment.
Thanks @joshuaunity this is now heading in the right direction. See my comments for the next challenge: a deep copy. Just let me know if any decisions come up.
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
Flix6x
left a comment
There was a problem hiding this comment.
A few comments on the schema. I'll move to testing now.
Flix6x
left a comment
There was a problem hiding this comment.
I was hoping to use Swagger for testing, but I don't see the new endpoint listed on http://localhost:5000/api/v3_0/docs/. I'm delaying testing until I can use that. If you need me to test without it, please provide instructions.
…s and query parameters Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
…ated Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
Co-authored-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com> Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
|
@joshuaunity Please fix the failing pipeline and update the PR description (2 todos still marked unresolved). |
Flix6x
left a comment
There was a problem hiding this comment.
I tested on an asset with sensors_to_show='[[309, 308], [305], [14, 14]]', where:
- 309 is a sensor on original asset
- sensors 308 and 305 are sensors on a child asset of the original asset
- 14 is a sensor on a public asset
I was expecting the 30x sensor IDs to be replaced by new IDs, but they were copied verbatim.
Working on this |
… graph Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
@Flix6x you can test this out again. |
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
|
@copilot please fix the failing pipeline on this PR branch. Do not make a new PR. Then, review this PR. |
…d import CI failure Agent-Logs-Url: https://github.com/FlexMeasures/flexmeasures/sessions/6d233bee-2f46-40a4-b52b-76ac30ff565d Co-authored-by: Flix6x <30658763+Flix6x@users.noreply.github.com>
Fixed in commit |
There was a problem hiding this comment.
While testing, a lot works very well now. A few things left:
- Regression: on opening the Edit Graphs modal, I get toast notifications showing "Unknown graph format: 124". It doesn't happen on
main. Can you reproduce it? - I also had copilot fix the failing pipeline, but I still see the POST annotations endpoint being deleted from
openapi-specs.jsonin this PR. I don't know why, please investigate. - When copying an asset twice, the second copy gets the same name as the first copy. I think subsequent copies should get a number, so:
- Home
- Home (Copy)
- Home (Copy 2)
- Home (Copy 3)
- etc.
- Please update the PR description.
- Missing changelog entry.
| ] | ||
| } | ||
| }, | ||
| "/api/v3_0/assets/{id}/annotations": { |
There was a problem hiding this comment.
This should not disappear. See also #2017 (comment)
There was a problem hiding this comment.
I ran the make command, and this didnt get deleted
What does your sensors_to_show look like on your DB |
…ndpoint for asset annotations Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
Are we now at 100% or are there still cases where you expect copying flex-config to fail? |
|
thanks |
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
we are at 100% i would say, as of my tests on Friday, flex config was copied over nicely. |
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
This is now fixed. |
Description
This PR introduces an API allowing users to copy assets from one account to another, using the original account's assets as templates. The feature is currently in progress and being developed incrementally.
##TODO
Look & Feel
None
How to test
Further Improvements
Related Items
This PR closes #1966
Sign-off