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

Duplicated entries in the Roles dropdown when creating a new Config Context #5431

Closed
cmsirbu opened this issue Mar 15, 2024 · 0 comments · Fixed by #5492
Closed

Duplicated entries in the Roles dropdown when creating a new Config Context #5431

cmsirbu opened this issue Mar 15, 2024 · 0 comments · Fixed by #5492
Assignees
Labels
type: bug Something isn't working as expected

Comments

@cmsirbu
Copy link
Contributor

cmsirbu commented Mar 15, 2024

Environment

  • Nautobot version (Docker tag too if applicable): 2.1.7 https://demo.nautobot.com/
  • Python version:
  • Database platform, version:
  • Middleware(s):

Steps to Reproduce

  1. Create a new Config Context
  2. In the Assignment panel, click the Roles field
  3. Observe duplicated role entries (distribution, edge, Backbone etc. all appear twice).

Expected Behavior

Each role should only appear once.

Observed Behavior

image

Investigation

This API call sent on click is the one returning the duplicated objects: https://demo.nautobot.com/api/extras/roles/?q=&limit=50&offset=0&depth=0&content_types=dcim.device&content_types=virtualization.virtualmachine

It looks like the duplication comes from content_types=dcim.device&content_types=virtualization.virtualmachine, if you remove one of them then roles appear only once in the result.

@cmsirbu cmsirbu added type: bug Something isn't working as expected triage This issue is new and has not been reviewed. labels Mar 15, 2024
@lampwins lampwins removed the triage This issue is new and has not been reviewed. label Mar 22, 2024
@timizuoebideri1 timizuoebideri1 self-assigned this Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants