You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Azure API gives us multiple usage items that have the same ID. We combine them into one item, for various reasons. The method we use to combine them can be seen here:
to address this issue:
alan-turing-institute/rctab-functions#42
tests are empty for now
On branch tests_for_post_usage
Changes to be committed:
modified: tests/test_routes/test_usage.py
The Azure API gives us multiple usage items that have the same ID. We combine them into one item, for various reasons. The method we use to combine them can be seen here:
rctab-functions/usage_function/utils/usage.py
Line 85 in db8228c
If the first item we are given has no reservation id/name and any later ones do, we loose that information (as well as other info, potentially).
A quick fix would be to overwrite any NULL fields and error or warn about any conflicting fields when merging two or more usage items.
The text was updated successfully, but these errors were encountered: