Skip to content

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 27 May 12:43
· 16 commits to main since this release
cbddfe4

Patch release fixing a production-blocking 500 on every list / detail
page in v0.1.0. All v0.1.0 users should upgrade.

Compatibility: NetBox v4.5, NetBox v4.6 · Python 3.12.

Fixed

  • NoReverseMatch 500 on every UI page. NetBox 4.x's object detail
    and list-row templates reverse <label>_changelog and
    <label>_journal unconditionally for every model, but the plugin's
    _crud() URL factory only registered the eight basic CRUD verbs.
    The first time a logged-in user opened any list or detail page,
    NetBox tried to render the per-row dropdown, hit
    django.urls.exceptions.NoReverseMatch, and produced a red 500. The
    factory now registers the two missing routes (changelog, journal)
    for every model, backed by NetBox's stock ObjectChangeLogView and
    ObjectJournalView (PR #13). The bug existed for every model in
    v0.1.0 — not just ACIFabric.

Added

  • tests/test_urls.py — regression guard. Enumerates every
    UI-bearing model in the plugin and asserts every route in the
    ten-route block (list / add / import / bulk-edit / bulk-delete /
    detail / edit / delete / changelog / journal) reverses cleanly. The
    test class explicitly checks changelog and journal so a future
    regression of this exact bug fails the build with an obvious error.
    CI did not catch the original failure because NetBox's
    ViewTestCases and APIViewTestCases only reverse the explicit
    verbs they cover — they never touch *_changelog or *_journal.