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

Disallow Set inside ArrayMixed #7502

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

nicola-cab
Copy link
Member

What, How & Why?

Working on compressing collections in mixed, I noticed that we allow col type Set to be stored inside a Mixed.
There should be no way to get into Array Mixed via the API, but better to be safe IMO.

☑️ ToDos

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

@nicola-cab nicola-cab force-pushed the nc/avoid_sets_in_mixed_at_storage_level branch from 57bf5c6 to 5732080 Compare March 21, 2024 10:51
Copy link

Pull Request Test Coverage Report for Build nicola.cabiddu_1533

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 48 unchanged lines in 8 files lost coverage.
  • Overall coverage increased (+0.009%) to 91.833%

Files with Coverage Reduction New Missed Lines %
src/realm/sync/noinst/server/server.cpp 1 76.52%
src/realm/array_blobs_big.cpp 2 98.72%
test/test_lang_bind_helper.cpp 2 94.24%
test/test_sync.cpp 2 94.33%
src/realm/table.cpp 3 90.81%
src/realm/util/future.hpp 3 95.98%
test/test_thread.cpp 3 66.67%
test/fuzz_group.cpp 32 52.71%
Totals Coverage Status
Change from base Build 2151: 0.009%
Covered Lines: 243147
Relevant Lines: 264771

💛 - Coveralls

@nicola-cab nicola-cab merged commit 8084ba9 into master Mar 21, 2024
33 of 36 checks passed
@nicola-cab nicola-cab deleted the nc/avoid_sets_in_mixed_at_storage_level branch March 21, 2024 11:49
nirinchev added a commit that referenced this pull request Mar 21, 2024
* master:
  update release note
  prepare v14.4.0
  sets not allowed at storage level inside mixed (#7502)
  🔄 Synced file(s) with realm/ci-actions (#7481)
  RCORE-1982 Opening realm with cached user while offline results in fatal error and session does not retry connection (#7469)
  RCORE-2008 Bump baas version (#7499)
  RCORE-2027: Setting log callback should not override existing log level hierarchy (#7494)
  Derive correct ubuntu version on linuxmint (#7471)
  Include nested path in 'OutOfBounds' error message (#7489)
nirinchev added a commit that referenced this pull request Mar 22, 2024
* master:
  update release note
  prepare v14.4.0
  sets not allowed at storage level inside mixed (#7502)
  🔄 Synced file(s) with realm/ci-actions (#7481)
  RCORE-1982 Opening realm with cached user while offline results in fatal error and session does not retry connection (#7469)
  RCORE-2008 Bump baas version (#7499)
  RCORE-2027: Setting log callback should not override existing log level hierarchy (#7494)
  Derive correct ubuntu version on linuxmint (#7471)
  Include nested path in 'OutOfBounds' error message (#7489)
  fix depth for nested collections set to 4 in debug mode (#7486)
  Set the minimum buffer size in Group::write() to be equal to the page size (#7492)
  Update the parent's content version when bumping it in a nested collection (#7470)
  release notes
  core v14.3.0 (#7482)
  RCORE-2007 Added Resumption delay configuration to SyncClientTimeouts (#7441)
  Improve performance of aggregate operations on empty dictionaries (#7418)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants