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

zentralopensource / zentral / 32759078048
91%

Build:
DEFAULT BRANCH: main
Ran 24 Aug 2026 06:03PM UTC
Jobs 1
Files 1031
Run time 2min
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

24 Aug 2026 04:57PM UTC coverage: 90.211% (-0.001%) from 90.212%
32759078048

push

github

np5
monolith: publish audit events from the API views

The Monolith API changed a catalog, a condition, an enrollment or a manifest
enrollment package with no record of it. The web console publishes a
zentral_audit event for the same objects, so the API was the only way to change
them without a trace.

Eight views move to the ListCreateAPIViewWithAudit and the
RetrieveUpdateDestroyAPIViewWithAudit bases. The bases give the permission
classes and the filter backend, so the views do not declare them again. The
three perform_destroy methods that refuse to delete an object in use call
super(), and the audit event of the base is published after their check.

The delete of a manifest enrollment package needs an argument: its
perform_destroy calls delete(delete_enrollment=False), because the API takes an
enrollment that it did not create and must only release it. The console creates
the enrollment with the package, and deletes the two of them together.

RetrieveUpdateDestroyAPIViewWithAudit calls delete() with the keyword arguments
of the new get_perform_destroy_kwargs() now, which gives an empty dict by
default. DestroyModelMixin.perform_destroy calls delete() with no argument, so
nothing changes for the other views. The manifest enrollment packages give the
argument they need, and keep the audit event.

These endpoints also answer a PATCH with a 405 now, because the bases accept
only the full updates.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

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

51291 of 56857 relevant lines covered (90.21%)

0.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32759078048.1 24 Aug 2026 06:03PM UTC 1031
90.21
GitHub Action Run
Source Files on build 32759078048
  • Tree
  • List 1031
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #32759078048
  • 19f9ae4c on github
  • Prev Build on main (#32747338681)
  • Next Build on main (#32764814799)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc