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
finish imperative tableview #827
Comments
there is some need for being able to use TableViews in an imperative fashion. The handover stuff has some changes pointing in that direction, but the support is not complete (it was not required to be for handover). |
Needed for (or maybe a replacement for) realm/realm-swift#1179 and probably needed for reasonable semantics for realm/realm-swift#687. |
Finn: Describe what's left to finish this. |
TableView::re_sort should eliminate all detached_refs |
Querying a tableview with detached refs is undefined. It is tempting to make querying eliminate all detached refs implicitly? |
@tgoyne is this still a requirement for realm/realm-swift#601 / realm/realm-swift#687? |
No, the current functionality is sufficient. |
@cmelchior This issue is tagged for android 1.0, but cocoa indicates they do not need it for 1.0. Please reconfirm or clear tag for android 1.0. |
How does aggregate functions like average work on tableviews with detached row accessors in reflective mode if sync_if_needed hasn't been called? |
Realm Java have begun using this and ran into this issue and crash when using I am not sure, but I think @kneth has a unit test that exposes it, so hopefully he can chime in |
The handling in TableView clear is now tracked as #1803 |
See my branch |
Can this be closed? |
@danielpovlsen I believe so but only @finnschiermer can provide the definite answer. |
No. It's the users of the feature who will provide the definitive answer. Consider for example sort() on a TableView containing detached refs. Where do the detached refs belong in the sort? before the other items? after? should they be removed all together? stay at the same position? Current decision is to put them after all other entries. Is that the right decision or will it be surprising to some? to too many? |
People trying to continue manipulating TableViews after they created detached refs, are in most cases asking for trouble anyway. I would be inclined to think that the current behaviour is fine, at least we haven't heard otherwise. I would close this for now. Any changes to this that are not crashes should be considered feature requests IMO. |
Exactly. Happy to hear from a user who has now provided the definitive answer. Closing. |
👍 |
* Use core's new fifo functions * Remove old <tmp>/realm* files Otherwise we will have problem with alternating core-5 and core-6 files.
No description provided.
The text was updated successfully, but these errors were encountered: