< 222022-10-23⋎24 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
11:48lordeddi[m]hi, can one add a land type e.g. "terrace"
11:49lordeddi[m]farmos.org/model/type/asset/#land-assets
11:49lordeddi[m]and there's no way to add it through the administration>structure>...
11:49mstenta[m]farmos.org/development/module/fields/#la
11:49lordeddi[m]maybe "Field" would be close enoughthough
11:49mstenta[m]Land types can be added via modules
11:50lordeddi[m]ah, that's exactly what i am looking for thanks!
11:50mstenta[m]It's in a weird place in the docs
11:50lordeddi[m]i got stuck in that "model" place and was a bit confused sorry
11:52FarmerEd[m]mstenta: just read your post in the forum, does that mean I can make an API call and get a new token in a single request?
11:52FarmerEd[m]I've just about worked out the flow based on expiry time too anyway.
11:53mstenta[m]I dont think so, it would be two requests I think. paul121 has done more than I have with this
12:00FarmerEd[m]Ah OK, so using expires_in would be a better strategy if there are going to be a lot of requests together like uploading a CSV file one line at a time.
12:03FarmerEd[m]Presumably subrequests a better strategy for CSV uploads anyway, but that's a job for another day.
12:06mstenta[m]This has some good thoughts stackoverflow.com/questions/54719946/oau
12:07mstenta[m]Oops meant to paste this one stackoverflow.com/questions/29170013/oau
12:07mstenta[m]Both might have relevant ideas :-)
12:08mstenta[m]It is pretty use case dependent, so do what works best
12:16FarmerEd[m]I guess my issue is I'm trying to build some nodes that are flexible for a multitude of use cases not just my own so trying to not tie down any particular strategies while keeping them relatively simple to use. Anyway plenty to go on now cheers.
12:17mstenta[m]Yea! I like your refresh node idea.
12:57*farmBOT has joined
18:04FarmerEd[m]Do Farmier users have any access to the consumer entity settings?
18:04mstenta[m]i don't think so
18:04mstenta[m]they just get a Manager role... I forget if that has access
18:05FarmerEd[m]Will they need it if password grant is done away it?
18:05mstenta[m]Farmier doesn't really restrict much specifically itself... it just creates a user with the Manager role for the original registrant
18:05mstenta[m]It also adds an "Account Admin" role to that user with some extra perms like the ability to create new users
18:06mstenta[m]good question Farmer Ed
18:06mstenta[m]i honestly haven't given this much thought... but it seems like it would make sense to give the "Account Admin" role access to consumers, eh?
18:07FarmerEd[m]can't very well set default client credentials
18:07mstenta[m]i wonder if there are any security considerations
18:09FarmerEd[m]I'm sure there are, maybe there is a good argument for keeping password grant after the module stops supporting it officially?
18:14FarmerEd[m]unless there is a way to enforce minimum security requirements?
18:28mstenta[m]if there are security considerations with exposing the full consumers UI, another option might be to keep that locked down, but expose a more simplified UI just for managing client credentials
18:28mstenta[m](either in farmOS itself to make things easier for everyone, or if that feels like overkill then maybe just in Farmier)
18:28mstenta[m]i don't have enough experience with the current UI to know what would make the best sense
18:29mstenta[m]my general approach is wait for someone to ask for it... set it up manually for them... then wait for more people to ask for it until i'm sick of setting up manual stuff, then figure something better out :-P
18:30mstenta[m]but if there's reason to consider this in farmOS core first, might be worth doing
18:30mstenta[m]i suppose one question is: would there be a use-case for other users (eg: not just managers) to set these up?
18:30mstenta[m]maybe that's a box of worms
18:31mstenta[m]i try to keep the worms contained as much as possible in farmier ;-)
18:36FarmerEd[m]Just a thought I had, it's not going to effect me too much, but want to make sure what I develop for node-red works as easily for both Farmier and self hosted. I was considering dropping the password grant myself if it was likely to be dropped in the nearish future anyway but think now it would be simplest to keep it.

< 222022-10-23⋏24 >