Troubleshoot wireMaps display issue with new database#2
Draft
Conversation
Co-authored-by: lori.chenfang <lori.chenfang@gmail.com>
|
Cursor Agent can help with this pull request. Just |
Reviewer's GuideThis PR introduces a new standalone HTML debug tool (debug_database.html) that provides an interactive UI and JavaScript logic to identify and diagnose common issues in EBPnetwork database files for WireMaps, including syntax errors, structural inconsistencies, type mismatches, and offers schema comparisons and fix suggestions. Class diagram for the debug tool's main data structure validationclassDiagram
class projectsData {
<<Array>>
projectName: string
continent: string
type: string (Headquarters|Center|Site)
address: string
website: string
latitude: number
longitude: number
}
class DebugTool {
+testDatabase(content: string)
+validateStructure(projectsData)
+compareWithExpectedStructure(projectsData)
+suggestFixes(issues)
}
DebugTool --> projectsData : validates
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Add a new HTML debug tool to diagnose issues with EBPnetwork database files for WireMaps.
This tool helps identify common problems such as incorrect variable declaration, data type mismatches (e.g., latitude/longitude as strings), missing required fields, or invalid 'type' values, which prevent the map from displaying data.
Summary by Sourcery
Add a standalone HTML-based debug tool to diagnose and fix issues in EBPnetwork database files used by WireMaps.
New Features: