< 182021-03-19⋎20 >

farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Feature requests and bug reports: github.com/farmOS/farmOS/issuesSet by ChanServ on 2018-08-16 at 14:32
03:44symbioquine[m]Am I right in thinking there isn't a way to access images attached to assets/logs through the farmOS 1.x API?
07:07*munjoma[m] has joined
12:09*farmBOT has joined
12:32mstenta[m]symbioquine: Hmm it's been a while since I've done anything with that... but I *think* it's possible?
12:32mstenta[m]There's a few steps involved though IIRC
12:34mstenta[m]The log/asset record itself will reference a `file` resource
12:34mstenta[m]Which you then have to request separately via `/file/[id].json`
12:34mstenta[m]That JSON will contain the file URL
12:37mstenta[m]However, I'm wondering what affect public/private filesystem might have... I forget if we tested that
12:38mstenta[m]If you're using a public filesystem, then the file URL will be accessible directly without any authentication required
12:39mstenta[m]Private filesystem uploads are accessed through a special endpoint (`/system/files/...`) which goes through Drupal's access control logic - and I forget how that works with the `restws` and/or `oauth2_server` modules...
12:39mstenta[m]I'm pretty sure this is all integrated and works together in Drupal 9 / farmOS 2.x, but worth testing!
12:41mstenta[m](the D7 `restws` module has a lot of missing bits like that, so I wouldn't be surprised if there's some limitation there)
14:57symbioquine[m]ah, I see it now... ! I guess my eyes glazed right over that field of the output last night :(
14:57symbioquine[m]Thanks!
15:03paul121[m]related, this might be helpful: github.com/farmOS/farmOS.py/pull/40
15:04paul121[m]still need to test files for 2.x!
15:08symbioquine[m]TBH I haven't been using farmOS.py recently - plain requests/aiohttp feels pretty concise
15:22paul121[m]yea, just a bunch of helper functions. they get even simpler for 2.x
15:22paul121[m]I've been watching this project: github.com/encode/httpx
15:23paul121[m]would like to consider it for async support in farmOS.py
15:23paul121[m]it seems pretty stable, but they're hoping to have a stable release this year
15:23paul121[m] * it seems pretty stable as is, but they're hoping to have a stable release this year
15:25symbioquine[m]Interesting. Might be worth comparing with aiohttp when making that decision...
15:34paul121[m]yup!
17:00*uploaded an image: (103KiB) < matrix.org/_matrix/media/r0/download/mat >
17:00frakman1[m]I keep getting emails about updating my farmos modules. I checked and the following modules need to be updated:
17:00frakman1[m]However, it won't let you upload modules through this interface and says to get the upgrade directly from farmos instead,
17:01frakman1[m] * However, it won't let you upload modules through this interface and says to get the upgrade directly from farmos instead.
17:01frakman1[m]I use the single docker image `farmos/farmos` and there is currentl no update.
17:02mstenta[m]frakman1: go to `/admin/reports/updates/settings` and change your update notification settings to "Only security updates" and maybe "Weekly"
17:02mstenta[m]In general, small feature updates don't warrant a full release of farmOS
17:03mstenta[m]Security updates do - if they post a direct risk to farmOS users
17:03frakman1[m]Understandable.
17:03mstenta[m] * Security updates do - if they pose a direct risk to farmOS users
17:03frakman1[m]Is there a way to upgrade the modules manually if I wanted to? just out of curiousity.
17:03mstenta[m]fwiw, I recently made a pseudo-official policy about this for farmOS 2.x moving forward :-)
17:03mstenta[m]docs.farmos.org/hosting/update/#security
17:04mstenta[m]> Is there a way to upgrade the modules manually if I wanted to? just out of curiousity.
17:04mstenta[m]Yes! It's generally just a matter of downloading the new version's tarball and replacing the directory in `profiles/farm/modules/contrib/*` BUT...
17:05mstenta[m]... the reason we don't allow access to the update UI (which would do essentially the same thing) is because farmOS includes some patches for modules... and those patches will not be applied if you simply download the new tarball
17:05mstenta[m]So you have to understand which modules are patched, and how to re-apply patches manually, if you want to update them yourself
17:06mstenta[m]Hence why we just give that blanket statement :-)
17:06frakman1[m]Ah. I wouldn't know which ones are patched would I? That's an internal implementation right?
17:06mstenta[m]This file is what's used to build farmOS, including all the modules and their patches: github.com/farmOS/farmOS/blob/7.x-1.x/dr
17:06mstenta[m]So... for example, if you search for `date` and `token` in there...
17:07* < matrix.org/_matrix/media/r0/download/mat >
17:07* < matrix.org/_matrix/media/r0/download/mat >
17:10frakman1[m]Oh cool. I forgot it was open source. That's fascinating. Thank you for sharing the insight.
17:10mstenta[m]I just updated both of those modules in the `7.x-1.x` branch on my fork... waiting to see if the patch applies OK, then I'll push it to drupal.org... that will give you the option to update to the "dev" release if you want
17:11mstenta[m]> I forgot it was open source.
17:11mstenta[m]😄
17:11frakman1[m]So, is it possilbe to include the `smtp` module in this way (`drupal-org.make`) so that future releases will have that available for use?
17:12frakman1[m] * So, is it possible to include the `smtp` module in this way (`drupal-org.make`) so that future releases will have that available for use?
17:12mstenta[m]That would be possible, technically... but I would rather leave that as a decision for site admins to add themselves - alongside any custom modules etc
17:13mstenta[m](though I'm not opposed to discussing it with the wider community) ;-)
17:13frakman1[m]Ok cool.
17:13mstenta[m]i tend to want to keep dependencies minimal, especially if we aren't using it directly
17:13mstenta[m](sorry for my memory... but was it you that I talked with about setting that module up in the past?)
17:14mstenta[m]if so, you inspired me to write this doc page for farmOS 2.x: docs.farmos.org/hosting/email/
17:14mstenta[m]:-)
17:16frakman1[m] * Thank you for that link. It was exactly what I needed.
17:16frakman1[m](`www.symphonythemes.com/drupal-blog/confi`)
17:17mstenta[m]FYI I just pushed those updates to drupal.org, so a new dev release should be available shortly if you want to update: www.drupal.org/project/farm/releases/7.x
17:17mstenta[m](Just watch the "Last updated" date on that page for it to update to today)
17:18frakman1[m]Yes, that was me. I was wondering about the documentation. I'm glad you eventually wrote it and thank you for sharing the link to it.
17:18mstenta[m]But you could also just leave it as-is and change the notifications to "security updates only" - might not be worth the time to update just for those two modules
17:18mstenta[m]I need to sign off... take care and good luck!
17:20frakman1[m]Thanks. I looked at the documentation page. My only feedback is to add the link that helped me configure and set it up after installting the SMTP module. The link is: www.symphonythemes.com/drupal-blog/confi
17:21frakman1[m]I changed notifications to "security updates only". Thanks
18:10mstenta[m]Good idea frakman1 I'll try to remember to add that
18:10mstenta[m](or feel free to open a pull request if you are familiar with doing that yourself!)
23:27frakman1[m]I know how to make pull requests for code in github but I didn't think the documentation page was code or was on github. Can you point me to the project to fork please?
23:33paul121[m] The 1.x documentation is here: github.com/farmos/farmos.org
23:34paul121[m]and the 2.x docs mstenta shared are being started here: github.com/farmOS/farmOS/tree/2.x/docs
23:38paul121[m]I think that's what you're looking for but let us know if not :-)

< 182021-03-19⋏20 >