farmOS / field-kit

A modular, offline-first companion app to farmOS.
https://farmOS.org
GNU General Public License v3.0
60 stars 39 forks source link

No categories listed under Log Categories #375

Closed vital-agro closed 4 years ago

vital-agro commented 4 years ago

@jgaehring I tested FK on our interns work iPhone which is running iOS 13.6 and FK PWA 0.5.1 and the there are no Log Categories to choose from. See attached image.

We are trying to log an activity under the sensors category. @paul121 could this be a server config issue also?image

jgaehring commented 4 years ago

Can you confirm you have categories set up on your server? They should be listed under /admin/structure/taxonomy/farm_log_categories.

jgaehring commented 4 years ago

Also, are the categories displayed if you go to the Filters page? And have you synced your logs yet? Sometimes categories don't get synced until the logs do.

vital-agro commented 4 years ago

That was it, thanks!

paul121 commented 4 years ago

@jgaehring would it make sense to automatically sync these sorts of things after logging in? Or display a message saying that you should sync?

Also curious how this will work with Field Modules (are they not displayed until you sync?) although I imagine you have already thought about this and likely have something in the works!

jgaehring commented 4 years ago

Haha, funny you should ask, I was just working on the timing for Field Modules (see #355), adding it right after login as well as on app load, and it gave me pause to think what other calls we should make after logging in. In some instances, like with assets and areas, we have a little button displayed to "Force Sync", but we never did that for categories.

I'm thinking more and more I'd like modules to have a say in what data gets synced when, so it could just be that we end up making My Logs and other modules call for whatever data they need on the created() life cycle hook. At least, that's how I'm thinking of doing it for logs. But maybe for now, with things like categories, perhaps we do just want to automatically sync and load that stuff automatically on login. Should we reopen this issue and name it "Fetch categories on login" or something like that?