-
Notifications
You must be signed in to change notification settings - Fork 428
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
MongoosePush API v3 mock #2549
MongoosePush API v3 mock #2549
Conversation
7513.1 / Erlang 22.0 / small_tests / 815d86b 7513.2 / Erlang 22.0 / internal_mnesia / 815d86b 7513.3 / Erlang 22.0 / odbc_mssql_mnesia / 815d86b 7513.4 / Erlang 22.0 / mysql_redis / 815d86b 7513.7 / Erlang 22.0 / elasticsearch_and_cassandra_mnesia / 815d86b 7513.5 / Erlang 22.0 / riak_mnesia / 815d86b 7513.6 / Erlang 22.0 / ldap_mnesia / 815d86b 7513.9 / Erlang 21.3 / pgsql_mnesia / 815d86b |
Codecov Report
@@ Coverage Diff @@
## master #2549 +/- ##
==========================================
+ Coverage 78.68% 79.05% +0.36%
==========================================
Files 343 343
Lines 29457 29463 +6
==========================================
+ Hits 23179 23291 +112
+ Misses 6278 6172 -106
Continue to review full report at Codecov.
|
7518.1 / Erlang 22.0 / small_tests / b476e8d 7518.2 / Erlang 22.0 / internal_mnesia / b476e8d 7518.3 / Erlang 22.0 / odbc_mssql_mnesia / b476e8d 7518.4 / Erlang 22.0 / mysql_redis / b476e8d 7518.7 / Erlang 22.0 / elasticsearch_and_cassandra_mnesia / b476e8d 7518.6 / Erlang 22.0 / ldap_mnesia / b476e8d 7518.5 / Erlang 22.0 / riak_mnesia / b476e8d 7518.9 / Erlang 21.3 / pgsql_mnesia / b476e8d |
7520.1 / Erlang 22.0 / small_tests / 8abd2f1 7520.2 / Erlang 22.0 / internal_mnesia / 8abd2f1 7520.3 / Erlang 22.0 / odbc_mssql_mnesia / 8abd2f1 7520.4 / Erlang 22.0 / mysql_redis / 8abd2f1 7520.5 / Erlang 22.0 / riak_mnesia / 8abd2f1 7520.7 / Erlang 22.0 / elasticsearch_and_cassandra_mnesia / 8abd2f1 7520.6 / Erlang 22.0 / ldap_mnesia / 8abd2f1 7520.9 / Erlang 21.3 / pgsql_mnesia / 8abd2f1 |
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.
Thanks for PR, I fund no issues there.
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.
Requires some update to migration guide about new default API version.
{ok, <<"v2">>, v2}; | ||
parse_api_version(_) -> | ||
{error, not_supported}. | ||
|
||
%% Create notification for API v2 |
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.
%% Create notification for API v2 and v3
:)
%% Create notification for API v2 | ||
make_notification(v2, Notification, Options = #{<<"silent">> := <<"true">>}) -> | ||
make_notification(API, Notification, Options = #{<<"silent">> := <<"true">>}) | ||
when API =:= v2; API =:= v3 -> |
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 think this check is overzealous because we can't really have anything other than v2
and v3
, right?
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.
Currently that's true, the code will fail earlier. Previously we needed to check the version because the atom was created from the config option.
7523.1 / Erlang 22.0 / small_tests / 20b953e 7523.2 / Erlang 22.0 / internal_mnesia / 20b953e 7523.3 / Erlang 22.0 / odbc_mssql_mnesia / 20b953e 7523.4 / Erlang 22.0 / mysql_redis / 20b953e 7523.7 / Erlang 22.0 / elasticsearch_and_cassandra_mnesia / 20b953e 7523.6 / Erlang 22.0 / ldap_mnesia / 20b953e 7523.5 / Erlang 22.0 / riak_mnesia / 20b953e 7523.9 / Erlang 21.3 / pgsql_mnesia / 20b953e |
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.
Waiting for language check.
Co-Authored-By: K. Kraus <[email protected]>
Proposed changes include: