Repository navigation
Fix Mermaid.js race condition in architecture diagrams plugin - #301
Merged
Merged
Conversation
…footer Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Fix error loading Mermaid library in WordPress plugin
Fix Mermaid.js race condition in architecture diagrams plugin
Jan 8, 2026
makr-code
marked this pull request as ready for review
January 9, 2026 05:28
16 tasks done
This was referenced May 19, 2026
Copilot AI
added a commit
that referenced
this pull request
May 20, 2026
#297/#298/#301/#302/#303) Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/360c1856-0695-4524-b3de-7ca9c8938a73 Co-authored-by: makr-code <[email protected]>
This was referenced May 20, 2026
7 tasks done
Copilot AI
added a commit
that referenced
this pull request
May 20, 2026
…a endpoints to real backends Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/57195e65-b613-4570-8266-e37b092138a3 Co-authored-by: makr-code <[email protected]>
makr-code
added a commit
that referenced
this pull request
May 21, 2026
#297/#298/#301/#302/#303) Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/360c1856-0695-4524-b3de-7ca9c8938a73 Co-authored-by: makr-code <[email protected]>
This was referenced May 25, 2026
Merged
21 of 56 tasks
Copilot AI
added a commit
that referenced
this pull request
Jun 30, 2026
… and RoPE #307 Stub #301 Remediation - Timeseries Metadata Endpoints: - handleAggregatesGet(): Replace hardcoded aggregates with real backend queries * Uses injected aggregates_fn_ provider if available * Falls back to ContinuousAggregateManager::listAggregates() * Final fallback to built-in defaults for backward compatibility * Adds tracing to track data source - handleRetentionGet(): Replace empty policies with real retention data * Uses injected retentions_fn_ provider if available * Falls back to legacy retentionPoliciesFn_ for compatibility * Falls back to storage-based config lookup * Always appends TSStore's late-arrival window if configured * Adds tracing to track policy source Stub #307 Remediation - RoPE Statistics: - handleStatsGet(): Replace placeholder stats with real rotation metrics * Queries VectorIndexManager::getRotaryEmbeddingStats() * Returns rotation_count (total rotations performed) * Returns relational_rotation_count (for knowledge graphs) * Returns avg_rotation_latency_ms (converted from microseconds) * Returns status (available/unavailable) * Gracefully handles case when RoPE metrics unavailable Tests (stub_remediation_test.cpp): - TimeSeriesAggregatesWithProvider: Verify real aggregates returned - TimeSeriesRetentionWithProvider: Verify real retention policies - TimeSeriesAggregatesDefaultFallback: Verify backward compatibility - RopeStatsWithRealMetrics: Verify real rotation metrics returned - RopeStatsDisabledReturnsNoMetrics: Verify graceful disabled handling - RopeStatsIncludesConfiguration: Verify config data included All changes maintain backward compatibility and add tracing for debugging. No breaking changes - existing tests should continue to pass. Co-authored-by: Copilot <[email protected]>
31 of 46 tasks
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.
WordPress architecture plugin fails with "Error: Failed to load Mermaid library" due to script loading timing issue.
Root Cause
Mermaid.js loads in footer via CDN while plugin JS also loads in footer and initializes on
$(document).ready(). Race condition occurs when ready fires before CDN script completes.Changes
Script Loading Order (
themisdb-architecture-diagrams.php)Defensive Improvements (
architecture-diagrams.js)Version → 1.0.2
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.