REST API calls serving form fields are not using brief mode #5121

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

Originally created by @jeremystretch on GitHub (Jul 29, 2021).

NetBox version

v3.0-beta1

Python version

3.7

Steps to Reproduce

  1. Open the browser's developer console to inspect HTTP requests
  2. Navigate to an interface and click the "connect" button
  3. When the next page loads, notice that all the REST API calls triggered by form fields do not append ?brief=True to the API URL

Expected Behavior

All form-triggered REST API calls should employ brief mode.

Observed Behavior

Brief mode is not being used.

IIRC we identified this issue previously and switched to brief mode, bud had temporarily reverted back to full mode because of #6773 (which has since been resolved). Edit: There's a TODO note in api.ts referencing missing _depth attributes in some nested serializers, but as far as I can tell they're all present.

Originally created by @jeremystretch on GitHub (Jul 29, 2021). ### NetBox version v3.0-beta1 ### Python version 3.7 ### Steps to Reproduce 1. Open the browser's developer console to inspect HTTP requests 2. Navigate to an interface and click the "connect" button 3. When the next page loads, notice that all the REST API calls triggered by form fields do not append `?brief=True` to the API URL ### Expected Behavior All form-triggered REST API calls should employ [brief mode](https://netbox.readthedocs.io/en/stable/rest-api/overview/#brief-format). ### Observed Behavior Brief mode is not being used. IIRC we identified this issue previously and switched to brief mode, bud had temporarily reverted back to full mode because of ~#6773 (which has since been resolved).~ Edit: There's a `TODO` note in `api.ts` referencing missing `_depth` attributes in some nested serializers, but as far as I can tell they're all present.
adam added the type: bugbeta labels 2025-12-29 19:24:29 +01:00
adam closed this issue 2025-12-29 19:24:30 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5121