Rack Elevation Download SVG option does not respect Image/Label dropdown #8263

Closed
opened 2025-12-29 20:34:29 +01:00 by adam · 1 comment
Owner

Originally created by @arcticash on GitHub (Jun 29, 2023).

NetBox version

v3.5.4

Python version

3.10.7

Steps to Reproduce

  1. Open up a Rack View window
  2. Top right of the rack elevations there is a dropdown to choose Images and Labels, Images Only or Labels Only - select any option other than "Images and Labels"
  3. The correct rack elevation is displayed embedded into the page
  4. Pressing the Download SVG button results in the Images and Labels view to be rendered, regardless of the option selected or what's currently being displayed.

Expected Behavior

I would expect the Rendered SVG image to match what was displayed above the button, respecting the display option.

Observed Behavior

The rendered SVG always shows both Images and Labels.

Originally created by @arcticash on GitHub (Jun 29, 2023). ### NetBox version v3.5.4 ### Python version 3.10.7 ### Steps to Reproduce 1. Open up a Rack View window 2. Top right of the rack elevations there is a dropdown to choose Images and Labels, Images Only or Labels Only - select any option other than "Images and Labels" 3. The correct rack elevation is displayed embedded into the page 4. Pressing the Download SVG button results in the Images and Labels view to be rendered, regardless of the option selected or what's currently being displayed. ### Expected Behavior I would expect the Rendered SVG image to match what was displayed above the button, respecting the display option. ### Observed Behavior The rendered SVG always shows both Images and Labels.
adam closed this issue 2025-12-29 20:34:29 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 23, 2023):

I would expect the Rendered SVG image to match what was displayed above the button, respecting the display option.

This is not the intended behavior: The SVG image for a rack's elevation does not consider the application of labels or device images. The visibility of these layers within the image is being toggled by the UI using Javascript in the browser. There is no mechanism by which a user can craft a request to render a rack elevation with only labels, for example.

You're welcome to propose a feature request for this (citing a use case), however it would need to entail the introduction of new query parameters for the API endpoint to control the rendered image.

@jeremystretch commented on GitHub (Aug 23, 2023): > I would expect the Rendered SVG image to match what was displayed above the button, respecting the display option. This is not the intended behavior: The SVG image for a rack's elevation does not consider the application of labels or device images. The visibility of these layers within the image is being toggled by the UI using Javascript in the browser. There is no mechanism by which a user can craft a request to render a rack elevation with only labels, for example. You're welcome to propose a feature request for this (citing a use case), however it would need to entail the introduction of new query parameters for the API endpoint to control the rendered image.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8263