Skip to content

chore: merge 0.2.2 hotfix back into main#56

Merged
jsenecal merged 5 commits into
mainfrom
chore/sync-0.2.2-to-main
Jun 30, 2026
Merged

chore: merge 0.2.2 hotfix back into main#56
jsenecal merged 5 commits into
mainfrom
chore/sync-0.2.2-to-main

Conversation

@jsenecal

Copy link
Copy Markdown
Owner

Summary

Changes

  • netbox_pathways/forms.py: PathwaysMapWidget.get_context re-exposes the id/name/geom_type template-context vars that Django 6.0 dropped from BaseGeometryWidget.
  • tests/test_map_widget.py: regression tests for the widget render.
  • CHANGELOG.md: new ## [0.2.2] - 2026-06-30 section (Fixed [Bug]: Structure Location does not show maps after a clean install #52); [Unreleased] features preserved.
  • README.md, docs/index.md: NetBox 4.6 / Django 6.0 compatibility notes.
  • version bump 0.2.1 -> 0.2.2 (merged from release/0.2.2).

Testing

  • ruff check passes
  • ruff format --check passes
  • pytest passes locally (459 + 3 new, on NetBox 4.6.3 / Django 6.0.6)
  • New/changed behavior covered by tests
  • Migration applied cleanly (n/a -- no schema change)
  • Docs updated (README, CHANGELOG, docs/)

Related

Refs: #52

jsenecal added 5 commits June 30, 2026 02:04
Django 6.0 dropped the top-level id/name/geom_type template-context
variables from BaseGeometryWidget (they moved under 'widget'). The map
widget template reads them at the top level, so the hidden geometry
input rendered with an empty name (no geometry submitted) and the map
container with an empty data-field-id (the JS bailed, no map). Re-expose
them in PathwaysMapWidget.get_context; stays compatible with Django 5.2.

Fixes #52
# Conflicts:
#	CHANGELOG.md
NetBox 4.6 ships Django 6.0; this exercises the geometry widget fix
(#52) against the stack that originally broke it.

Refs #52
@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.42%. Comparing base (9b68057) to head (0f831f8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #56      +/-   ##
==========================================
+ Coverage   73.40%   73.42%   +0.02%     
==========================================
  Files          52       52              
  Lines        5189     5193       +4     
==========================================
+ Hits         3809     3813       +4     
  Misses       1380     1380              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jsenecal jsenecal merged commit 46ba870 into main Jun 30, 2026
15 checks passed
@jsenecal jsenecal deleted the chore/sync-0.2.2-to-main branch June 30, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Structure Location does not show maps after a clean install

1 participant