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

Logging notification activity #7072

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Logging notification activity #7072

merged 1 commit into from
Oct 24, 2023

Conversation

jedelbo
Copy link
Contributor

@jedelbo jedelbo commented Oct 20, 2023

What, How & Why?

Fixes #7050

☑️ ToDos

  • 📝 Changelog update
  • 🚦 Tests (or not relevant)
  • C-API, if public C++ API changed.

@coveralls-official
Copy link

coveralls-official bot commented Oct 20, 2023

Pull Request Test Coverage Report for Build github_pull_request_281106

  • 162 of 163 (99.39%) changed or added relevant lines in 14 files are covered.
  • 126 unchanged lines in 10 files lost coverage.
  • Overall coverage decreased (-0.02%) to 90.61%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/realm/object-store/impl/results_notifier.cpp 40 41 97.56%
Files with Coverage Reduction New Missed Lines %
test/test_dictionary.cpp 1 99.85%
test/test_thread.cpp 3 66.67%
src/realm/sync/noinst/client_impl_base.cpp 4 85.74%
src/realm/sync/noinst/protocol_codec.hpp 4 76.04%
src/realm/unicode.cpp 4 85.64%
src/realm/util/assert.hpp 4 87.5%
src/realm/sync/noinst/server/server.cpp 7 75.56%
test/fuzz_group.cpp 12 53.08%
src/realm/util/file_mapper.cpp 35 68.88%
src/realm/util/encrypted_file_mapping.cpp 52 83.12%
Totals Coverage Status
Change from base Build github_pull_request_280912: -0.02%
Covered Lines: 233721
Relevant Lines: 257942

💛 - Coveralls

@jedelbo jedelbo force-pushed the je/notification-logging branch 2 times, most recently from 94394fd to 1d634e6 Compare October 23, 2023 08:42
@jedelbo jedelbo removed the request for review from tgoyne October 23, 2023 10:44
@jedelbo jedelbo marked this pull request as draft October 23, 2023 10:44
@jedelbo jedelbo force-pushed the je/notification-logging branch from 1d634e6 to 8383daa Compare October 23, 2023 11:33
@jedelbo jedelbo requested a review from ironage October 23, 2023 13:10
@jedelbo jedelbo marked this pull request as ready for review October 23, 2023 13:10
}

~ScopeExit() noexcept
~ScopeExit()
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't it necessary to have a noexcept destructor? There is a static assert about this.

Copy link
Member

Choose a reason for hiding this comment

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

Noexcept is the default for destructors and explicitly marking them as noexcept is cosmetic.

@@ -514,6 +514,8 @@ TEST(Parser_empty_input)

TEST(Parser_ConstrainedQuery)
{
// We no longer thorow when serializing a constrained query,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// We no longer thorow when serializing a constrained query,
// We no longer throw when serializing a constrained query,

@@ -514,6 +514,8 @@ TEST(Parser_empty_input)

TEST(Parser_ConstrainedQuery)
{
// We no longer thorow when serializing a constrained query,
// but the decription cannot be used to build a new query
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// but the decription cannot be used to build a new query
// but the description cannot be used to build a new query

@@ -5414,7 +5414,7 @@ TEST(Table_LoggingMutations)
CHECK(str.find("abcdefghijklmno ...") != std::string::npos);
CHECK(str.find("14 15 16 17 18 19 ...") != std::string::npos);
CHECK(str.find("2023-09-20 10:53:35") != std::string::npos);
CHECK(str.find("Query::get_description() failed:") != std::string::npos);
CHECK(str.find("VIEW { 6 element(s) }") != std::string::npos);
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@ironage ironage left a comment

Choose a reason for hiding this comment

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

minor comments

@jedelbo jedelbo force-pushed the je/notification-logging branch from 8383daa to c5d1118 Compare October 24, 2023 08:20
@jedelbo jedelbo merged commit bdc2729 into next-major Oct 24, 2023
@jedelbo jedelbo deleted the je/notification-logging branch October 24, 2023 08:20
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants