Commit 7002539
feat: Adapting flex-config to SensorsToShowSchema (#1904)
* refactor: refactored SensorsToShowSchema to validate into new shape
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: debugging - work in progress
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: debug errors
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: fixed cahrts failing to render
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: udpate test case with new schema changes
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* tests: adapting more testcases to new schema shape
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: fix failing test
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: fixed failing api due to logic oversight
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: handle asset plot entry
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: add changelog entry
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* Update documentation/changelog.rst
Co-authored-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* Update flexmeasures/data/schemas/utils.py
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* Update flexmeasures/data/schemas/generic_assets.py
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* Update flexmeasures/data/schemas/generic_assets.py
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* Update flexmeasures/data/schemas/generic_assets.py
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* fix: fixed schema bugs
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: fixed skipped validation step
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: add docstring to schema functions
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: little changes
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* tests: expanding test case
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* refactor: more backward compatibility refactoring
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: update docstring for SensorsToShowSchema
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* refactor: support for old sensor to show format for flatenen functions
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* tests: change test reference asset
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* test: apply fixture to test case due to asset resource not found
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: multiple followups across docs and schema based on PR request changes
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: fixed failing test
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: update tpy accoutn data relating to sensors_to_show
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* tests: update test cases
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* refactor: refactored util function for backward compatibility
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* tests: fixed failing tests - phase 2
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: Fix failing pipeline due to code indentation
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* Feat/clean up duplicate flattening implementation (#1984)
* refactor: move extract_sensors_from_flex_config to schemas/generic_assets.py
Signed-off-by: F.N. Claessen <claessen@seita.nl>
* delete: internal import no longer needed
Signed-off-by: F.N. Claessen <claessen@seita.nl>
* refactor: rename util method to flatten_sensors_to_show
Signed-off-by: F.N. Claessen <claessen@seita.nl>
* refactor: get rid of duplicate implementation for flattening sensors to show
Signed-off-by: F.N. Claessen <claessen@seita.nl>
* feat: make doctest out of example
Signed-off-by: F.N. Claessen <claessen@seita.nl>
* style: rst-style docstrings
Signed-off-by: F.N. Claessen <claessen@seita.nl>
* feat: support multiple flex-config field names
Signed-off-by: F.N. Claessen <claessen@seita.nl>
* feat: test flatten function
Signed-off-by: F.N. Claessen <claessen@seita.nl>
---------
Signed-off-by: F.N. Claessen <claessen@seita.nl>
* Update documentation/views/asset-data.rst
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* Update flexmeasures/data/schemas/generic_assets.py
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* Feat: Graph modal upgrade - flex-config integration (#1926)
* chore: multiple updates
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: stabilized leeft side of modal and kicked off work onteh right side, including dissabling logic
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: completed left side of graph modal
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: work in progress
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* refactor: more stabilization work as well as reactivation of broken features
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: reorder tabs
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: fixed bug whre options keep gettgin added teh configType dropdown. Also added some docstring
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: fixed error where graph cant be removed
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: ixed issue with graph titles not being editable
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: fixed broken units dropdown as well as some other refactoring to revive other broken features
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* refactor: Major refactor phase 1
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* refactor: Major refactor phase 2
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* feat; new util function to find an asset site_asset
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: add extra info icon to form elements
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: update writeup
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: fix failing util function due to wrong formatting allowing trailing zeros
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: fixed bug where a new sensor cant be added to an existing graph
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* refactor: Fixed graphs to properly display subcharts and mixed charts containg fixed and dynamic value plots
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: removed unused code
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* refactor: post resolving conflicts refactoring
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* tests: remove unsupported edgecase
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: fix issue where unsuppoerted flexocntext fields are sent to API, causing validation error
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* feat: up to date asset data for graph modals
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: Fix bug where you cant remove sensors from a grpah with multiple sensors
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: amek all asset ref inputs equal size
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* Update flexmeasures/ui/templates/assets/asset_graph.html
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* Update flexmeasures/ui/templates/assets/asset_graph.html
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* fix: fixed error when trying to remove polts thats not a array of sensors
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: Fixed bug where the options to select a felxConfig field disables the first option, in turn the first option coudlnt be selected
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* refactor: imporve fuction to improve readability and also fix edgecase bug
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: Fixed bug where sensors filter sectoin doesnt change after a selected card has been remvoed, still shows 'Add to X graph'
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: udpate temp sensor naming sceme
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: persisten root asset selection
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: implement new data format in toy data for testing
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: removed unused values
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: rename util function name
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: adding comments
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* feat: dynamically render graph title on 'add plot' button
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: remvoed duplicate asset name in graph ledgend
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: fetch sensors based on site asset instead of current asset
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* Dynamically change ledgen titles
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: little change to wording
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* refactor: transfer initialization check into component for rendering graphs
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* Update flexmeasures/ui/templates/assets/asset_graph.html
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* Update flexmeasures/ui/templates/assets/asset_graph.html
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* Update flexmeasures/ui/templates/assets/asset_graph.html
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* Update flexmeasures/ui/templates/assets/asset_graph.html
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* Update flexmeasures/ui/templates/assets/asset_graph.html
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* Update flexmeasures/ui/templates/assets/asset_graph.html
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* Update flexmeasures/ui/templates/assets/asset_graph.html
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
* chore: name change
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* refactor: backward compatibility support and imporvement UI data representation
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* fix: Fix issue where subcharts are split up into single cahrts on the frontend
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* refactor: Improve asset identification in plot headers and enhance sensor rendering logic
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* refactor: Simplify asset plot card rendering and improve code readability
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* style: Adjust disabled input width and clean up class names in asset plot card
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* style: Update plot header class for improved font size consistency
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* chore: add changelog entry
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
* update OpenAPI specs
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
* address a flake8, mypy, precommit errors
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
---------
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
* style: black
Signed-off-by: F.N. Claessen <claessen@seita.nl>
---------
Signed-off-by: joshuaunity <oghenerobojosh01@gmail.com>
Signed-off-by: JDev <45713692+joshuaunity@users.noreply.github.com>
Signed-off-by: F.N. Claessen <claessen@seita.nl>
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Co-authored-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com>
Co-authored-by: Nicolas Höning <nicolas@seita.nl>
Co-authored-by: F.N. Claessen <claessen@seita.nl>1 parent d4b76ee commit 7002539
23 files changed
Lines changed: 2330 additions & 758 deletions
File tree
- documentation
- views
- flexmeasures
- api/v3_0
- cli
- data
- migrations/versions
- models
- charts
- forecasting/pipelines
- schemas
- services
- tests
- ui
- static/js
- templates
- assets
- includes
- views/assets
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| |||
913 | 911 | | |
914 | 912 | | |
915 | 913 | | |
916 | | - | |
| 914 | + | |
917 | 915 | | |
918 | 916 | | |
919 | 917 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1826 | 1826 | | |
1827 | 1827 | | |
1828 | 1828 | | |
1829 | | - | |
| 1829 | + | |
1830 | 1830 | | |
1831 | 1831 | | |
1832 | | - | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
1833 | 1835 | | |
1834 | 1836 | | |
1835 | 1837 | | |
1836 | 1838 | | |
1837 | 1839 | | |
1838 | | - | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
1839 | 1849 | | |
1840 | 1850 | | |
1841 | | - | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
1842 | 1854 | | |
1843 | 1855 | | |
1844 | 1856 | | |
| |||
1878 | 1890 | | |
1879 | 1891 | | |
1880 | 1892 | | |
1881 | | - | |
1882 | | - | |
1883 | | - | |
1884 | | - | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
1885 | 1897 | | |
1886 | 1898 | | |
1887 | 1899 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
551 | 576 | | |
552 | 577 | | |
553 | 578 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments