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

FlexMeasures / flexmeasures / 10781652022
77%

Build:
DEFAULT BRANCH: main
Ran 09 Sep 2024 09:41PM UTC
Jobs 4
Files 158
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Sep 2024 09:34PM UTC coverage: 67.325% (-0.08%) from 67.407%
10781652022

push

github

web-flow
Speed up assets and accounts pages (#988)

* Testing doing 1 single request instead of one request per account. This relies on the fact that the index of the internal API already take care of auth. Running agains the simulation database, it takes 52s to load the asset page on average.

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>

* check permissions

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>

* fix: harmless, but redundant plus

Signed-off-by: F.N. Claessen <felix@seita.nl>

* fix: no dumb children

Signed-off-by: F.N. Claessen <felix@seita.nl>

* feature: create Asset objects faster by selecting from db, while still using internal API

Signed-off-by: F.N. Claessen <felix@seita.nl>

* style: black

Signed-off-by: F.N. Claessen <felix@seita.nl>

* add public assets to the call and fix tests

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>

* add future

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>

* add `all_accessible` to get all the accessible assets by a certain account

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>

* Improve docstring.

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>

* raise if the account is provided and all_accessible=True

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>

* add owner, sensors and generic_asset_type to Asset schema

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>

* avoid dumping all the children fields (e.g. child_assets). this avoid recursive calls of GenericAssetSchema

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>

* add number_of_assets and number_of_users  properties to Account class

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>

* add pagination

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>

* add annotations

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>

* add number of records

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>

* fix: ... (continued)

6168 of 10008 branches covered (61.63%)

Branch coverage included in aggregate %.

85 of 117 new or added lines in 11 files covered. (72.65%)

7 existing lines in 2 files now uncovered.

7810 of 10754 relevant lines covered (72.62%)

5.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10781652022.1 09 Sep 2024 09:41PM UTC 0
68.89
GitHub Action Run
2 10781652022.2 09 Sep 2024 09:41PM UTC 0
71.73
GitHub Action Run
3 10781652022.3 09 Sep 2024 09:41PM UTC 0
68.9
GitHub Action Run
4 10781652022.4 09 Sep 2024 09:41PM UTC 0
68.89
GitHub Action Run
Source Files on build 10781652022
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #10781652022
  • 324bea0c on github
  • Prev Build on main (#10759505476)
  • Next Build on main (#10796692337)
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