Conversation
|
@claude /review Only report on issues of potential concern; we don't need commentary on anything that doesn't require further consideration. |
|
Claude finished @arthanson's task in 1m 42s —— View job Code Review
Concerns1. No test coverage for The new check has three meaningful branches (branching not installed → early return; NetBox version too low; branching version too low), plus the silent-pass paths. None are covered by tests. A failure in 2.
except PackageNotFoundError:
errors.append(Warning(
'netbox-branching is installed but its version could not be determined.',
hint='If using an editable install, ensure dist-info is present.',
id='netbox_custom_objects.W001',
)) |
|
re claude review, fixed 1 and 2. |
|
|
||
|
|
||
| # Version floors enforced only when netbox-branching is installed. | ||
| REQUIRED_NETBOX_VERSION = '4.6.2' |
There was a problem hiding this comment.
Should this one pull from the min_version on the PluginConfig? Or else we'll have to keep this in sync too. Or if this is relevant only when branching is present, maybe REQUIRED_NETBOX_VERSION_FOR_BRANCHING or something? (If it's truly unrelated to the custom-objects min_version then I don't mind this.)
Fixes: #569
Adds a Django system check that enforces minimum NetBox and netbox-branching versions only when netbox-branching is installed.