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

FlexMeasures / flexmeasures / 7914759358
78%

Build:
DEFAULT BRANCH: main
Ran 15 Feb 2024 10:57AM UTC
Jobs 4
Files 152
Run time 13s
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

15 Feb 2024 10:52AM UTC coverage: 66.774% (+1.1%) from 65.68%
7914759358

push

github

web-flow
Support SQLAlchemy 2.0.x (#938)

Update SQLAlchemy dependency from version 1.4 to 2.0, and with it timely-beliefs 2, which gains some speed improvements in querying time series data from the database.


* import declarative object from orm

* use db.session.get instead of query.get

* refactor users to use session.get()

* refactor assets and view_utils to use session.get and session.execute

* refactor generic_assets to use session.get and session.execute

* refactor data-show to use session.get and session.execute

* remove commented in code

* refactor account to use session.get()

* adopt sqlalchemy 2 features in data_add

* refactore cli scripts to support sqlalchemy 2.0

* update v3_0/assets

Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>

* update api to use sqlalchemy 2.0

Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>

* update models to support sqlalchemy 2.0

* update migration scripts

* update api

* update ui to use sqlalchemy 2.0

* update cli queries to sqlalchemy 2.0 version

Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>

* migrate queries to sqlalchemy 2.0

Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>

* update requirements

* use session.execute instead of engine.execute

* first check for a table if exists then data

Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>

* add zone to session before returning it

Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>

* update last value datatime query

Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>

* update data_gen.py queries

Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>

* update api queries

Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>

* remove commented lines

Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>

* updated remaining queries to sqlalchemy 2.0 format

Signed-off-by: Ahmad Wahid <ahmedwahid16101@gmail.com>

* get speci... (continued)

3872 of 6484 branches covered (59.72%)

Branch coverage included in aggregate %.

147 of 230 new or added lines in 50 files covered. (63.91%)

15 existing lines in 12 files now uncovered.

6930 of 9693 relevant lines covered (71.49%)

2.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7914759358.1 15 Feb 2024 10:57AM UTC 0
69.78
GitHub Action Run
2 7914759358.2 15 Feb 2024 10:57AM UTC 0
65.78
GitHub Action Run
3 7914759358.3 15 Feb 2024 10:57AM UTC 0
65.75
GitHub Action Run
4 7914759358.4 15 Feb 2024 10:57AM UTC 0
65.75
GitHub Action Run
Source Files on build 7914759358
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #7914759358
  • 071a4de2 on github
  • Prev Build on main (#7891671169)
  • Next Build on main (#7915205712)
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