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

Fix history command tool #7774

Merged
merged 1 commit into from
Aug 22, 2024
Merged

Fix history command tool #7774

merged 1 commit into from
Aug 22, 2024

Conversation

danieltabacaru
Copy link
Collaborator

What, How & Why?

Update history command tool to support realm files with file format v24.

☑️ ToDos

  • [ ] 📝 Changelog update
  • [ ] 🚦 Tests (or not relevant)
  • [ ] C-API, if public C++ API changed
  • [ ] bindgen/spec.yml, if public C++ API changed

@cla-bot cla-bot bot added the cla: yes label Jun 4, 2024
@danieltabacaru danieltabacaru requested review from kmorkos and jbreams June 4, 2024 22:10
@danieltabacaru danieltabacaru added the no-jira-ticket Skip checking the PR title for Jira reference label Jun 4, 2024
Copy link

coveralls-official bot commented Jun 5, 2024

Pull Request Test Coverage Report for Build daniel.tabacaru_845

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 62 unchanged lines in 13 files lost coverage.
  • Overall coverage increased (+0.01%) to 90.853%

Files with Coverage Reduction New Missed Lines %
src/realm/index_string.cpp 1 85.17%
src/realm/util/serializer.cpp 1 90.43%
test/test_query2.cpp 1 98.73%
src/realm/query_expression.hpp 2 93.84%
src/realm/sync/network/http.hpp 2 82.27%
src/realm/util/file.cpp 2 78.73%
src/realm/sync/noinst/protocol_codec.hpp 3 73.5%
test/fuzz_group.cpp 6 50.24%
src/realm/bplustree.cpp 7 72.39%
src/realm/sync/network/network.hpp 7 85.28%
Totals Coverage Status
Change from base Build 2379: 0.01%
Covered Lines: 214622
Relevant Lines: 236231

💛 - Coveralls

@@ -2242,7 +2242,7 @@ int main(int argc, char* argv[])
Group group{realm_path, encryption_key_3}; // Throws
using gf = _impl::GroupFriend;
int file_format_version = gf::get_file_format_version(group);
if (file_format_version != 23) {
if (file_format_version != 24) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems correct for the current file format version, but could we call this Group::read_only_version_check() to check if the file format is valid to read rather than checking a hardcoded version?

@danieltabacaru danieltabacaru merged commit ba9b374 into master Aug 22, 2024
46 of 49 checks passed
@danieltabacaru danieltabacaru deleted the dt/fix_hist_command branch August 22, 2024 19:25
@github-actions github-actions bot mentioned this pull request Aug 30, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes no-changelog no-jira-ticket Skip checking the PR title for Jira reference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants