Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/planning/soft site power capacities #1118

Draft
wants to merge 95 commits into
base: feature/planning/relaxed-scheduler
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 87 commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
62ab235
add secondary grid limit
victorgarcia98 Jul 4, 2024
a692c1c
Merge branch 'main' into feature/planning/soft-site-power-capacities
victorgarcia98 Jul 26, 2024
dcf6c06
fix if statements
victorgarcia98 Jul 26, 2024
125082f
Apply pre-commit
victorgarcia98 Jul 26, 2024
0692f81
Merge branch 'feature/planning/relaxed-scheduler' into feature/planni…
victorgarcia98 Jul 29, 2024
2f6bbc9
expose all costs via flex-model/flex-context
victorgarcia98 Jul 29, 2024
de4ef78
Add new annotations types (#1131)
Ahmad-Wahid Aug 1, 2024
53cfde9
Docs/freshen up flex model docs (#1132)
Flix6x Aug 5, 2024
fe9b774
fix typo
victorgarcia98 Aug 5, 2024
ec6fd7c
fix: add missing API changelog entry for new flex-model fields soc-mi…
Flix6x Aug 7, 2024
5e59ec7
Support new single-belief fast track in timely-beliefs (#1107)
nhoening Aug 9, 2024
f5128dd
Basic sensor info to sensor page (#1115)
nrozanov Aug 10, 2024
a4e5e8a
Docs/macOS port (#1141)
Flix6x Aug 10, 2024
71171b0
1089 menu item styling (#1140)
Flix6x Aug 11, 2024
3bc9033
feat: zoom-in asset and sensor chart (#1130)
victorgarcia98 Aug 13, 2024
1476258
fix: support saving instantaneous beliefs as a list of one element (#…
victorgarcia98 Aug 13, 2024
9f12e30
Dynamic account colors (#1137)
joshuaunity Aug 16, 2024
a128275
Feature/merge time series schemas (#1127)
Flix6x Aug 16, 2024
27964ad
Docs/update section on API field notation (#1138)
Flix6x Aug 16, 2024
9569324
feature: flex context prices as quantities (#1028)
Flix6x Aug 20, 2024
5af6545
Merge branch 'main' into feature/planning/soft-site-power-capacities
victorgarcia98 Aug 20, 2024
c8740e5
Add annotation types on upgrade (#1150)
Ahmad-Wahid Aug 22, 2024
324cc10
Add ondelete cascade to delete annotations for a sensor/asset/account…
Ahmad-Wahid Aug 23, 2024
d23fc32
Show chart type dropdown on the left side panel (#1148)
Ahmad-Wahid Aug 23, 2024
5bb7b6b
Add histogram option on the sensor page (#1143)
Ahmad-Wahid Aug 26, 2024
572b45a
fix: remove duplicate x-axis title in histogram, while retaining repl…
Flix6x Aug 26, 2024
44e493c
fix: add default inside the function
victorgarcia98 Aug 26, 2024
dc8c642
Merge remote-tracking branch 'origin/main' into fix/get_default_insid…
victorgarcia98 Aug 26, 2024
fb54796
Fix/carousel (#1154)
Flix6x Aug 26, 2024
8f9d29e
Feat-dynamic-logo (#1145)
joshuaunity Aug 26, 2024
7f8b5da
Merge branch 'fix/get_default_inside_function' into feature/planning/…
victorgarcia98 Aug 26, 2024
de35b10
fix: add default inside the function (#1158)
victorgarcia98 Aug 26, 2024
2f57372
Merge remote-tracking branch 'origin/main' into feature/planning/soft…
victorgarcia98 Aug 27, 2024
cd3e068
sensor stats endpoint (#1116)
nrozanov Sep 2, 2024
fb3d539
feature: bulk saving works now with timely-beliefs>=3, and is faster …
Flix6x Sep 2, 2024
ff063d3
Feature/rq dashboard sort order (#1163)
Flix6x Sep 4, 2024
19c8ef2
fix: logo url validation (#1167)
joshuaunity Sep 6, 2024
a0cf652
Testing if we can get LFX Security to use their Snyk scanning here wi…
nhoening Sep 8, 2024
52f90d2
Merge remote-tracking branch 'refs/remotes/origin/main' into feature/…
Flix6x Sep 9, 2024
324bea0
Speed up assets and accounts pages (#988)
victorgarcia98 Sep 9, 2024
1765aee
Merge remote-tracking branch 'refs/remotes/origin/main' into feature/…
Flix6x Sep 10, 2024
9d7a255
Feat edit account (#1152)
joshuaunity Sep 10, 2024
03cfbd0
fix source and sensor with the previous one (forward filling)
victorgarcia98 Aug 30, 2024
b23df84
dev: print exception and apply workaround
Flix6x Sep 11, 2024
7e548b5
Merge remote-tracking branch 'refs/remotes/origin/main' into feature/…
Flix6x Sep 11, 2024
d9979b5
fix: Inject default colors into global context (#1175)
joshuaunity Sep 12, 2024
0bc3ada
Add support for adding titles to asset page graphs (#1125)
BelhsanHmida Sep 12, 2024
963185b
dev: workaround to select most recent version of sources representing…
Flix6x Sep 13, 2024
db758a0
Fix DataError Due to String Length Exceeding Column Constraint in Ass…
BelhsanHmida Sep 16, 2024
784b3a6
Improve 'Add titles to asset page graphs' implementation (#1177)
BelhsanHmida Sep 17, 2024
7fd9134
fix: set date range for calendar to be persistent on session and UI (…
joshuaunity Sep 18, 2024
d6f51b5
Fix: ordering of audit logs (#1179)
BelhsanHmida Sep 18, 2024
ebe1ede
changelog & deps updates for v0.23
nhoening Sep 18, 2024
89870a2
fix: PR number in changelog
nhoening Sep 18, 2024
5da6b2b
doc: changelog placeholder for next (0.24) release)
nhoening Sep 18, 2024
b98f8c5
Merge remote-tracking branch 'refs/remotes/origin/main' into feature/…
Flix6x Sep 19, 2024
339aeb8
Upgrade dependencies after v0.23 (#1181)
nhoening Sep 20, 2024
06a06c0
Fix tab title by removing HTML tags (#1189)
BelhsanHmida Sep 20, 2024
bd6fd5c
Fix audit log and jobs queue table sorting with datetime (#1183)
BelhsanHmida Sep 20, 2024
54f0b2f
Belief chart: legends possible per plot (#1176)
nhoening Sep 20, 2024
9088e47
Chore/update dev tooling black and flake8, run black (#1186)
nhoening Sep 21, 2024
aad49b4
chore: install HiGHs solver on macOS for developers (#1187)
nhoening Sep 21, 2024
d519681
Feature/terminal datetime plot 1147 (#1172)
BelhsanHmida Sep 23, 2024
a0053a4
Feat users pagination (#1160)
joshuaunity Sep 23, 2024
2650b5f
Split legends in case of vertically concatenated chart (#1193)
Flix6x Sep 26, 2024
fd57a66
Merge remote-tracking branch 'refs/remotes/origin/main' into feature/…
Flix6x Sep 26, 2024
207fe2c
feat: pagination on accounts listing (#1196)
joshuaunity Sep 27, 2024
6bc16fd
Speed up status page (#1142)
Ahmad-Wahid Sep 27, 2024
8ea3858
remove mention of long-sunset UI feature from documentation
nhoening Sep 29, 2024
8c21b74
fix: footer stays at the bottom (not sticky!) (#1204)
Flix6x Oct 3, 2024
13fd9c2
Refactor/simplify audit log messages (#1192)
BelhsanHmida Oct 3, 2024
b2c1962
feat: globalize and simplify toasts (#1207)
joshuaunity Oct 8, 2024
2e55fd0
Assets UI pagination (#1202)
joshuaunity Oct 11, 2024
765ba1a
feat: search filter on sensor API (#1191)
joshuaunity Oct 11, 2024
fc98f4b
fix: visualize 'forecasting script' data source as just a 'forecaster…
Flix6x Oct 15, 2024
af6102e
Fix/sensor stats timezone (#1213)
Flix6x Oct 17, 2024
98e39e9
feat: sometimes button groups actually contain label divs rather than…
Flix6x Oct 19, 2024
2939988
fix: docs should build again (#1224)
Flix6x Oct 26, 2024
c522c2b
Fix build pipeline by excluding sphinx==7.4.* (#1226)
Flix6x Oct 27, 2024
b1197c3
Display deactivate btn only as admin/account-admin (#1220)
joshuaunity Oct 27, 2024
8d20400
docs: add missing upgrade notice to changelog
Flix6x Oct 28, 2024
bab9d8e
Restrict Audit Log Button Visibility (#1228)
joshuaunity Nov 5, 2024
d2d7872
Search sensors in API by asset (#1219)
joshuaunity Nov 5, 2024
a345eb8
Chore/python 3.12 (#1233)
Flix6x Nov 8, 2024
c238be1
Add link to account on logged-in-user page
nhoening Nov 8, 2024
cc886f0
fix: typo
Flix6x Nov 8, 2024
801a140
feat: extend prices to edges of planning window
Flix6x Nov 19, 2024
c9e6518
refactor: check for null values in extend_to_edges func. also fix war…
Ahmad-Wahid Nov 26, 2024
91c7493
fix: datetime object has no attribute tz_convert
Flix6x Dec 6, 2024
15ab41c
replace underscore with hyphen in fallback attribute names
Ahmad-Wahid Dec 25, 2024
3e54612
check if entity is asset or sensor then get the attribute accordingly
Ahmad-Wahid Dec 25, 2024
b952cee
feat: assume positive prices in case of no prices
Flix6x Jan 4, 2025
c24a7bd
Backport PR #1284: Feature/reporting/add resampling methods to valida…
victorgarcia98 Dec 16, 2024
b1d15f2
style: black
Flix6x Jan 8, 2025
a2dd562
feat: add support for exclude_source_types in AggregatorReporter
Flix6x Jan 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
fail-fast: false
matrix:
py_version: [ "3.8", "3.9", "3.10", "3.11" ]
py_version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
include:
- python-version: "3.9"
coverage: yes
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,7 @@ poetry.lock

.DS_Store

.gitconfig.*
.gitconfig.*

/postgres-data
coverage.lcov
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/pycqa/flake8
rev: 6.0.0 # New version tags can be found here: https://github.com/pycqa/flake8/tags
rev: 7.1.1 # New version tags can be found here: https://github.com/pycqa/flake8/tags
hooks:
- id: flake8
name: flake8 (code linting)
- repo: https://github.com/psf/black
rev: 22.10.0 # New version tags can be found here: https://github.com/psf/black/tags
rev: 24.8.0 # New version tags can be found here: https://github.com/psf/black/tags
hooks:
- id: black
name: black (code formatting)
Expand Down
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,18 @@ install-for-dev:
make ensure-deps-folder
pip-sync requirements/${PYV}/app.txt requirements/${PYV}/dev.txt requirements/${PYV}/test.txt
make install-flexmeasures
# Locally install HiGS on macOS
if [ "$(shell uname)" = "Darwin" ]; then \
make install-highs-macos; \
fi

install-for-test:
make install-pip-tools
# Pass pinned=no if you want to test against latest stable packages, default is our pinned dependency set
ifneq ($(pinned), no)
pip-sync requirements/${PYV}/app.txt requirements/${PYV}/test.txt
else
# cutting off the -c inter-layer dependency (that's pip-tools specific)
tail -n +3 requirements/test.in >> temp-test.in
pip install --upgrade -r requirements/app.in -r temp-test.in
rm temp-test.in
pip install --upgrade -r requirements/app.in -r requirements/test.in
endif
make install-flexmeasures
# Locally install HiGS on macOS
Expand Down
2 changes: 1 addition & 1 deletion ci/update-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
set -e
set -x

PYTHON_VERSIONS=(3.8 3.9 3.10 3.11)
PYTHON_VERSIONS=(3.8 3.9 3.10 3.11 3.12)

# check if we will upgrade or just freeze
UPDATE_CMD=freeze-deps
Expand Down
75 changes: 71 additions & 4 deletions documentation/api/change_log.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,81 @@ API change log

.. note:: The FlexMeasures API follows its own versioning scheme. This is also reflected in the URL (e.g. `/api/v3_0`), allowing developers to upgrade at their own pace.

v3.0-20 | 2024-09-18
""""""""""""""""""""

- Introduce (optional) pagination to the endpoint `/assets` (GET), also adding the `all_accessible` option to allow querying all accessible accounts in one go.


v3.0-19 | 2024-08-13
""""""""""""""""""""

- Allow passing a fixed price in the ``flex-context`` using the new fields ``consumption-price`` and ``production-price``, which are meant to replace the ``consumption-price-sensor`` and ``production-price-sensor`` fields, respectively.
- Allow posting a single instantaneous belief as a list of one element to `/sensors/data` (POST).
- Allow setting a SoC unit directly in some fields (formerly ``Float`` fields, and now ``Quantity`` fields), while still falling back on the contents of the ``soc-unit`` field, for backwards compatibility:

- ``soc-at-start``
- ``soc-min``
- ``soc-max``

- Allow setting a unit directly in fields that already supported passing a time series:

- ``soc-maxima``
- ``soc-minima``
- ``soc-targets``

- Allow passing a time series in fields that formerly only accepted passing a fixed quantity or a sensor reference:

- ``power-capacity``
- ``consumption-capacity``
- ``production-capacity``
- ``charging-efficiency``
- ``discharging-efficiency``
- ``storage-efficiency``
- ``soc-gain``
- ``soc-usage``

- Added API notation section on variable quantities.
- Updated section on scheduling; specifically, most flex-context and flex-model fields are now variable quantity fields, so a footnote now explains the few fields that aren't (yet) a variable quantity field.
- Removed section on singular vs plural keys, which is no longer valid for crucial endpoints.

v3.0-19 | 2024-08-09
""""""""""""""""""""

- Allow setting a SoC unit directly in some fields (formerly ``Float`` fields, and now ``Quantity`` fields), while still falling back on the contents of the ``soc-unit`` field, for backwards compatibility:

- ``soc-at-start``
- ``soc-min``
- ``soc-max``

- Allow setting a unit directly in fields that already supported passing a time series:

- ``soc-maxima``
- ``soc-minima``
- ``soc-targets``

- Allow passing a time series in fields that formerly only accepted passing a fixed quantity or a sensor reference:

- ``power-capacity``
- ``consumption-capacity``
- ``production-capacity``
- ``charging-efficiency``
- ``discharging-efficiency``
- ``storage-efficiency``
- ``soc-gain``
- ``soc-usage``


v3.0-18 | 2024-03-07
""""""""""""""""""""
- Add support for providing a sensor definition to the ``soc-minima``, ``soc-maxima`` and ``soc-targets`` flex-model fields for `/sensors/<id>/schedules/trigger` (POST).

- Add support for providing a sensor definition to the ``soc-minima``, ``soc-maxima`` and ``soc-targets`` flex-model fields for `/sensors/<id>/schedules/trigger` (POST).

v3.0-17 | 2024-02-26
""""""""""""""""""""

- Add support for providing a sensor definition to the ``site-power-capacity``, ``site-consumption-capacity`` and ``site-production-capacity`` flex-context fields for `/sensors/<id>/schedules/trigger` (POST).


v3.0-16 | 2024-02-26
""""""""""""""""""""

Expand Down Expand Up @@ -55,7 +118,12 @@ v3.0-11 | 2023-08-02
v3.0-10 | 2023-06-12
""""""""""""""""""""

- Introduced the ``storage-efficiency`` field to the ``flex-model``field for `/sensors/<id>/schedules/trigger` (POST).
- Introduced new ``flex-model`` fields for `/sensors/<id>/schedules/trigger` (POST):

- ``storage-efficiency``
- ``soc-minima``
- ``soc-maxima``

- Introduced the ``database_redis`` optional field to the response of the endpoint `/health/ready` (GET).

v3.0-9 | 2023-04-26
Expand Down Expand Up @@ -126,7 +194,6 @@ v3.0-1 | 2022-05-08

- Added REST endpoint for checking application health (readiness to accept requests): `/health/ready` (GET).


v3.0-0 | 2022-03-25
"""""""""""""""""""

Expand Down
54 changes: 46 additions & 8 deletions documentation/api/notation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,58 @@ Notation
This page helps you to construct messages to the FlexMeasures API. Please consult the endpoint documentation first. Here we dive into topics useful across endpoints.


Singular vs plural keys
.. _variable_quantities:

Variable quantities
^^^^^^^^^^^^^^^^^^^^^^^

Throughout this document, keys are written in singular if a single value is listed, and written in plural if multiple values are listed, for example:
Many API fields deal with variable quantities, for example, :ref:`flex-model <flex_models_and_schedulers>` and :ref:`flex-context <flex_context>` fields.
Unless stated otherwise, values of such fields can take one of the following forms:

.. code-block:: json
- A fixed quantity, to describe steady constraints such as a physical power capacity.
For example:

{
"keyToValue": "this is a single value",
"keyToValues": ["this is a value", "and this is a second value"]
}
.. code-block:: json

{
"power-capacity": "15 kW"
}

- A variable quantity defined at specific moments in time, to describe dynamic constraints/preferences such as target states of charge.

.. code-block:: json

{
"soc-targets": [
{"datetime": "2024-02-05T08:00:00+01:00", "value": "8.2 kWh"},
...
{"datetime": "2024-02-05T13:00:00+01:00", "value": "2.2 kWh"}
]
}

- A variable quantity defined for specific time ranges, to describe dynamic constraints/preferences such as usage forecasts.

.. code-block:: json

{
"soc-usage": [
{"start": "2024-02-05T08:00:00+01:00", "duration": "PT2H", "value": "10.1 kW"},
...
{"start": "2024-02-05T13:00:00+01:00", "end": "2024-02-05T13:15:00+01:00", "value": "10.3 kW"}
]
}

Note the two distinct ways of specifying a time period (``"end"`` + ``"duration"`` also works).

- A reference to a sensor that records a variable quantity, which allows cross-referencing to dynamic contexts that are already recorded as sensor data in FlexMeasures. For instance, a site's contracted consumption capacity that changes over time.

.. code-block:: json

The API, however, does not distinguish between singular and plural key notation.
{
"site-consumption-capacity": {"sensor": 55}
}

The unit of the data is specified on the sensor.

Sensors and entity addresses
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
80 changes: 77 additions & 3 deletions documentation/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,86 @@
FlexMeasures Changelog
**********************


v0.24.0 | October XX, 2024
============================

New features
-------------
* The data chart on the asset page splits up its color-coded sensor legend when showing more than 7 sensors, becoming a legend per subplot [see `PR #1176 <https://github.com/FlexMeasures/flexmeasures/pull/1176>`_ and `PR #1193 <https://github.com/FlexMeasures/flexmeasures/pull/1193>`_]
* Speed up loading the users page, by making the pagination backend-based and adding support for that in the API [see `PR #1160 <https://github.com/FlexMeasures/flexmeasures/pull/1160>`]
* X-axis labels in CLI plots show datetime values in a readable and informative format [see `PR #1172 <https://github.com/FlexMeasures/flexmeasures/pull/1172>`_]
* Enhanced API for listing sensors: Added filtering and pagination on sensor index endpoint and created new endpoint to get all sensors under an asset [see `PR #1191 <https://github.com/FlexMeasures/flexmeasures/pull/1191>`_ and `PR #1219 <https://github.com/FlexMeasures/flexmeasures/pull/1219>`_]
* Speed up loading the accounts page,by making the pagination backend-based and adding support for that in the API [see `PR #1196 <https://github.com/FlexMeasures/flexmeasures/pull/1196>`_]
* Speed up loading the account detail page by by switching to server-side pagination for assets, replacing client-side pagination [see `PR #1202 <https://github.com/FlexMeasures/flexmeasures/pull/1202>`_]
* Simplify and Globalize toasts in the flexmeasures project [see `PR #1207 <https://github.com/FlexMeasures/flexmeasures/pull/1207>_`]

Infrastructure / Support
----------------------
* Speed up status page by choosing for a faster query (only latest belief needed) [see `PR #1142 <https://github.com/FlexMeasures/flexmeasures/pull/1142>`_]
* For MacOS developers, install HiGHS solver automatically [see `PR #1187 <https://github.com/FlexMeasures/flexmeasures/pull/1187>`_]
* Add support for installing FlexMeasures under Python 3.12 [see `PR #1233 <https://github.com/FlexMeasures/flexmeasures/pull/1233>`_]

Bugfixes
-----------
* The UI footer now stays at the bottom even on pages with little content [see `PR #1204 <https://github.com/FlexMeasures/flexmeasures/pull/1204>`_]
* Correct stroke dash (based on source type) for forecasts made by forecasters included in FlexMeasures [see `PR #1211 <https://www.github.com/FlexMeasures/flexmeasures/pull/1211>`_]
* Show the correct UTC offset for the data's time span as shown under sensor stats in the UI [see `PR #1213 <https://github.com/FlexMeasures/flexmeasures/pull/1213>`_]
* Fixed issue where audit log buttons are visible to users without the necessary permissions. [see `PR #1228 <https://github.com/FlexMeasures/flexmeasures/pull/1228>`_]
* Fix issue with displaying ``deactivate user`` and ``reset password`` buttons for non admin users [see `PR #1220 <https://github.com/FlexMeasures/flexmeasures/pull/1220>`_]


v0.23.0 | September 18, 2024
============================

.. note:: Read more on these features on `the FlexMeasures blog <https://flexmeasures.io/023-data-insights-and-white-labelling/>`_.

.. warning:: Upgrading to this version requires running ``flexmeasures db upgrade`` (you can create a backup first with ``flexmeasures db-ops dump``).

New features
-------------
* New chart type on sensor page: histogram [see `PR #1143 <https://github.com/FlexMeasures/flexmeasures/pull/1143>`_]
* Add basic sensor info to sensor page [see `PR #1115 <https://github.com/FlexMeasures/flexmeasures/pull/1115>`_]
* Add `Statistics` table on the sensor page and also add `api/v3_0/sensors/<id>/stats` endpoint to get sensor statistics [see `PR #1116 <https://github.com/FlexMeasures/flexmeasures/pull/1116>`_]
* Support adding custom titles to the graphs on the asset page, by extending the ``sensors_to_show`` format [see `PR #1125 <https://github.com/FlexMeasures/flexmeasures/pull/1125>`_ and `PR #1177 <https://github.com/FlexMeasures/flexmeasures/pull/1177>`_]
* Support zoom-in action on the asset and sensor charts [see `PR #1130 <https://github.com/FlexMeasures/flexmeasures/pull/1130>`_]
* Speed up loading the assets page, by making the pagination backend-based and adding support for that in the API, and by enabling to query all accounts one can see in a single call (for admins and consultants) [see `PR #988 <https://github.com/FlexMeasures/flexmeasures/pull/988>`_]
* Added Primary and Secondary colors to account for white-labelled UI themes [see `PR #1137 <https://github.com/FlexMeasures/flexmeasures/pull/1137>`_]
* Added Logo URL to account for white-labelled UI themes [see `PR #1145 <https://github.com/FlexMeasures/flexmeasures/pull/1145>`_]
* Added PopUp form to edit account details [see `PR #1152 <https://github.com/FlexMeasures/flexmeasures/pull/1152>`_]
* When listing past jobs on the `Tasks` page, show the most recent jobs first [see `PR #1163 <https://github.com/FlexMeasures/flexmeasures/pull/1163>`_]
* Introduce the ``VariableQuantityField`` to allow three ways of passing a variable quantity in most of the ``flex-model`` and ``flex-context`` fields [see `PR #1127 <https://github.com/FlexMeasures/flexmeasures/pull/1127>`_ and `PR #1138 <https://github.com/FlexMeasures/flexmeasures/pull/1138>`_]
* Support directly passing a fixed price in the ``flex-context`` using the new fields ``consumption-price`` and ``production-price``, which are meant to replace the ``consumption-price-sensor`` and ``production-price-sensor`` fields, respectively [see `PR #1028 <https://github.com/FlexMeasures/flexmeasures/pull/1028>`_]

Infrastructure / Support
----------------------
* Save beliefs faster by bulk saving [see `PR #1159 <https://github.com/FlexMeasures/flexmeasures/pull/1159>`_]
* Support new single-belief fast track (looking up only one belief) [see `PR #1067 <https://github.com/FlexMeasures/flexmeasures/pull/1067>`_]
* Add new annotation types: ``"error"`` and ``"warning"`` [see `PR #1131 <https://github.com/FlexMeasures/flexmeasures/pull/1131>`_ and `PR #1150 <https://github.com/FlexMeasures/flexmeasures/pull/1150>`_]
* When deleting a sensor, asset or account, delete any annotations that belong to them [see `PR #1151 <https://github.com/FlexMeasures/flexmeasures/pull/1151>`_]
* Removed deprecated ``app.schedulers`` and ``app.forecasters`` (use ``app.data_generators["scheduler"]`` and ``app.data_generators["forecaster"]`` instead) [see `PR #1098 <https://github.com/FlexMeasures/flexmeasures/pull/1098/>`_]
* Save beliefs faster by bulk saving [see `PR #1159 <https://github.com/FlexMeasures/flexmeasures/pull/1159>`_]
* Introduced dynamic, JavaScript-generated toast notifications. [see `PR #1152 <https://github.com/FlexMeasures/flexmeasures/pull/1152>`_]

Bugfixes
-----------
* Fix string length exceeding the 255-character limit in the `event` field of `AssetAuditLog` by truncating long updates and logging each field or attribute change individually. [see `PR #1162 <https://github.com/FlexMeasures/flexmeasures/pull/1162>`_]
* Fix image carousel on the login page [see `PR #1154 <https://github.com/FlexMeasures/flexmeasures/pull/1154>`_]
* Fix styling for User and Documentation menu items [see `PR #1140 <https://github.com/FlexMeasures/flexmeasures/pull/1140>`_]
* Fix styling of sensor page, especially the graph chart dropdown [see `PR #1148 <https://github.com/FlexMeasures/flexmeasures/pull/1148>`_]
* Fix posting a single instantaneous belief [see `PR #1129 <https://github.com/FlexMeasures/flexmeasures/pull/1129>`_]
* Allow reassigning a public asset to private ownership using the ``flexmeasures edit transfer-ownership`` CLI command [see `PR #1123 <https://github.com/FlexMeasures/flexmeasures/pull/1123>`_]
* Fix missing value on spring :abbr:`DST (Daylight Saving Time)` transition for ``PandasReporter`` using daily sensor as input [see `PR #1122 <https://github.com/FlexMeasures/flexmeasures/pull/1122>`_]
* Fix date range persistence on session across different pages [see `PR #1165 <https://github.com/FlexMeasures/flexmeasures/pull/1165>`_]
* Fix issue with account creation failing when the --logo-url flag is omitted. [see related PRs `PR #1167 <https://github.com/FlexMeasures/flexmeasures/pull/1167>`_ and `PR #1145 <https://github.com/FlexMeasures/flexmeasures/pull/1145>`_]
* Fix ordering of audit logs (asset, account) and job list on status page [see PR `PR #1179 <https://github.com/FlexMeasures/flexmeasures/pull/1179>_` and `PR #1183 <https://github.com/FlexMeasures/flexmeasures/pull/1183>`_]


v0.22.0 | June 29, 2024
============================

.. note:: Read more on these features on `the FlexMeasures blog <https://flexmeasures.io/022-editing-flex-context/>`_.

New features
-------------
* Add `asset/<id>/auditlog` to view asset related actions [see `PR #1067 <https://github.com/FlexMeasures/flexmeasures/pull/1067>`_]
Expand All @@ -25,14 +102,11 @@ Infrastructure / Support
* ``flexmeasures show beliefs`` uses the entity path (`<Account>/../<Sensor>`) in case of duplicated sensors [see `PR #1026 <https://github.com/FlexMeasures/flexmeasures/pull/1026/>`_]
* Add ``--resolution`` option to ``flexmeasures show chart`` to produce charts in different time resolutions [see `PR #1007 <https://github.com/FlexMeasures/flexmeasures/pull/1007/>`_]
* Add ``FLEXMEASURES_JSON_COMPACT`` config setting and deprecate ``JSONIFY_PRETTYPRINT_REGULAR`` setting [see `PR #1090 <https://github.com/FlexMeasures/flexmeasures/pull/1090/>`_]
* Removed deprecated ``app.schedulers`` and ``app.forecasters`` (use ``app.data_generators["scheduler"]`` and ``app.data_generators["forecaster"]`` instead) [see `PR #1098 <https://github.com/FlexMeasures/flexmeasures/pull/1098/>`_]

Bugfixes
-----------
* Fix ordering of jobs on the asset status page [see `PR #1106 <https://github.com/FlexMeasures/flexmeasures/pull/1106>`_]
* Relax max staleness for status page using 2 * event_resolution as default instead of immediate staleness [see `PR #1108 <https://github.com/FlexMeasures/flexmeasures/pull/1108>`_]
* Fix missing value on spring :abbr:`DST (Daylight Saving Time)` transition for ``PandasReporter`` using daily sensor as input [see `PR #1122 <https://github.com/FlexMeasures/flexmeasures/pull/1122>`_]
* Allow reassigning a public asset to private ownership using the ``flexmeasures edit transfer-ownership`` CLI command [see `PR #1123 <https://github.com/FlexMeasures/flexmeasures/pull/1123>`_]


v0.21.0 | May 16, 2024
Expand Down
9 changes: 6 additions & 3 deletions documentation/cli/change_log.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
FlexMeasures CLI Changelog
**********************

since v.0.22.0 | June 29, 2024
since v0.24.0 | October XX, 2024
=================================

* ``flexmeasures show beliefs`` shows datetime values on x-axis labels.

* Add ``--resolution`` option to ``flexmeasures show chart`` to produce charts in different time resolutions.
since v0.22.0 | June 29, 2024
=================================

* Add ``--resolution`` option to ``flexmeasures show chart`` to produce charts in different time resolutions.

since v.0.21.0 | April 16, 2024
since v0.21.0 | April 16, 2024
=================================

* Include started, deferred and scheduled jobs in the overview printed by the CLI command ``flexmeasures jobs show-queues``.
Expand Down
Loading
Loading