-
Notifications
You must be signed in to change notification settings - Fork 2
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
Group Location Issue #44
Comments
Is asset link computing location itself? The Group module overrides the asset location logic to take into account group membership. Notably, assets have a computed Although I imagine the reason for computing internally is so that it can work offline? So if you move an animal while you're offline it will show the correct location in Asset Link... is that the intention? |
One idea: maybe if Asset Link detects that you are offline, it puts a little warning symbol next to computed fields like Location to indicate that they may not be updated until network connection is re-established. (This assumes that it moves to using the computed |
Of course, Asset Link could also add logic to mimic the Group module's... but that might be unreasonable to maintain. And it's always possible that other modules could change it in other ways. 😅 |
Yes that's the goal. Though Asset Link tries not to re-compute the group/location/geometry information unless it has reason to "believe" it needs to: farmOS_asset_link/alinkjs/packages/assetlink/src/FarmDataModelOrbitMemorySourceDecorator.js Lines 321 to 326 in a6b8d2b
The problems are two-fold;
|
This is actually one area I'm really looking forward to improving Asset Link in... I would like to provide a more powerful API for interacting with the cache status/info of individual parts of a given farmOS api response. Further I'd also like to make it easier to implement UIs that show the cached data immediately, but (when online) also request the latest data from the server and then surface any new data gracefully (without jumping around as it loads). |
From a quick skim of the code, I think the answer is that I haven't. |
The text was updated successfully, but these errors were encountered: