-
Notifications
You must be signed in to change notification settings - Fork 192
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
Filtering out (or not) the version-less browser name in tagging #1949
Comments
I don't think there's a technical reason, I think we've just always done it that way. |
Could we come up with a list of strings and what we would expect for Currently we have metadata_tests = [
({'browser': 'Firefox'}, None),
({'browser': 'Firefox Mobile'}, None),
({'browser': 'Firefox99.0'}, None),
({'browser': 'Firefox (tablet)'}, None),
({'browser': 'Firefox 30.0'}, 'browser-firefox'),
({'browser': 'Firefox Mobile 30.0'}, 'browser-firefox-mobile'),
({'browser': 'Firefox Mobile (Tablet) 88.0'},
'browser-firefox-mobile-tablet')
] I propose we add/change metadata_tests = [
({'browser': 'Firefox'}, 'browser-firefox'),
({'browser': 'Firefox Mobile'}, 'browser-firefox-mobile'),
({'browser': 'Firefox99.0'}, 'browser-firefox'),
({'browser': 'Firefox (tablet)'}, 'browser-firefox-tablet'),
({'browser': 'Firefox 30.0'}, 'browser-firefox'),
({'browser': 'Firefox Mobile 30.0'}, 'browser-firefox-mobile'),
({'browser': 'Firefox Mobile (Tablet) 88.0'}, 'browser-firefox-tablet'),
({'browser': 'Firefox Mobile Nightly 59.0a1 (2017-12-04)'}, 'browser-firefox-mobile'),
] what about
another solution is to be a lot more cut in the deep. in that way we minimize our chances to get bruises and failures. |
+1 on the second choice as we talk about it a few times already and the refactor is already accounting for it :) |
See the discussion in #1944 (review)
Currently we only accept
MyBrowser 90.0
with this regex([^\d]+?)\s[\d\.]+
inwebcompat.com/webcompat/webhooks/helpers.py
Lines 37 to 46 in aba261f
But does it have to be like this? Do we need to drop string without version when we anyway drop the version number :O)
(also: remove this
else:
in there)The text was updated successfully, but these errors were encountered: