-
Notifications
You must be signed in to change notification settings - Fork 16
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
# Conflicts: # src/meshapi/views/map.py
There was a problem hiding this 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?
There was a problem hiding this comment.
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?
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) |
There was a problem hiding this comment.
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] = { |
There was a problem hiding this comment.
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?
Should we do this for nodes too? |
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:
Includes changes from #793