-
Notifications
You must be signed in to change notification settings - Fork 51
Fix traefik routing #2256
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
Fix traefik routing #2256
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2256 +/- ##
==========================================
- Coverage 80.26% 80.26% -0.01%
==========================================
Files 638 638
Lines 47628 47587 -41
Branches 745 744 -1
==========================================
- Hits 38230 38196 -34
+ Misses 9315 9309 -6
+ Partials 83 82 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
TELEMETRY <%= target_name %> PARAMS BIG_ENDIAN "Params set by SETPARAMS command" | ||
# NOTE: We don't really recommend using periods in packet names | ||
# but we're doing it here to test the routing code | ||
TELEMETRY <%= target_name %> PARAMS.PKT BIG_ENDIAN "Params set by SETPARAMS command" |
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.
I could be talked out of this but it does give us a chance to test it
tools-router: | ||
rule: PathRegexp(`/tools/.*/.*[.](ttf|otf|woff|woff2|html|js|css|png|jpg|jpeg|gif|svg|ico|json|xml|txt|pdf|zip|tar|gz|tgz|csv|tsv|md|yaml|yml|bin|doc|docx|xls|xlsx|ppt|pptx|mp4|mp3|wav|avi|mov|flv|swf|apk|ipa|deb|rpm|exe|msi|dmg|pkg|sh|bat|cmd|ps1|py|pl|rb|php|java|class|jar|war|ear|so|dll|lib|a|o|obj|pdb|pdb|lib|dylib|framework)`) | ||
rule: PathRegexp(`^/tools/.+/.+\.[a-zA-Z0-9]+$`) |
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.
Key was anchoring the Regexp with ^
and then just checking for any extension with \.[a-zA-Z0-9]+$
openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/router.js
Show resolved
Hide resolved
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.
Still missing right click Graph code changes
|
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.
Please verify docs still work as expected after this change and then looks good.
closes #2210