-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
option to hide script classes from being visible #13795
Comments
…ide scripts from user display
…ide scripts from user display, documentation adjustment
I have a branch ready for a pull request, if this issue/request is accepted. |
Hello, it has been 5 months since this was reported and I have offered a code fix - is anyone available to triage this request or provide feedback on the solution offered? I am not sure why the last two comments were deleted. |
IIRC inheriting from I'm going to mark this as blocked by #12510 for now as I want to avoid potential conflicts with work we're doing on the Script class for v4.0. |
@jeremystretch thank you for the reply - we are inheriting from |
@FliesLikeABrick I've tested this, if your class inherits from BaseScript it won't show up:
In the case above NewBranchScript will show up but NewBranchScript1 will not. |
Closing as can use BaseScript |
Hi, I've opened a discussion with example here: #17040 |
NetBox version
v3.6.1
Feature type
New functionality
Proposed functionality
We would like to add a way to hide certain script classes from the UI when they do not have user-facing functionality (no run method). There seem to be a few ways this could be implemented:
Use case
We have a class hierarchy for our Netbox scripts, to abstract common functionality. We do not want our intermediate classes from the module(s) being visible in the UI, as those classes do not contain user functionality
Database changes
None
External dependencies
None
The text was updated successfully, but these errors were encountered: