-
Notifications
You must be signed in to change notification settings - Fork 583
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
Nested unmanaged types #6943
base: main
Are you sure you want to change the base?
Nested unmanaged types #6943
Conversation
Realm welcomes all contributions! The only requirement we have is that, like many other projects, we need to have a Contributor License Agreement (CLA) in place before we can accept any external code. Our own CLA is a modified version of the Apache Software Foundation’s CLA. Our records show that CLA has not been signed by @liamjones. Please submit your CLA electronically using our Google form so we can accept your submissions. After signing the CLA you can recheck this PR with a |
@cla-bot check |
The cla-bot has been summoned, and re-checked this pull request! |
Hi @kraenhansen, This PR has been slow going due to other work cropping up but I thought I might as well get a draft PR up so I can start discussing bits of it with the team. There's a couple of TODOs you might be able to help with immediately: I've got The second query, and this might be one for the original PR author instead, do you know why the |
and correct BSON types creation
Unfortunately, I won't have time to finish this properly right now. I'm stuck with an issue whereby Since we |
Based on realm@1b54593#diff-a88a95e60b13a839d0277ac5c7605aa092bbf22a5e1f0379b9494bccfd286eb4L98 Starts to highlight the problems with List & Unmanaged
1a45d08
to
753ffd4
Compare
@kraenhansen As I'm currently stuck with getting the PR into a mergeable state I'm patching the types in a fork for our purposes (main...living-with:realm-js:nested-unmanaged-types) and then transferring the changes into our project using patch-package. My fork's commits are on top of the community/v20.1.0 tag and I'm using One niggle I'm hitting, the build still seems to produce device sync info in the types but the How do I generate the type files without the device sync entries? |
These types were removed from the community branch and released as v20 as part of the deprecation of device sync. |
Oh, I'm an idiot, I thought I branched from |
What, How & Why?
Ensures
Unmanaged
works when aRealm.Object
contains otherRealm.Objects
(or Lists, etc of them).This closes #6037
☑️ ToDos
ExtractPropertyNamesOfTypeExcludingNullability
instead of usingExtractPropertyNamesOfType
?type:tests
be run as part of a higher levelbuild
ortest
?values
, matchesUnmanaged<DefaultObject, never>
?realm.create()
too? Is this possible or will there be a circular type reference?Compatibility
label is updated or copied from previous entryCOMPATIBILITY.md
package.json
s (if updating internal packages)Breaking
label has been applied or is not necessary@realm/devdocs
if documentation changes are needed