Skip to content
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

Add init / commit stage to listeners #208

Merged
merged 11 commits into from
Mar 1, 2023
Merged

Conversation

Anilm3
Copy link
Collaborator

@Anilm3 Anilm3 commented Feb 28, 2023

Description

Changes:

  • Add commit / init stage to listeners
  • Prevent construction of products with nullptr listener
  • Reorganise remote config test files
  • Fix 2-byte capabilities

Motivation

Additional Notes

Describe how to test your changes

Readiness checklist

  • Unit tests have been updated and pass
  • If known, an appropriate milestone has been selected
  • All new source files include the required notice

Release checklist

  • The CHANGELOG.md has been updated

@codecov-commenter
Copy link

codecov-commenter commented Feb 28, 2023

Codecov Report

Merging #208 (ae1f747) into master (ec8cc29) will decrease coverage by 10.87%.
The diff coverage is 45.16%.

@@             Coverage Diff             @@
##           master     #208       +/-   ##
===========================================
- Coverage   64.08%   53.21%   -10.87%     
===========================================
  Files          82       58       -24     
  Lines        5363     2191     -3172     
  Branches     1689      983      -706     
===========================================
- Hits         3437     1166     -2271     
+ Misses        918      379      -539     
+ Partials     1008      646      -362     
Flag Coverage Δ
extension ?
helper 53.21% <45.16%> (-0.22%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/helper/remote_config/asm_data_listener.hpp 50.00% <0.00%> (-16.67%) ⬇️
src/helper/remote_config/asm_features_listener.hpp 71.42% <0.00%> (-28.58%) ⬇️
src/helper/remote_config/client.hpp 100.00% <ø> (ø)
src/helper/remote_config/listener.hpp 100.00% <ø> (ø)
src/helper/remote_config/product.cpp 50.00% <25.00%> (-6.82%) ⬇️
src/helper/remote_config/asm_data_listener.cpp 51.51% <44.44%> (-0.62%) ⬇️
src/helper/remote_config/product.hpp 87.50% <66.66%> (-12.50%) ⬇️
src/helper/remote_config/client.cpp 55.14% <100.00%> (ø)
src/helper/remote_config/protocol/client.hpp 100.00% <100.00%> (ø)
src/extension/configuration.h
... and 24 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -37,7 +37,9 @@ struct client {
void set_capabilities(const std::vector<capabilities_e> &cs)
{
for (const auto &capability : cs) {
capabilities |= static_cast<uint16_t>(capability);
capabilities |=
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍


auto rule = rules_data.find(id->value.GetString());
if (rule == rules_data.end()) { // New rule
if (type != "data_with_expiration" && type != "ip_with_expiration") {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am missing a test for this type filtering

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since I'm working on a PR derived from this one I'll add the test on that PR

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@Anilm3 Anilm3 merged commit cefc12a into master Mar 1, 2023
@Anilm3 Anilm3 deleted the anilm3/commit-listeners branch March 1, 2023 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants