You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will be a little non-trivial to implement since the api/extras/jobs/ API endpoint is now versioned, and this dropdown should populate based on the 1.3 (non-default) version of the API. Most likely the fix here will be to:
extend nautobot.utilities.forms.widgets.APISelect (and implicitly APISelectMultiple) to include an api_version optional constructor argument that if set, sets the data-api-version attribute on the widget
extend nautobot/project-static/js/forms.js to look for the data-api-version attribute on the widget and set the Accept header version appropriately if present
modify JobResultFilterForm so that it creates its APISelectMultiple widget with the appropriate api_version="1.3" parameter.
Document this new feature/pattern in comments and the Nautobot developer documentation.
Environment
Steps to Reproduce
Expected Behavior
There should be a drop-down of Job models to use for filtering.
Observed Behavior
The field is broken. Looks like
JobResultFilterForm.job_model
is pointing to a defunct endpoint (/api/extras/job-models/
) and needs to be corrected.The text was updated successfully, but these errors were encountered: