Graceful error handling for selecting a scope type without a specific scope instance #10566

Closed
opened 2025-12-29 21:33:12 +01:00 by adam · 0 comments
Owner

Originally created by @Azmodeszer on GitHub (Dec 11, 2024).

Originally assigned to: @bctiemann on GitHub.

Deployment Type

Self-hosted

Triage priority

N/A

NetBox Version

v4.2-beta1

Python Version

3.11

Steps to Reproduce

  1. Create a prefix or cluster or etc.
  2. Select a scope type.
  3. Try to save without selecting an instance of that scope type.

(btw, I can't assign the beta tag to an issue myself, right?

Expected Behavior

Some kind of regular UI error telling the user to select an instance.

Observed Behavior

<class 'ValueError'>

'PrefixForm' has no field named 'scope_id'.
Originally created by @Azmodeszer on GitHub (Dec 11, 2024). Originally assigned to: @bctiemann on GitHub. ### Deployment Type Self-hosted ### Triage priority N/A ### NetBox Version v4.2-beta1 ### Python Version 3.11 ### Steps to Reproduce 1. Create a prefix or cluster or etc. 2. Select a scope type. 3. Try to save without selecting an instance of that scope type. (btw, I can't assign the beta tag to an issue myself, right? ### Expected Behavior Some kind of regular UI error telling the user to select an instance. ### Observed Behavior ``` <class 'ValueError'> 'PrefixForm' has no field named 'scope_id'. ```
adam added the type: bugstatus: acceptedbetaseverity: low labels 2025-12-29 21:33:12 +01:00
adam closed this issue 2025-12-29 21:33:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10566