[PR #8870] [MERGED] APISelect JavaScript only perform fetch if Django substitutes have been replaced. #13402

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8870
Author: @minitriga
Created: 3/14/2022
Status: Merged
Merged: 3/30/2022
Merged by: @jeremystretch

Base: developHead: issue_8866


📝 Commits (1)

  • 3edff89 Fixes: #8866 - Does not perform API Select Search if a django peramiter has not been replaced

📊 Changes

3 files changed (+8 additions, -5 deletions)

View changed files

📝 netbox/project-static/dist/netbox.js (+1 -1)
📝 netbox/project-static/dist/netbox.js.map (+1 -1)
📝 netbox/project-static/src/select/api/apiSelect.ts (+6 -3)

📄 Description

Fixes: #8866

This fixes the issue for me. It was a result of javascript still performing the fetch api call even if the {{rack}} value has not been substituted yet.

I have not made a change to JS on netbox so i have done a yarn bundle and uploaded the netbox.js and netbox.js.map

If this is not correct please let me know.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/8870 **Author:** [@minitriga](https://github.com/minitriga) **Created:** 3/14/2022 **Status:** ✅ Merged **Merged:** 3/30/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `issue_8866` --- ### 📝 Commits (1) - [`3edff89`](https://github.com/netbox-community/netbox/commit/3edff89a4dd141d9e448c6625eaa056947589428) Fixes: #8866 - Does not perform API Select Search if a django peramiter has not been replaced ### 📊 Changes **3 files changed** (+8 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `netbox/project-static/dist/netbox.js` (+1 -1) 📝 `netbox/project-static/dist/netbox.js.map` (+1 -1) 📝 `netbox/project-static/src/select/api/apiSelect.ts` (+6 -3) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #8866 <!-- Please include a summary of the proposed changes below. --> This fixes the issue for me. It was a result of javascript still performing the fetch api call even if the `{{rack}}` value has not been substituted yet. I have not made a change to JS on netbox so i have done a `yarn bundle` and uploaded the `netbox.js` and `netbox.js.map` If this is not correct please let me know. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:27:12 +01:00
adam closed this issue 2025-12-29 22:27:12 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13402