-
Notifications
You must be signed in to change notification settings - Fork 7
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] is_option_set: match both long and short ids #226
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
13e5d42
to
76357e3
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #226 +/- ##
==========================================
+ Coverage 95.10% 95.27% +0.17%
==========================================
Files 18 19 +1
Lines 1735 1777 +42
==========================================
+ Hits 1650 1693 +43
+ Misses 85 84 -1 ☔ View full report in Codecov by Sentry. |
76357e3
to
1e9e8a4
Compare
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.
So I'm in favour of this change, even if its an API break (right?)
Shouldn't break API as all the ID handling is internal. It does change the API in the sense that the behavior is fixed :D |
Yeah I guess :) I try to think about cases where people deliberately distinguish between short and long id.. but I can't find an actual use case. |
1e9e8a4
to
e58a7f4
Compare
1426353
to
13800ef
Compare
13800ef
to
c61c23b
Compare
c745213
to
ee41f28
Compare
a11439e
to
c1d0aea
Compare
To-do
Problem
When calling
./parser_test -b blah
:This is quite unintuitive and has already caused me trouble.
A workaround is of course
But this relies on the user to get the short/long ID pairing correct.
Solution
Store short/long ID as a pair. When calling
is_option_set
, we can search for both short and long ID.