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

Add "Fiber Connected Hub" and Map Display Override Options #794

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Andrew-Dickinson
Copy link
Member

Adds a new hub type "Fiber Connected Hub" which renders on the map as a big blue "supernode" dot

Also adds the ability to override the display of links:
Screenshot 2024-12-24 at 17 05 10

Includes changes from #793

Copy link

codecov bot commented Dec 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.89%. Comparing base (7f6961a) to head (d134d93).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #794      +/-   ##
==========================================
+ Coverage   94.88%   94.89%   +0.01%     
==========================================
  Files          89       89              
  Lines        3809     3823      +14     
==========================================
+ Hits         3614     3628      +14     
  Misses        195      195              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

# Conflicts:
#	src/meshapi/views/map.py
Copy link
Collaborator

@WillNilges WillNilges left a comment

Choose a reason for hiding this comment

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

Is there a slack thread about this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you squash these migrations?

Comment on lines 88 to +93
if install.node.type != Node.NodeType.STANDARD and self._is_node_dot(install):
synthetic_notes.append(install.node.type)
if install.node.type == Node.NodeType.FIBER_HUB:
# Draw fiber-connected hubs with the big blue "supernode" dot
synthetic_notes.append(Node.NodeType.SUPERNODE)
else:
synthetic_notes.append(install.node.type)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this because... the map doesn't support FIBER_HUB?

@@ -149,6 +153,17 @@ class Meta:
installDate = JavascriptDateField(source="install_date")

def convert_status_to_spreadsheet_status(self, link: Link) -> str:
if link.map_display_override:
map_override_to_spreadsheet_status: Dict[str, str] = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

📓 Note: What happens if we update the MapDisplayOverride and forget to update this? Is there a test that evokes that?

@Andrew-Dickinson
Copy link
Member Author

Should we do this for nodes too?

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.

2 participants