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

esnet-security / SCRAM / 13998756125
94%
develop: 94%

Build:
Build:
LAST BUILD BRANCH: topic/soehlert/client_improvements
DEFAULT BRANCH: develop
Ran 21 Mar 2025 06:54PM UTC
Jobs 1
Files 44
Run time 135min
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

21 Mar 2025 06:45PM UTC coverage: 94.319%. Remained the same
13998756125

push

github

web-flow
fix(migrations): Fix REALLY broken historicalentry migration (#138)

Wow, I screwed up. The migration default for
route_manager_historicalentry wasn't the same as the one for
route_manager_entry. Apparently, this is REALLY bad based off of how
django-simple-history works, which you can see outlined
[here](https://github.com/jazzband/django-simple-history/issues/672).

This adds a migration that nukes all history of the originating SCRAM
instance field and sets it to what the default should have been. Then
there is another migration that sets the value to what it should have
been in the first place. We also don't pull in the settings value on the
model anymore because that was also a terrible idea of mine. We now just
set that on where we create the Entry model instance.

This should fix issues related to re-blocking something that had already
been in the database. Without this fix, you'll see 500 errors when
trying to update an entry to re-block it with the following error:
`AttributeError: 'NoneType' object has no attribute
'history_change_reason'`. This is because the simple history library
tries to find the history record using ALL of the model attributes as an
exact query, so if one of the attributes on the Real Model doesn't match
what's in Historical Model, then you are in trouble land as it can't
find the model.


WHOOPSIE.

---------

Co-authored-by: Sam Oehlert <soehlert@es.net>

48 of 52 branches covered (92.31%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 2 files covered. (100.0%)

998 of 1057 relevant lines covered (94.42%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 13998756125.1 21 Mar 2025 06:54PM UTC 44
94.32
GitHub Action Run
Source Files on build 13998756125
  • Tree
  • List 44
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #13998756125
  • d5c72770 on github
  • Prev Build on main (#13980325504)
  • Next Build on main (#14255099178)
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

© 2025 Coveralls, Inc