< 122023-04-13⋎14 >

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
09:00*ian_vai[m] has quit (Quit: You have been kicked for being idle)
09:35*evered[m] has quit (Read error: Connection reset by peer)
09:35*buddysbestfarm[m has quit (Read error: Connection reset by peer)
09:35*Mo[m] has quit (Read error: Connection reset by peer)
09:35*spitz234[m] has quit (Write error: Connection reset by peer)
09:35*workingjb[m] has quit (Read error: Connection reset by peer)
09:35*lordeddi[m] has quit (Read error: Connection reset by peer)
09:35*JasonJoe[m] has quit (Read error: Connection reset by peer)
09:35*threewordchant has quit (Read error: Connection reset by peer)
09:35*calbasi[m] has quit (Read error: Connection reset by peer)
09:35*jgaehring[m] has quit (Read error: Connection reset by peer)
09:35*symbioquine[m] has quit (Read error: Connection reset by peer)
09:35*wotnak[m] has quit (Read error: Connection reset by peer)
09:35*scrdcow[m] has quit (Write error: Connection reset by peer)
09:35*FarmerEd[m] has quit (Read error: Connection reset by peer)
09:35*jsoons[m] has quit (Write error: Connection reset by peer)
09:35*oswald[m] has quit (Read error: Connection reset by peer)
09:35*yahtu[m] has quit (Write error: Connection reset by peer)
09:35*paul121[m] has quit (Read error: Connection reset by peer)
09:35*mstenta[m] has quit (Read error: Connection reset by peer)
09:39*calbasi[m] has joined
09:39*calbasi[m] has quit (Remote host closed the connection)
09:41*calbasi[m] has joined
09:50*scrdcow[m] has joined
09:50*lordeddi[m] has joined
09:50*spitz234[m] has joined
09:50*jsoons[m] has joined
09:50*yahtu[m] has joined
09:50*JasonJoe[m] has joined
09:50*Mo[m] has joined
09:50*jgaehring[m] has joined
09:50*mstenta[m] has joined
09:50*wotnak[m] has joined
09:50*workingjb[m] has joined
09:50*buddysbestfarm[m has joined
09:50*evered[m] has joined
09:50*FarmerEd[m] has joined
09:50*oswald[m] has joined
09:50*toino[m] has joined
09:50*symbioquine[m] has joined
09:50*paul121[m] has joined
09:50*dazinism[m] has joined
09:50*threewordchant has joined
10:17*wotnak[m] has quit (Ping timeout: 240 seconds)
10:17*workingjb[m] has quit (Ping timeout: 240 seconds)
10:17*spitz234[m] has quit (Ping timeout: 252 seconds)
10:17*dazinism[m] has quit (Ping timeout: 248 seconds)
10:17*buddysbestfarm[m has quit (Ping timeout: 248 seconds)
10:17*evered[m] has quit (Ping timeout: 248 seconds)
10:17*JasonJoe[m] has quit (Ping timeout: 246 seconds)
10:17*toino[m] has quit (Ping timeout: 246 seconds)
10:17*scrdcow[m] has quit (Ping timeout: 246 seconds)
10:17*jsoons[m] has quit (Ping timeout: 246 seconds)
10:17*lordeddi[m] has quit (Ping timeout: 252 seconds)
10:17*calbasi[m] has quit (Ping timeout: 252 seconds)
10:17*yahtu[m] has quit (Ping timeout: 252 seconds)
10:17*threewordchant has quit (Ping timeout: 265 seconds)
10:17*Mo[m] has quit (Ping timeout: 265 seconds)
10:17*FarmerEd[m] has quit (Ping timeout: 265 seconds)
10:17*oswald[m] has quit (Ping timeout: 265 seconds)
10:17*symbioquine[m] has quit (Ping timeout: 256 seconds)
10:17*paul121[m] has quit (Ping timeout: 256 seconds)
10:17*jgaehring[m] has quit (Ping timeout: 256 seconds)
10:17*mstenta[m] has quit (Ping timeout: 256 seconds)
10:23*threewordchant has joined
10:23*jsoons[m] has joined
10:36*spitz234[m] has joined
10:41*workingjb[m] has joined
10:41*wotnak[m] has joined
10:44*evered[m] has joined
10:44*buddysbestfarm[m has joined
10:44*dazinism[m] has joined
10:53*JasonJoe[m] has joined
10:57*toino[m] has joined
10:57*scrdcow[m] has joined
11:00*Mo[m] has joined
11:01*calbasi[m] has joined
11:02*oswald[m] has joined
11:02*FarmerEd[m] has joined
11:04*paul121[m] has joined
11:04*jgaehring[m] has joined
11:04*symbioquine[m] has joined
11:05*mstenta[m] has joined
11:11*yahtu[m] has joined
11:13*lordeddi[m] has joined
11:32*lordeddi[m] has quit (Read error: Connection reset by peer)
11:32*spitz234[m] has quit (Write error: Connection reset by peer)
11:32*workingjb[m] has quit (Read error: Connection reset by peer)
11:32*calbasi[m] has quit (Read error: Connection reset by peer)
11:32*yahtu[m] has quit (Write error: Connection reset by peer)
11:32*symbioquine[m] has quit (Read error: Connection reset by peer)
11:32*FarmerEd[m] has quit (Remote host closed the connection)
11:32*paul121[m] has quit (Remote host closed the connection)
11:32*jgaehring[m] has quit (Read error: Connection reset by peer)
11:32*buddysbestfarm[m has quit (Remote host closed the connection)
11:32*wotnak[m] has quit (Remote host closed the connection)
11:32*mstenta[m] has quit (Write error: Connection reset by peer)
11:32*evered[m] has quit (Remote host closed the connection)
11:32*toino[m] has quit (Remote host closed the connection)
11:32*JasonJoe[m] has quit (Remote host closed the connection)
11:32*dazinism[m] has quit (Remote host closed the connection)
11:32*oswald[m] has quit (Remote host closed the connection)
11:32*scrdcow[m] has quit (Read error: Connection reset by peer)
11:32*Mo[m] has quit (Read error: Connection reset by peer)
11:32*threewordchant has quit (Read error: Connection reset by peer)
11:32*jsoons[m] has quit (Read error: Connection reset by peer)
11:35*calbasi[m] has joined
11:44*scrdcow[m] has joined
11:44*lordeddi[m] has joined
11:44*spitz234[m] has joined
11:44*jsoons[m] has joined
11:44*yahtu[m] has joined
11:44*JasonJoe[m] has joined
11:44*oswald[m] has joined
11:44*wotnak[m] has joined
11:44*mstenta[m] has joined
11:44*paul121[m] has joined
11:44*evered[m] has joined
11:44*FarmerEd[m] has joined
11:44*jgaehring[m] has joined
11:44*toino[m] has joined
11:44*Mo[m] has joined
11:44*buddysbestfarm[m has joined
11:44*workingjb[m] has joined
11:44*symbioquine[m] has joined
11:44*dazinism[m] has joined
11:44*threewordchant has joined
13:02evered[m]Yay team!!!
13:03evered[m]Good morning left coast of the USA
13:17toino[m]Hello everyone, I installed farm a year ago and tried it for a bit just on my own but I was never able to proxy it using the nginx proxy manager I already had installed in my server, from what I found I had to change some config somewhere but I never ended up figuring it out.... (full message at <libera.ems.host/_matrix/media/v3/downloa>)
13:17toino[m]s/farm/Farmos/
13:18mstenta[m]toino: You could try searching for "Drupal behind Nginx proxy" for more generic tutorials
13:18mstenta[m]farmOS is just a distribution of Drupal, so all the same considerations apply
13:26toino[m]<mstenta[m]> "toino: You could try searching..." <- Thanks, I remembered, the problem I was having was I couldn't find the settings.php file to make the changes, it was a while ago and I was a complete noob using docker.
13:26toino[m]Going to try installing it again this week when I have time.
13:28mstenta[m]Cool! Well feel free to check back in and ask questions as you're getting into it again :-)
15:04lordeddi[m]Hi, will be missing this dev-call, i'm way too busy. Hope to be back soon! keep up the great work.
15:09mstenta[m]Sounds good lordeddi - see you another time! :-)
15:55mstenta[m]Dev call in ~5 minutes - all are welcome! meet.jit.si/farmos-dev
17:17mstenta[m]After the discussion on the dev call, I'm leaning towards maybe making the comment module in contrib instead of core as a first step
17:17mstenta[m]Curious your thoughts symbioquine because you expressed interest in it earlier
17:17mstenta[m]The main motivation for working on it was because Rothamsted wanted comments in their experiment plans
17:17mstenta[m]But they may not necessarily need/want them on assets/logs
17:18mstenta[m]So it might make more sense to just implement their stuff independently
17:18mstenta[m]And give it more thought for assets/logs in core
17:22symbioquine[m]mstenta[m]: Makes sense to me
17:22symbioquine[m]I think the main use-case for us would be on logs since on assets you can always make an observation log and put the comments in the notes...
17:23mstenta[m]And is the main usefulness of comments on logs the fact that you can capture the author nor granularly?
18:00symbioquine[m]I think time/author are pretty useful
18:02symbioquine[m]e.g. a log created for planning purposes that we later make some notes about - if those notes go into the log's notes field, then you'd have to look at the revisions to figure out who did it and what was added/changed/removed
18:03symbioquine[m]comments could provide a pretty well understood mechanism for purely adding information chronologically to a log
18:04symbioquine[m]It also has clearer semantics for concurrent contributions from multiple people
18:04symbioquine[m]i.e. two people can't edit a log at the same time, but there's not problem with two people posting comments at the same time
18:05paul121[m](maybe we need a "quick log" UI, similar to comment UI, for quickly making observation logs for an asset)
18:05symbioquine[m]s/not/no/
18:05symbioquine[m] * i.e. two people can't edit a log at the same time, but there's no problem with two people posting comments at the same time (presumably)
18:05symbioquine[m]And showing them inline somehow?
18:05paul121[m]is there not any use-case for comments on an asset?
18:06paul121[m]I feel like you might ask a "question" about the tractor, leave a comment, and keep the history there
18:07symbioquine[m]Yeah, but the expectations about the life-cycle of such comments isn't very clear...
18:07symbioquine[m]How long is that question useful? Will it show up for the whole time the tractor exists?
18:08mstenta[m]Maybe allowing for comments to be "archived" or something... which just collapses them in the UI
18:08mstenta[m]Similar to Github issues
18:09mstenta[m]Or PR reviews I mean
18:10mstenta[m]I think its important to frame comments as useful for *discussions*, not management data
18:17mstenta[m]> After the discussion on the dev call, I'm leaning towards maybe making the comment module in contrib instead of core as a first step
18:17mstenta[m]Another option is add it to core, but don't "open" comments on all assets and logs by default. We could add configuration for the default (eg: allow admin to say "sure open comments on all assets/logs by default"). And either way they can be opened/closed on individual assets/logs
18:18mstenta[m]Could even make it configurable on a per-bundle basis
18:18mstenta[m]So you could open comments on all activity logs by default, but not harvest... or whatever you want
18:19mstenta[m]that would be sort of a "soft enable" strategy...
18:19symbioquine[m]How would that look from the API?
18:19mstenta[m]so eg: Rothamsted (who wants comments but doesn't necessarily want them on assets/logs) can add them to their own entity types
18:20mstenta[m]from the API, basically every asset and log will have a new comment base field on them, which is either 0 (hidden), 1 (comments closed), or 2 (comments open)
18:20mstenta[m]my branch currently just sets the default to 2 for assets and logs
18:20mstenta[m](open comments as soon as you enable the module)
18:20mstenta[m]but we could make that more nuanced, is what i'm saying
18:21symbioquine[m]mstenta[m]: Beautiful
18:21symbioquine[m]... and I assume you then query comment entities if you want to see the existing comments?
18:21mstenta[m]that's just the core Drupal comment module behavior basically
18:22mstenta[m]yes exactly. comments are their own entity
18:22mstenta[m]i assume the comment entity references the entity they are attached to
18:22mstenta[m]but i haven't looked at that closely
18:23paul121[m]it's a reverse entity reference, yea?
18:26mstenta[m]git.drupalcode.org/project/drupal/-/blob
18:26mstenta[m]looks like just a normal entity reference field on the comment, pointed to the entity
18:27mstenta[m]Opened a draft PR: github.com/farmOS/farmOS/pull/668
18:27paul121[m]oh right. but in the context of our entities it is reverse :-)
18:27mstenta[m]This is VERY mvp
18:28mstenta[m]paul121: works basically the same way logs do... they reference assets :-)
18:30paul121[m]yeaaa I just think of "comments being apart of asset" much more than "log being a part of asset"
18:30mstenta[m]right yea that's true...
18:30mstenta[m]and a log can reference multiple assets
18:30paul121[m]but it makes sense, I think it is better in this case
18:30mstenta[m]so not exactly the same thing
18:32paul121[m]this starts to get into where our data model maybe includes "application specific" things that wouldn't be a part of a larger "standard data model". so in that regard it's nice & cleaner that comments are as nested inside the `relationships`
18:32mstenta[m]are they?
18:32mstenta[m]i haven't looked at that
18:33mstenta[m]there is a comment in attributes which is just whether or not comments are enabled
18:33paul121[m]oh
18:33mstenta[m]not sure about relationships...
18:33paul121[m]I was assuming
18:33paul121[m]I would be surprised. Because that would be another field
18:48mstenta[m]> > After the discussion on the dev call, I'm leaning towards maybe making the comment module in contrib instead of core as a first step
18:48mstenta[m]>
18:48mstenta[m]> Another option is add it to core, but don't "open" comments on all assets and logs by default. We could add configuration for the default (eg: allow admin to say "sure open comments on all assets/logs by default"). And either way they can be opened/closed on individual assets/logs
18:48mstenta[m]Quick sketch of what I meant by this:
18:48*uploaded an image: (125KiB) < libera.ems.host/_matrix/media/v3/downloa >
18:50mstenta[m]And maybe they are all unchecked by default. So enabling the farm_comment module wouldn't actually change anything in the UI by default. Then an admin could change the default behavior on a per-type basis using this form OR users could open comments on individual assets/logs as desired.
19:35mstenta[m]Hmm actually that may be more complicated than it's worth...
19:41mstenta[m]This is doable though:
19:41*uploaded an image: (85KiB) < libera.ems.host/_matrix/media/v3/downloa >
19:41mstenta[m](needs some word-smithing... but you get the idea)
19:43mstenta[m]Hmm although it will require a cache rebuild on save... 🤔
19:44toino[m]Happy to report back i got the reverse proxy working within 15 minutes with the help of chatgpt, way better at showing me only what is needed to do.
19:44toino[m]Any downsides to using the SQLite DB instead of the Postgres one?
19:44mstenta[m]haha awesome toino
19:45mstenta[m]I haven't used SQLite db backend much myself, so I'm not really sure. Probably some performance differences, but I don't know how noticeable that will be.
19:45toino[m]One more thing any way to import cattle with excel/csv files?
19:45mstenta[m]Not via the UI, but you could build a CSV importer Python script
19:45mstenta[m]farmos.org/blog/2023/quick-intro-to-pyth
19:46toino[m]mstenta[m]: Way above my pay grade😂
19:46mstenta[m]this example sounds like what you're looking for: farmos.org/blog/2023/quick-intro-to-pyth
19:46toino[m]Thanks anyway, just testing/having fun
19:47mstenta[m]I'd love to offer some flexible CSV importers in the UI eventually... we had those in farmOS v1, but it's a big dev effort to do it right
19:47toino[m]mstenta[m]: Well now that looks doable with my pay grade
19:47mstenta[m]Awesome! Just make sure you test it thoroughly on a non-production database first
19:47toino[m]I wanted to ask another thing but i forgot
19:48mstenta[m]Spin up two instances and use one for testing
19:48toino[m]This is nothing critical so no problem with it, if it brake i will reinstall it again.
19:49FarmerEd[m]I've some Node-Red flows for importing cattle from CSV if you want to explore that.
19:49*uploaded an image: (60KiB) < libera.ems.host/_matrix/media/v3/downloa >
19:49toino[m]Just remembered i noticed the PT-pt translation is only at 97% and the main Tabs are all still in english is this something that can't be changed or do you just needs someone that can translate stuff?
19:50toino[m]Im not the best with english as you can see by my typing but still good enought to translate it to Portguese on my free time
19:52toino[m]FarmerEd[m]: Never used Node-Red but i think i heard about it, is it the visual programming thing for IOT or am i mistaken?
19:54mstenta[m]> Just remembered i noticed the PT-pt translation is only at 97% and the main Tabs are all still in english is this something that can't be changed or do you just needs someone that can translate stuff?
19:54mstenta[m]we'd love help with translations!
19:54mstenta[m]it's essentially a process of contributing translations to localize.drupal.org
19:54mstenta[m]so it doesn't actually require any work from the core farmOS maintainers
19:55mstenta[m]but it does require work from you to make a user account on localize.drupal.org, join the group for your language, contribute translations, and get them approved by an admin of that language group
19:55mstenta[m]but once that happens, they will download automatically into any instance that uses that language
19:56toino[m]mstenta[m]: Thats not that bad, only problem is that website doesn't load
19:56toino[m]it took a while
19:56mstenta[m]localize.drupal.org/translate/languages/
19:57FarmerEd[m]<toino[m]> "Never used Node-Red but i..." <- Yes, a visual/ low code programing thing commonly used for IOT but also useful for interacting with API's
19:57mstenta[m]doing it through the localize.drupal.org site is a little more direct... but there's a LOT of strings in there... so might be worth jumping back and forth between that and your instance and searching for the strings that are most important to you
19:58mstenta[m]there's also modules you can use to translate directly in the farmOS UI... but i don't have much experience with that, and i don't have a great understanding of the flow to localize.drupal.org
19:58toino[m]Just noticed that some translations were right but later overwriten with english text, do you know why?
19:58*uploaded an image: (8KiB) < libera.ems.host/_matrix/media/v3/downloa >
19:58mstenta[m]anything you do in your instance only benefits you... so i always try to encouraging helping the wider community when possible :-)
19:59mstenta[m]i don't know - i'm not entirely familiar with the process on localize.drupal.org
20:00*uploaded an image: (19KiB) < libera.ems.host/_matrix/media/v3/downloa >
20:00mstenta[m]looks like ricardoamaro did that...
20:01mstenta[m]on 2/24/2023
20:01mstenta[m]demoted the correct one and imported+approved the english one...
20:02mstenta[m]if you want to pursue it, i would ask in Drupal Slack #multilingual channel app.slack.com/client/T06GX3JTS/C55J600UX
20:02toino[m]mstenta[m]: It makes no sense, translations are supposed to help those who can't understand english, why change something in Portuguese to English
20:03mstenta[m]localize.drupal.org is a volunteer effort... someone probably made ricardoamaro and admin and then they did that... which was wrong
20:03mstenta[m]maybe you can ask to be an admin and fix it
20:03toino[m]mstenta[m]: Will do for sure, even if i only do the main stuff it will help someone for sure
20:04mstenta[m]i'm not sure what the process of becoming and admin is... you probably need to prove that you aren't a malicious actor somehow...
20:04toino[m]Trust me bro rule 😂
20:04mstenta[m]i remember another farmOS user helped translate to german... they basically submitted a bunch of translations, and then opened an issue for a german admin to review them - and it went pretty smoothly!
20:05toino[m]Probably need to translate a couple of stuff correctly before giving me admin
20:05mstenta[m]i'll see if i can find that issue so you can see what it looked like
20:05mstenta[m]www.drupal.org/project/de/issues/3261927
20:07toino[m]Thanks i will check it later.
20:18toino[m]Any known reason why i can login without any problems on the website but when I try it in the field kit farmos.app i get a error Request failed with status code 500×
20:18mstenta[m]couple of things...
20:18mstenta[m]you need to enable the field kit module in farmOS
20:19mstenta[m]but more broadly... field kit is still in development and there aren't any field modules included yet
20:19mstenta[m]so you're in experimental territory :-)
20:19toino[m]field kit module enabled i think, atleast i enabled it in the inicial setup
20:21mstenta[m]ah ok - maybe you need SSL? i forget - it's been a long time since i helped with field kit testing
20:22mstenta[m]status code 500 is a good clue though
20:22toino[m]Already using ssl and https
20:22mstenta[m]usually those get logged in /admin/reports/dblog
20:22mstenta[m]so you might get more detail there
21:49mstenta[m]symbioquine: new idea... talking with paul121 about comments...
21:51mstenta[m]we make two main modules (and one lower-level dependency module): "Asset comments" (`farm_comment_asset`) and "Log comments" (`farm_comment_log`) which depend on `farm_comment` (provides helpers and general comment glue stuff)
21:51mstenta[m]this way, users would choose whether to enable comments on Assets, Logs, or both by enabling either/both module
21:52mstenta[m]and other modules (like Rothamsted) could enable comments on their own entity types using the same helpers from farm_comment (without necessarily enabling them on assets/logs)
21:52mstenta[m]seems like the easiest way to juggle these things

< 122023-04-13⋏14 >