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

Support maps #1406

Merged
merged 14 commits into from
Jan 3, 2024
Merged

Support maps #1406

merged 14 commits into from
Jan 3, 2024

Conversation

nielsenko
Copy link
Contributor

@nielsenko nielsenko commented Sep 19, 2023

Fixes #685.
Fixes #778.

TODO:

  • Add generator test for collection of collection
  • Add generator test for default values of collections
  • Add generator test for Set
  • Add changelog entry to clarify default values for lists are unsupported

@cla-bot cla-bot bot added the cla: yes label Sep 19, 2023
@nielsenko nielsenko removed their assignment Oct 17, 2023
@nielsenko
Copy link
Contributor Author

Very early draft

@tanguy-penfen
Copy link

Hello, do you still have plans to support maps in realm-dart?

@nielsenko
Copy link
Contributor Author

@tanguy-penfen I assume so, but it is unlikely to be me doing it. The dedicated Dart team I was part of has been dissolved, and instead maintenance of the SDK has moved under the .NET team. Tagging @nirinchev as he may know more?

This is just a very early placeholder PR I created. 95% of the work is still outstanding.

@nielsenko
Copy link
Contributor Author

nielsenko commented Nov 28, 2023

This is related to #685. I see @nirinchev has already commented there. Maps are not currently scheduled. EDIT: Seems to be ongoing 👍

@nirinchev nirinchev marked this pull request as ready for review January 3, 2024 12:02
Copy link
Contributor Author

@nielsenko nielsenko left a comment

Choose a reason for hiding this comment

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

I cannot approve this PR, since I initiated it, but this looks good to me, so you got my blessings to merge.. once the tests pass :-)

Copy link

Pull Request Test Coverage Report for Build 7399631971

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.3%) to 87.141%

Totals Coverage Status
Change from base Build 7143215082: -1.3%
Covered Lines: 3646
Relevant Lines: 4184

💛 - Coveralls

@nirinchev nirinchev merged commit 7fa4600 into main Jan 3, 2024
48 checks passed
@nirinchev nirinchev deleted the kn/realm-maps branch January 3, 2024 17:05
@jimisola
Copy link

jimisola commented Jan 3, 2024

Great news. From what version will this feature be available?

@nielsenko
Copy link
Contributor Author

Great news. From what version will this feature be available?

Next version

@nirinchev
Copy link
Member

We want to include a few more bugfixes but hope to release it in the next few weeks.

nirinchev added a commit that referenced this pull request Jan 3, 2024
* Update generator to support maps

* Generator updates

* Better error message for wrong key type

* Remove the default value lists

* Add tests for non-empty default collection initializers

* Wire up some of the implementation

* Wire up most of the test infrastructure

* Add notification tests

* Fix generator test expects

* Fix tests

* Add changelog, clean up the generator a little

* Revert some unneeded changes

* Fix expectations

---------

Co-authored-by: Nikola Irinchev <[email protected]>
nirinchev added a commit that referenced this pull request Jan 3, 2024
* Use baasaas on CI

* Remove dependency on realm in the baas client

* Regenerate models

* Cleanup containers after test runs

* Fix CI

* Try setting the baas url correctly

* Fix order of test setup

* ..

* Add some missing flutter tests

* Try to fix flutter tests

* Rework indexed test to use values from the second half of the table.

* Use api key auth

* Post-merge fixes

* Use endpoints, wire-up differentiator tag

* Guard against incomplete containers

* Fix cleanup workflow; fix env variable names

* Don't log isolate warnings when the isolate is created by dart test

* Pass correct differentiator to android tests

* Always run cleanup

* Rework cleanup command

* Use reporter

* Don't fail test run on test errors

* Fail on error

* Remove failing test

* Update lib/src/cli/atlas_apps/options.dart

Co-authored-by: Kasper Overgård Nielsen <[email protected]>

* Support maps (#1406)

* Update generator to support maps

* Generator updates

* Better error message for wrong key type

* Remove the default value lists

* Add tests for non-empty default collection initializers

* Wire up some of the implementation

* Wire up most of the test infrastructure

* Add notification tests

* Fix generator test expects

* Fix tests

* Add changelog, clean up the generator a little

* Revert some unneeded changes

* Fix expectations

---------

Co-authored-by: Nikola Irinchev <[email protected]>

* Merge main, regenerate cli

---------

Co-authored-by: Kasper Overgård Nielsen <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 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.

Map Change Stream Support Map data types.
4 participants