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

Device Components Region Filter bug #3966

Closed
darcynz opened this issue Jan 21, 2020 · 6 comments
Closed

Device Components Region Filter bug #3966

darcynz opened this issue Jan 21, 2020 · 6 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@darcynz
Copy link

darcynz commented Jan 21, 2020

Environment

  • Python version: 3.7
  • NetBox version: 2.7.1

Steps to Reproduce

  1. Go to the Device components page eg interfaces
    eg. https://netbox/dcim/interfaces/
    Error occurs for all components
  2. Select a region and click search by apply
    Following is an example of the url generated. https://netbox/dcim/interfaces/?q=&region=34&site=

Expected Behavior

Filter appears of the components as per the region selected

Observed Behavior

Netbox crashes with the following error

Request Method: | GET
Request URL: | http://netbox/dcim/interfaces/?q=&region=99&site=
Django Version: | 2.2.9
Exception Type: | TypeError
Exception Value: | 'Region' object is not iterable

Note this issue has been verified by other netbox users.

@kobayashi
Copy link
Contributor

This issue has been closed as it does not conform to one of the provided templates as required by the contributing guide. If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).
Please provide both Expected/Observed behavior.

@kobayashi
Copy link
Contributor

Sorry, I found this was discussed in mailing list.

@kobayashi kobayashi reopened this Jan 21, 2020
@kobayashi
Copy link
Contributor

Region filtering for interface is provided in 2 ways.

  1. regin which requires region slug to filter.
  2. region_id which requires region id.

Could you try region_id=99 if you are filtering by region id? Or region=<your region name> .

@darcynz
Copy link
Author

darcynz commented Jan 21, 2020 via email

@jeremystretch
Copy link
Member

Closing this as it does not conform to the bug report template. Please modify your issue so provide all of the required information and then request that it be re-opened.

@darcynz
Copy link
Author

darcynz commented Jan 21, 2020

Bug updated, please reopen and/or let me know if more detail is required.

@jeremystretch jeremystretch reopened this Jan 21, 2020
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application labels Jan 21, 2020
@jeremystretch jeremystretch self-assigned this Jan 21, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants