-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Stop allowing hyphens in metric names and add name validation tests #12158
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
Stop allowing hyphens in metric names and add name validation tests #12158
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
1 similar comment
|
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12158 +/- ##
==========================================
- Coverage 91.99% 91.93% -0.06%
==========================================
Files 203 203
Lines 24847 24847
==========================================
- Hits 22857 22843 -14
- Misses 1990 2004 +14
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
a3a50af to
ef95e92
Compare
QMalcolm
left a comment
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.
@theyostalservice is my understanding correct that these were raising an error previously on the MetricFlow side, but just not in core? I ask because if so, this should be good as is. If no error was being raised anywhere then we'd have to do some additional handling in code as it'd be a breaking change
|
Yes, that's the correct understanding! :-) |
ef95e92 to
77e1c7d
Compare

Problem
Problems:
Solution
Fix the regex, change the error type that we raise, and add tests!
Checklist