| 04:59 | Noaht[m] | Is it possible to add more supported file upload types? I need to upload .asc files, but cant |
| 10:00 | mstenta[m] | Noaht: here is where the list of file types is defined: github.com/farmOS/farmOS/blob/3cebccc2d1 |
| 10:01 | 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 |
| 10:02 | mstenta[m] | Of course, you'll need to maintain that change everytime you update farmOS |
| 10:03 | mstenta[m] | Or, we could consider adding that file type to farmOS via a pull request |
| 10:03 | mstenta[m] | Curious what you use that file type for? |
| 10:04 | 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 |
| 15:00 | 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: api.drupal.org/api/drupal/core%21lib%21D |
| 15:01 | 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 |
| 15:01 | paul121[m] | but agree, it would be nice to expose the "default file extensions" for both the image and file fields |
| 15:56 | lordeddi[m] | hi all,... (full message at libera.ems.host/_matrix/media/r0/downloa) |
| 15:56 | mstenta[m] | farmOS 2.0.0-beta4 has been released! 🎉 github.com/farmOS/farmOS/releases/tag/2. |
| 15:56 | mstenta[m] | ludwa6 including the PR you were waiting for ;-) |
| 15:57 | lordeddi[m] | * hi all,... (full message at libera.ems.host/_matrix/media/r0/downloa) |
| 15:57 | mstenta[m] | lordeddi: what version of farmOS? and do you have any customizations or is it all default install? |
| 15:58 | lordeddi[m] | 2.0.0-beta3, quite a fresh install, no real customizations other than adding some modules from the settings modules list |
| 15:58 | mstenta[m] | lordeddi: i wonder if you can try it with some other locations? |
| 15:58 | mstenta[m] | does the location in question have a geometry? |
| 15:59 | mstenta[m] | `Error: Call to a member function geometryType() on null` suggests an issue with the location geometry perhaps... |
| 15:59 | lordeddi[m] | moving to some locations works, others don't, this is why i also think it is geometry |
| 15:59 | mstenta[m] | ok yea that was going to be my suspicion |
| 15:59 | mstenta[m] | does the geometry of the location (that doesn't work) display properly on maps? |
| 15:59 | lordeddi[m] | i re-created a property and added the geometry from a KML file |
| 15:59 | lordeddi[m] | and it failed again |
| 15:59 | lordeddi[m] | maybe there is an issue using the kml ? |
| 16:00 | mstenta[m] | if you draw the geometry manually does it work? |
| 16:00 | lordeddi[m] | i pasted the kml in the new property, into that text box |
| 16:00 | lordeddi[m] | mstenta[m]: lemme try that quickly |
| 16:00 | mstenta[m] | ooh yes that won't work |
| 16:00 | mstenta[m] | the text box under the map expects WKT, not KML |
| 16:00 | 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 |
| 16:01 | lordeddi[m] | ah, gottit, so i upload a file and do that |
| 16:01 | lordeddi[m] | it did both when creating the asset, as i'm still discovering farmOS |
| 16:01 | lordeddi[m] | thanks for the support ! |
| 16:02 | mstenta[m] | great! sure thing! |
| 16:02 | lordeddi[m] | <mstenta[m]> "farmOS 2.0.0-beta4 has been..." <- this is great news ! |
| 16:02 | mstenta[m] | gotta run - back later... |
| 17:07 | FarmerEd[m] | <mstenta[m]> "farmOS 2.0.0-beta4 has been..." <- Good news, I just updated. |
| 17:07 | 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. |
| 17:07 | FarmerEd[m] | The status report shows Drupal, PHP, Apache and SQL versions but just 2.x for farmOS |
| 17:08 | mstenta[m] | > The status report shows Drupal, PHP, Apache and SQL versions but just 2.x for farmOS |
| 17:08 | mstenta[m] | Oh hmm, if you're using a tagged version it *should* show it in the status report |
| 17:09 | mstenta[m] | the other place to look is in `/api` under `meta.farm` |
| 17:09 | 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` |
| 17:10 | mstenta[m] | but also: are you bind-mounting the whole codebase as a volume? if so, then it will not update automatically |
| 17:12 | FarmerEd[m] | Docker, but I have to build the images from git as Raspberry pi |
| 17:12 | FarmerEd[m] | just sites in bind mount |
| 17:13 | FarmerEd[m] | and some modules |
| 17:13 | mstenta[m] | ah ok - what's your build process? |
| 17:13 | mstenta[m] | i'll show you where the "version" number gets set... |
| 17:13 | mstenta[m] | ultimately it needs to get set here: github.com/farmOS/farmOS/blob/1e56b6f8ae |
| 17:14 | mstenta[m] | and this is where that happens: github.com/farmOS/farmOS/blob/1e56b6f8ae |
| 17:14 | mstenta[m] | it assumes that the `FARMOS_VERSION` environment variable is set via `docker build --build-arg` |
| 17:15 | mstenta[m] | defaults to `2.x` here: github.com/farmOS/farmOS/blob/1e56b6f8ae |
| 17:16 | mstenta[m] | here's where our build script sets that argument: github.com/farmOS/farmOS/blob/1e56b6f8ae |
| 17:16 | mstenta[m] | so you probably just need to do something similar |
| 17:16 | mstenta[m] | `docker build --build-arg FARMOS_REPO=github.com/${FARMOS_REPO} --build-arg FARMOS_VERSION=${FARMOS_VERSION} -t farmos/farmos:2.x docker` |
| 17:16 | mstenta[m] | simplified: |
| 17:16 | mstenta[m] | `docker build --build-arg FARMOS_VERSION=2.0.0-beta4 -t farmos/farmos:2.0.0-beta4 docker` |
| 17:17 | FarmerEd[m] | Ah ok, so I give it the version when building |
| 17:17 | mstenta[m] | yep! |
| 17:17 | mstenta[m] | fyi we are getting closer to building ARM images! www.drupal.org/project/farm/issues/32031 |
| 17:17 | mstenta[m] | i merged two PRs recently that clear the way for it |
| 17:17 | FarmerEd[m] | look forward to it |
| 17:18 | FarmerEd[m] | Although was contemplating the viability of a VPS too. |
| 17:21 | FarmerEd[m] | Cheers Mike, I'll add the above to my notes |
| 17:22 | mstenta[m] | 👍 |
| 17:23 | mstenta[m] | Oh be sure to run update.php and clear caches too! |
| 17:46 | FarmerEd[m] | 😁I did that bit, |
| 17:51 | mstenta[m] | The farmOS monthly call is in 10 minutes - all are welcome! farmos.org/community/monthly-call/ |
| 18:59 | * | uploaded an image: (11KiB) < libera.ems.host/_matrix/media/r0/downloa > |
| 19:12 | paul121[m] | hmm I worry my browser was caching old css when I was testing Gin beta1 |
| 19:12 | paul121[m] | the farmOS logo doesn't look too great: |
| 19:13 | * | uploaded an image: (5KiB) < libera.ems.host/_matrix/media/r0/downloa > |
| 19:13 | * | uploaded an image: (14KiB) < libera.ems.host/_matrix/media/r0/downloa > |
| 19:14 | paul121[m] | if/when you start using farmOS beta4 report back if you see the same :-) |
| 19:41 | mstenta[m] | oh yea i noticed that too! :-( |
| 19:41 | mstenta[m] | i think the CSS needs some tweaking to give it some space |
| 22:31 | 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. |