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

FlexMeasures / flexmeasures / 25801739746
80%
main: 81%

Build:
Build:
LAST BUILD BRANCH: fix/status-page-jobs-table-sorting
DEFAULT BRANCH: main
Ran 13 May 2026 01:56PM UTC
Jobs 1
Files 163
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

13 May 2026 01:20PM UTC coverage: 80.312% (+0.04%) from 80.273%
25801739746

Pull #2163

github

web-flow
fix: block non-admins from creating public assets; add regression tests

When account_id is absent from a POST /assets request body, Marshmallow
does not invoke the @validates("account_id") field validator, so the
inline `if account_id is not None:` guard silently skipped the permission
check. Any authenticated user could create a public (account-less) asset.

Fix: raise Forbidden when account_id is None and the caller is neither a
site admin nor CLI.

Add tests:
- test_regular_user_cannot_create_public_asset
- test_regular_user_cannot_create_child_of_public_asset

Update AGENTS.md: auth concerns must be covered by tests, not code
inspection alone.

Agent-Logs-Url: https://github.com/FlexMeasures/flexmeasures/sessions/b55c75f0-c9c5-4d45-9f17-4477d6cb4760

Co-authored-by: Flix6x <30658763+Flix6x@users.noreply.github.com>
Pull Request #2163: Fix auth issues: child asset creation, account page access

18 of 20 new or added lines in 2 files covered. (90.0%)

4 existing lines in 2 files now uncovered.

12548 of 15624 relevant lines covered (80.31%)

0.8 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
80.0
0.46% flexmeasures/api/v3_0/assets.py
1
79.25
-0.75% flexmeasures/ui/views/accounts.py

Coverage Regressions

Lines Coverage ∆ File
3
66.67
-3.7% flexmeasures/auth/decorators.py
1
83.33
-2.38% flexmeasures/api/common/schemas/users.py
Jobs
ID Job ID Ran Files Coverage
1 25801739746.1 13 May 2026 01:56PM UTC 163
80.31
GitHub Action Run
Source Files on build 25801739746
  • Tree
  • List 163
  • Changed 8
  • Source Changed 2
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25801739746
  • Pull Request #2163
  • PR Base - main (#25731912624)
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