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

Djhoward12 naaps 10 app rackgroup assignment #96

Conversation

djhoward12
Copy link
Collaborator

@djhoward12 djhoward12 commented Jun 25, 2024

Added the ability to assign RackGroups and Status tiles to span multiple spaces and place a Rack tile on top of a group of tiles.

Closes: #10

@djhoward12 djhoward12 marked this pull request as draft June 25, 2024 18:54
@djhoward12 djhoward12 marked this pull request as ready for review June 25, 2024 18:54
Copy link
Collaborator

@glennmatthews glennmatthews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff!

nautobot_floor_plan/choices.py Outdated Show resolved Hide resolved
nautobot_floor_plan/migrations/0005_auto_20240621_1852.py Outdated Show resolved Hide resolved
nautobot_floor_plan/models.py Outdated Show resolved Hide resolved
nautobot_floor_plan/models.py Show resolved Hide resolved
nautobot_floor_plan/models.py Outdated Show resolved Hide resolved
nautobot_floor_plan/svg.py Outdated Show resolved Hide resolved
nautobot_floor_plan/svg.py Outdated Show resolved Hide resolved
nautobot_floor_plan/svg.py Outdated Show resolved Hide resolved
nautobot_floor_plan/tests/test_api_views.py Outdated Show resolved Hide resolved
nautobot_floor_plan/tests/test_models.py Show resolved Hide resolved
@joewesch
Copy link
Contributor

So when you have a Floor Tile "group" that is bigger than a rack within that group (left side of first image) it makes sense to have an edit for both the rack tile and the group tile. However, if the tile takes up the same spaces (right side of first image and second image) then can we hide one of the sets of Edit/Delete buttons since they seem to take you to the same form/page?

Screenshot 2024-06-26 at 3 28 55 PM
Screenshot 2024-06-26 at 3 31 16 PM

… for single rack tiles that are not on group tiles. Removing status box from rack tiles that are on group tiles.
@djhoward12
Copy link
Collaborator Author

So when you have a Floor Tile "group" that is bigger than a rack within that group (left side of first image) it makes sense to have an edit for both the rack tile and the group tile. However, if the tile takes up the same spaces (right side of first image and second image) then can we hide one of the sets of Edit/Delete buttons since they seem to take you to the same form/page?

Screenshot 2024-06-26 at 3 28 55 PM Screenshot 2024-06-26 at 3 31 16 PM

This has been resolved with the latest update.

…a rack if the rack.rack_group is the same as the underlying rack_group assigned to the group tile.
@djhoward12 djhoward12 marked this pull request as draft June 28, 2024 12:48
…ot in the correct rack group. Working on rendering of tiles still.
Filter rackgroup field to only display the rackgroup the rack is in.

Co-authored-by: Joe Wesch <10467633+joewesch@users.noreply.github.com>
@djhoward12 djhoward12 marked this pull request as ready for review June 28, 2024 21:16
…e_retrieve.html

Co-authored-by: Joe Wesch <10467633+joewesch@users.noreply.github.com>
Copy link
Contributor

@joewesch joewesch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for all your work @djhoward12.

@joewesch joewesch requested a review from glennmatthews July 3, 2024 13:40
docs/user/app_getting_started.md Outdated Show resolved Hide resolved
nautobot_floor_plan/models.py Show resolved Hide resolved
nautobot_floor_plan/models.py Outdated Show resolved Hide resolved
nautobot_floor_plan/models.py Outdated Show resolved Hide resolved
nautobot_floor_plan/choices.py Outdated Show resolved Hide resolved
djhoward12 and others added 5 commits July 10, 2024 17:12
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
…e_retrieve.html

Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
…_type and on_group_tile fields in models.py. Removed null=True for on_group_tile, and changed Tile Type to Allocation type on floorplantile_retrieve.html
@joewesch joewesch merged commit fec12a1 into nautobot:develop Jul 10, 2024
16 checks passed
@djhoward12 djhoward12 deleted the djhoward12-naaps-10-app-rackgroup-assignment branch July 11, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assign RackGroups to a range of coordinates
3 participants