< 022021-05-03⋎04 >

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
16:36*botlfarm[m] has joined
16:44botlfarm[m]Hey all, Im having an issue with map areas displaying on the dashboard the /areas page. I recently updated a few of my existing areas. I changed some geometries and changed some area types. I also created some new areas. The areas all display fine when looking at a single area (/farm/area/corral), but the map on the dashboard and on the areas page change almost every tie i refresh a page. Sometimes it will sho me no
16:44botlfarm[m]areas at all and be zoomed out to earth level. some times it shows me only 1 area. some times only a small handful of areas. I have not been able to find a pattern to what areas it will display.
16:45mstenta[m]Hey Nick! Huh that sounds strange
16:45mstenta[m]I'm feeding the kids lunch right now, but quick thing to try:
16:46mstenta[m]Open your browser dev tools and go to the network tab, then refresh
16:46mstenta[m]There should be a request for each area type
16:46mstenta[m]Check to see if there are any errors, or if maybe some are taking a long time to load...
16:47mstenta[m]The separate requests each load the GoeJSON for areas of that type fyi
16:48botlfarm[m]ah, yes im getting a "Insufficient Storage" error
16:49mstenta[m]Oh huh. Never saw that before. Is that server side or client side I wonder
16:49botlfarm[m]"The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request. There is insufficient free space left in your storage allocation.
16:49botlfarm[m]Additionally, a 507 Insufficient Storage error was encountered while trying to use an ErrorDocument to handle the request."
16:51mstenta[m]Oh wow
16:51mstenta[m]Sounds like the server doesn't have enough disk space?
16:52symbioquine[m]Could it be on the browser side?
16:52symbioquine[m]i.e. local storage
16:52symbioquine[m]oh, nvm
16:53botlfarm[m]Yeah, that is what is sounds like, yet im showing only a 4% utilization of my server disk space. Maybe I need o to call my host.
16:55mstenta[m]Huh yea that's weird
16:57mstenta[m]I wonder if it could actually be related to the size of the response
16:58mstenta[m]Or maybe not... Sounds like it could be a few different things
16:59mstenta[m]Couldn't find anything Drupal specific but this describes the issue in Wordpress: bobcares.com/blog/507-insufficient-stora
16:59mstenta[m]Were any of the new areas you added particularly big or complicated?
17:00mstenta[m]If not, I'd probably contact your host
17:00symbioquine[m]<mstenta[m] "Were any of the new areas you ad"> or maybe a lot of small ones
17:01botlfarm[m]not really. I added about 10 areas total. each abtou 1/2 acre in size with a 6 sided polygon at most.
17:02botlfarm[m]I did have a few windows open at once with farmos editing in multiple locations at once. just was easier for me getting the correct info.
17:09mstenta[m]Hmm yea that should all be fine
17:26symbioquine[m]What's the recommended pattern for a contrib module in 2.x to pull in JS resources which need a build step? [farm_map does this](github.com/farmOS/farmOS/blob/83fe014b24), but that only works because it's a core module and [depends on hard-coded configuration in the top-level composer.json
17:26symbioquine[m]file](github.com/farmOS/composer-project/blob/)...
17:27symbioquine[m]I don't see a way for a contrib module to get it's assets into the `/web/libraries/` directory without either changing that top-level composer.json file or writing an install step to manually copy them there.
17:28mstenta[m]That's a tricky question symbioquine
17:28mstenta[m]Because there isn't a JS build step to Drupal deployment typically
17:28mstenta[m]There are lots of ways to do it, each with costs and benefits
17:28symbioquine[m]Oh, I'm hoping the build step will be done already - as part of publishing to NPM
17:29symbioquine[m]That ensures no NPM/node.js requirements for the server running the module afaik
17:30mstenta[m]It's most complicated for farmOS core... Because we need to support various deployment strategies
17:30mstenta[m]But for a custom module, one simple thing would be to just commit the built JS file directly to the repo
17:31mstenta[m]Or: use GitHub actions to package a release, which includes a build step
17:31symbioquine[m]Yeah, that was starting to look like the only option...
17:31mstenta[m]But in either case you end up with the pre built JS in the module itself
17:32mstenta[m]Another option is to include it via NPM using asset-packagist in your project composer.json, similar to farmOS-map
17:33symbioquine[m]<mstenta[m] "Another option is to include it "> But then folks couldn't just install the contrib module, there'd be extra steps first right?
17:33symbioquine[m]i.e. adding a repository or install path to the top-level composer.json
17:34mstenta[m]That's right
17:34mstenta[m]Works for custom deployments
17:34mstenta[m]But for contrib modules: yea best to just package the built JS
17:35symbioquine[m]Bummer
17:35mstenta[m](FWIW I still question whether or not we should package built JS of farmOS-map)
17:35symbioquine[m]oh?
17:35mstenta[m]Rather than use asset-packagist
17:35symbioquine[m]ah
17:36symbioquine[m]Yeah, I see.
17:36mstenta[m]Lots of considerations to balance :-/
17:36symbioquine[m]But there'd need to be a layer around it right?
17:39symbioquine[m]It seems nice to keep the farmOS-map package agnostic to Drupal concerns.
17:39symbioquine[m]A second package could wrap the farmOS-map artifacts up in the right format to be installable as a Drupal module.
17:44paul121[m]not sure what layer would be needed? are you thinking the js/css folder structure?
17:45symbioquine[m]Yeah, and it would probably be better to define the farmOS-map `libraries.yml` there.
17:56paul121[m]hmm. tricky because `libraries.yml` has other Drupal specific stuff too :-/
17:58symbioquine[m]What do you mean?
17:58paul121[m]the Drupal specific map behavior JS is defined in there too
17:59symbioquine[m]Oh, yeah the parts that are specific to loading `js/farmOS.map.behaviors.wkt.js` et al would stay where they are
18:00symbioquine[m]I was just talking about pulling [this part](github.com/farmOS/farmOS/blob/83fe014b24) into the separate package
18:01paul121[m]ah yeah
18:28*shane_aldrich[m] has joined
19:53*Kingdutch has quit (*.net *.split)
19:55*Kingdutch has joined

< 022021-05-03⋏04 >