-
Notifications
You must be signed in to change notification settings - Fork 37
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: new errors in conformance tests #103
Conversation
I think there are probably two issues that need to be corrected in the cloud event conversion logic:
|
src/LegacyEventMapper.php
Outdated
} | ||
$location = 'us-central1'; | ||
if ($domain !== 'firebaseio.com') { | ||
preg_match('#^([\w-]+)\.firebasedatabase\.app$#', $domain, $locationMatches); |
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.
We are actually more lenient than this in other languages as we aren't sure that firebasedatabase.app
will be the only domain possible. You can basically match everything up to the first dot.
We weakened the regex in the Ruby FF after the original PR I pointed you to
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.
@matthewrobertson done in 42ae03d
Co-authored-by: David Supplee <dwsupplee@gmail.com>
Co-authored-by: David Supplee <dwsupplee@gmail.com>
…m/functions-framework-php into fix-conformance-tests
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.
LGTM
No description provided.