Fix long_name escaping in maps.#2
Open
agessaman wants to merge 158 commits intodadecoza:puget-meshfrom
Open
Conversation
Author
|
After I shared a link to MeshInfo on Mastodon, I DDoS'd my server with all the page requests. I implemented simply caching using Flask-Caching's simple caching mechanism so that requests on /, graph.html, nodes.html and allnodes.html have a 60 second cache. Seems to help. |
…ni settings, optimized image generation
…e of MeshData instead of recreating repeatedly; more efficient neighbors.html, more efficient get_nodes().
…SQL queries to include channel filtering, added channel information to telemetry data, and improved UI to display channel details in metrics and chat views. Introduced channel selection in metrics and chattiest nodes sections.
…acement update in traceroute map
- Replaced direct imports of meshtastic_support in meshinfo_web.py with lazy loading functions. - Updated template files to use new helper functions for accessing hardware model names and enums. - Improved memory management by cleaning up large objects after rendering templates.
- Updated the migration script to first check for the existence of the 'channel' column in the meshlog table before attempting to extract channel information from messages.
…ve traceability. - Implemented error handling for adding channel columns and indexes, ensuring migration robustness. - Updated telemetry migration to check for existing packet_id values and deduplicate telemetry data by (id, telemetry_time) and (id, packet_id) as needed. - Added unique constraint on (id, packet_id) in telemetry table, with error handling for existing constraints.
… fresh installs better
…ved accessibility checks and logging. Added error handling for table access and refined index existence checks to ensure robust migration behavior.
…ndexes.py. Enhanced migration logic by ensuring no unread results interfere with index creation, improving overall migration robustness.
…tion.py. Enhanced migration logic to ensure accessibility of the message_reception table, improving robustness and error handling during database migration.
…n checks. Implemented logic to verify the existence of the message_reception table before adding the new column, improving migration robustness and error handling.
…mproved error handling and accessibility checks. Added logging for table existence and queryability, and implemented fallback logic for column addition to ensure robust migration behavior.
…message_reception and relay_edges tables. Enhanced migration logic to ensure robust column addition and logging for existing columns in traceroute.
…e color based on accent color brightness. Added is_dark function to determine brightness and enhance visual contrast in generated favicons.
…ed get_cached_chat_data to support optional channel filtering, modified chat2 to retrieve and display available channels, and implemented JavaScript for dynamic channel selection. Additionally, improved favicon configuration in config.ini.sample and updated SVG generation logic in generate_favicon.py to utilize new favicon color settings.
…/cache to optimize build times by caching buildx layers, enhancing the efficiency of the Docker image build process.
…issing edges. Added functions to create placeholder nodes and ensure all referenced nodes exist in the graph, improving edge handling and visualization in the frontend.
… Changed boolean checks for is_placeholder to string comparisons for consistency in node handling and conditional logic.
…hen the Shift key is held. Added a visual indicator for Shift key activation to improve user experience during message propagation visualization.
…link node. Implemented JWT authentication for secure access. Enhanced error handling and response formatting. Updated user authentication to support both email and username. Added support for new MT roles.
Fix for unknown hardware models on node detail page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found an issue where long_names like "Just Meshin' Around" would break mapping because the apostrophe was not properly escaped.