IRC logs for #farmOS, 2022-04-13 (GMT)

2022-04-12
2022-04-14
TimeNickMessage
[00:59:11]<Noaht[m]>Is it possible to add more supported file upload types? I need to upload .asc files, but cant
[06:00:58]<mstenta[m]>Noaht: here is where the list of file types is defined: https://github.com/farmOS/farmOS/blob/3cebccc2d19a6874d3194bad1b9eadad2f...
[06:01:58]<mstenta[m]>If you have the `farm_update` module installed (it is by default) , edit that line, and clear cache, it should update all the fields on all entity types
[06:02:43]<mstenta[m]>Of course, you'll need to maintain that change everytime you update farmOS
[06:03:16]<mstenta[m]>Or, we could consider adding that file type to farmOS via a pull request
[06:03:25]<mstenta[m]>Curious what you use that file type for?
[06:04:19]<mstenta[m]>Another idea (if this is something we end up running into often): perhaps we should add a hook so that other modules can extend the core list of file types
[11:00:40]<paul121[m]>Noaht: I think you could also use `hook_entity_field_storage_info_alter()` to change the `file_extension` settings for either of the file or image fields: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21...
[11:01:30]<paul121[m]>this would also allow you to change on a per-bundle level - for example, only the `file` field on obersvation logs could allow `.asc` files
[11:01:53]<paul121[m]>but agree, it would be nice to expose the "default file extensions" for both the image and file fields
[11:56:36]<lordeddi[m]>hi all,... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/f421c99c94...)
[11:56:37]<mstenta[m]>farmOS 2.0.0-beta4 has been released! 🎉 https://github.com/farmOS/farmOS/releases/tag/2.0.0-beta4
[11:56:58]<mstenta[m]>ludwa6 including the PR you were waiting for ;-)
[11:57:26]<lordeddi[m]> * hi all,... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/641be9eaeb...)
[11:57:36]<mstenta[m]>lordeddi: what version of farmOS? and do you have any customizations or is it all default install?
[11:58:23]<lordeddi[m]>2.0.0-beta3, quite a fresh install, no real customizations other than adding some modules from the settings modules list
[11:58:42]<mstenta[m]>lordeddi: i wonder if you can try it with some other locations?
[11:58:48]<mstenta[m]>does the location in question have a geometry?
[11:59:08]<mstenta[m]>`Error: Call to a member function geometryType() on null` suggests an issue with the location geometry perhaps...
[11:59:19]<lordeddi[m]>moving to some locations works, others don't, this is why i also think it is geometry
[11:59:29]<mstenta[m]>ok yea that was going to be my suspicion
[11:59:41]<mstenta[m]>does the geometry of the location (that doesn't work) display properly on maps?
[11:59:44]<lordeddi[m]>i re-created a property and added the geometry from a KML file
[11:59:44]<lordeddi[m]>and it failed again
[11:59:52]<lordeddi[m]>maybe there is an issue using the kml ?
[12:00:04]<mstenta[m]>if you draw the geometry manually does it work?
[12:00:17]<lordeddi[m]>i pasted the kml in the new property, into that text box
[12:00:18]<lordeddi[m]>mstenta[m]: lemme try that quickly
[12:00:23]<mstenta[m]>ooh yes that won't work
[12:00:40]<mstenta[m]>the text box under the map expects WKT, not KML
[12:00:57]<mstenta[m]>if you want to import KML you can upload a KML file to the asset's "Files" field, and them click the button under the map to import from it
[12:01:12]<lordeddi[m]>ah, gottit, so i upload a file and do that
[12:01:50]<lordeddi[m]>it did both when creating the asset, as i'm still discovering farmOS
[12:01:59]<lordeddi[m]>thanks for the support !
[12:02:14]<mstenta[m]>great! sure thing!
[12:02:19]<lordeddi[m]><mstenta[m]> "farmOS 2.0.0-beta4 has been..." <- this is great news !
[12:02:20]<mstenta[m]>gotta run - back later...
[13:07:04]<FarmerEd[m]><mstenta[m]> "farmOS 2.0.0-beta4 has been..." <- Good news, I just updated.
[13:07:04]<FarmerEd[m]>Is there somewhere to confirm the installed version? I know I'm on a new release as I see some minor UI changes but for future reference.
[13:07:04]<FarmerEd[m]>The status report shows Drupal, PHP, Apache and SQL versions but just 2.x for farmOS
[13:08:31]<mstenta[m]>> The status report shows Drupal, PHP, Apache and SQL versions but just 2.x for farmOS
[13:08:31]<mstenta[m]>Oh hmm, if you're using a tagged version it *should* show it in the status report
[13:09:12]<mstenta[m]>the other place to look is in `/api` under `meta.farm`
[13:09:48]<mstenta[m]>but that will probably show the same thing... so i wonder: how did you update? you're using docker? are you using the tagged docker image? `farmos/farmos:2.0.0-beta4`
[13:10:14]<mstenta[m]>but also: are you bind-mounting the whole codebase as a volume? if so, then it will not update automatically
[13:12:02]<FarmerEd[m]>Docker, but I have to build the images from git as Raspberry pi
[13:12:30]<FarmerEd[m]>just sites in bind mount
[13:13:01]<FarmerEd[m]>and some modules
[13:13:05]<mstenta[m]>ah ok - what's your build process?
[13:13:25]<mstenta[m]>i'll show you where the "version" number gets set...
[13:13:50]<mstenta[m]>ultimately it needs to get set here: https://github.com/farmOS/farmOS/blob/1e56b6f8ae4bc2b7b4ead9620d62f4ee55...
[13:14:16]<mstenta[m]>and this is where that happens: https://github.com/farmOS/farmOS/blob/1e56b6f8ae4bc2b7b4ead9620d62f4ee55...
[13:14:53]<mstenta[m]>it assumes that the `FARMOS_VERSION` environment variable is set via `docker build --build-arg`
[13:15:28]<mstenta[m]>defaults to `2.x` here: https://github.com/farmOS/farmOS/blob/1e56b6f8ae4bc2b7b4ead9620d62f4ee55...
[13:16:04]<mstenta[m]>here's where our build script sets that argument: https://github.com/farmOS/farmOS/blob/1e56b6f8ae4bc2b7b4ead9620d62f4ee55...
[13:16:21]<mstenta[m]>so you probably just need to do something similar
[13:16:26]<mstenta[m]>`docker build --build-arg FARMOS_REPO=https://github.com/${FARMOS_REPO} --build-arg FARMOS_VERSION=${FARMOS_VERSION} -t farmos/farmos:2.x docker`
[13:16:58]<mstenta[m]>simplified:
[13:16:58]<mstenta[m]>`docker build --build-arg FARMOS_VERSION=2.0.0-beta4 -t farmos/farmos:2.0.0-beta4 docker`
[13:17:14]<FarmerEd[m]>Ah ok, so I give it the version when building
[13:17:20]<mstenta[m]>yep!
[13:17:42]<mstenta[m]>fyi we are getting closer to building ARM images! https://www.drupal.org/project/farm/issues/3203129
[13:17:49]<mstenta[m]>i merged two PRs recently that clear the way for it
[13:17:52]<FarmerEd[m]>look forward to it
[13:18:42]<FarmerEd[m]>Although was contemplating the viability of a VPS too.
[13:21:08]<FarmerEd[m]>Cheers Mike, I'll add the above to my notes
[13:22:40]<mstenta[m]>👍
[13:23:00]<mstenta[m]>Oh be sure to run update.php and clear caches too!
[13:46:27]<FarmerEd[m]>😁I did that bit,
[13:51:17]<mstenta[m]>The farmOS monthly call is in 10 minutes - all are welcome! https://farmos.org/community/monthly-call/
[14:59:33]<symbioquine[m]>ACTION uploaded an image: (11KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/XvldKdBhyFa... >
[15:12:38]<paul121[m]>hmm I worry my browser was caching old css when I was testing Gin beta1
[15:12:43]<paul121[m]>the farmOS logo doesn't look too great:
[15:13:00]<paul121[m]>ACTION uploaded an image: (5KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/OrQZTsiRbVA... >
[15:13:00]<paul121[m]>ACTION uploaded an image: (14KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/zCjpidnHgCS... >
[15:14:30]<paul121[m]>if/when you start using farmOS beta4 report back if you see the same :-)
[15:41:44]<mstenta[m]>oh yea i noticed that too! :-(
[15:41:55]<mstenta[m]>i think the CSS needs some tweaking to give it some space
[18:31:58]<Noaht[m]><mstenta[m]> "Curious what you use that file..." <- It's just some old point cloud yield data that should really be formatted as a tif, but for whatever reason it wasn't. I spent some time trying to convert it to .tif, but kept running into problem after problem with losing pieces of the data during conversion.