Skip to content
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

Fixes: #18241 - Script results log_threshold should default to Default #18501

Conversation

renatoalmeidaoliveira
Copy link
Collaborator

Fixes: #18241 - Script results log_threshold should default to Default

  • Changes the LogLevelChoices Choices order, putting LOG_DEBUG in the last position.
  • Changes script_result.html dropdown to add the string (All) only to the last possition following the new LogLevelChoices order
  • Changes ScriptResultView get method to return log_threshold with LOG_DEFAULT instead of LOG_DEBUG

…LevelChoices to LOG_DEFAULT and setup the html template to put (All) in the last one
@DanSheps DanSheps requested a review from bctiemann January 27, 2025 18:42
@jeremystretch jeremystretch merged commit efa939d into netbox-community:main Feb 6, 2025
3 checks passed
bctiemann pushed a commit that referenced this pull request Mar 6, 2025
#18501)

* Changed LogLevelChoices order; Changed ScriptResultView to select LogLevelChoices to LOG_DEFAULT and setup the html template to put (All) in the last one

* Change LogLevelChoices in ScriptResultView get_table method

* Remove default option, add Default string to INFO

* Fix scripts.py and reports.py to reflect removing DEFAULT level

* fix linting
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Script results log_threshold should default to Default
3 participants