< 052021-01-06⋎07 >

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
00:50symbioquine[m]farmOS_wfs is mostly up to the same level for 2.x as it was for 1.x - github.com/symbioquine/farmOS_wfs/tree/2
00:51symbioquine[m]I'm now working on making all assets accessible instead of just those with intrinsic geometry.
00:52symbioquine[m]I'll probably try to do a bit more polishing/testing after that so I can make a 2.x-v0.0.1 release :)
00:55paul121[m]hey symbioquine I was going to tell ya, the views_geojson module supports bbox filtering: www.drupal.org/project/views_geojson
00:56paul121[m]but unfortunately it uses a SQL query to do that, so it'll be the same issue with computed fields
00:57paul121[m]it also only checks the `node__{field_name}` table which is annoying
00:57paul121[m]git.drupalcode.org/project/views_geojson
00:57paul121[m]but anyways, might be worth referring to!
00:57symbioquine[m]Yeah, that's pretty similar to what I've got right now... github.com/symbioquine/farmOS_wfs/blob/0
00:58mstenta[m]Awesome symbioquine !
00:58mstenta[m]And yea we should take a look at the query ideas soon
00:58symbioquine[m]Trying to workout a version which works with both the intrinsic and log-based geometries now :)
00:58symbioquine[m]I can see already I'll need to add tests against multiple DB backends just to prove that query works on the popular ones :(
01:00paul121[m]oh yea? does `condition` not always do the same thing?
01:02symbioquine[m]<paul121[m] "oh yea? does `condition` not alw"> The asset query stuff should be very well tested accross different DBMS, but it doesn't support complex joins, subqueries, or window functions so I think I need to use the lower level DB API - and that opens up a whole range of ways it might be DBMS-specific...
01:02paul121[m]ah
01:02symbioquine[m]matrix.to/#/!rxZezKXfxOKJxTgNGs:matrix.o
01:03symbioquine[m]I'd like to do it in a way that allows pagination at the DB layer, which makes the simpler approach of using multiple queries less attractive.
01:04mstenta[m]Perhaps more reason to add a db caching layer that can be queried directly
01:04symbioquine[m]That would also be an option!
05:27symbioquine[m]Is there an easy way to "recursively delete" assets - i.e. delete the referencing logs then delete the asset - either through the JSON:API or Drush?
05:28symbioquine[m]I can obviously query all the logs and do it in my code, but that seems like a pain.
05:29symbioquine[m]In case it's relevant this is for some test cleanup code so it doesn't have to be beautiful/production-ready just succinct and relatively fast.
06:00symbioquine[m]In case anyone's curious, [this](github.com/symbioquine/farmOS_wfs/commit) is what I ended up doing... (Not pretty, but it works. 😑)
11:16mstenta[m]> Is there an easy way to "recursively delete" assets - i.e. delete the referencing logs then delete the asset - either through the JSON:API or Drush?
11:16mstenta[m]we don't have a helper for that, no
11:20*calbasi_matrix has quit (Quit: Bridge terminating on SIGTERM)
11:20*dazinism has quit (Quit: Bridge terminating on SIGTERM)
11:20*JulianF has quit (Quit: Bridge terminating on SIGTERM)
11:20*pllagn[m] has quit (Quit: Bridge terminating on SIGTERM)
11:20*zedrickr11[m] has quit (Quit: Bridge terminating on SIGTERM)
11:20*lauriexwayne[m] has quit (Quit: Bridge terminating on SIGTERM)
11:20*wombat83[m] has quit (Quit: Bridge terminating on SIGTERM)
11:20*jcalonso[m] has quit (Quit: Bridge terminating on SIGTERM)
11:20*generalredneck[m has quit (Quit: Bridge terminating on SIGTERM)
11:20*symbioquine[m] has quit (Quit: Bridge terminating on SIGTERM)
11:20*braught[m] has quit (Quit: Bridge terminating on SIGTERM)
11:20*leogaggl[m] has quit (Quit: Bridge terminating on SIGTERM)
11:20*sydney_zimbotech has quit (Quit: Bridge terminating on SIGTERM)
11:21*kunigunde[m] has quit (Quit: Bridge terminating on SIGTERM)
11:21*paul121[m] has quit (Quit: Bridge terminating on SIGTERM)
11:21*mstenta[m] has quit (Quit: Bridge terminating on SIGTERM)
11:21*jgaehring[m] has quit (Quit: Bridge terminating on SIGTERM)
11:31*dazinism has joined
11:31*calbasi_matrix has joined
12:11*JulianF has joined
12:11*kunigunde[m] has joined
12:11*spitz234[m] has joined
12:11*generalredneck[m has joined
12:11*mstenta[m] has joined
12:11*jgaehring[m] has joined
12:11*braught[m] has joined
12:11*leogaggl[m] has joined
12:11*paul121[m] has joined
12:11*symbioquine[m] has joined
12:11*pllagn[m] has joined
12:11*jcalonso[m] has joined
12:11*wombat83[m] has joined
12:11*sydney_zimbotech has joined
12:11*lauriexwayne[m] has joined
12:11*zedrickr11[m] has joined
14:53mstenta[m]Curious to get thoughts from the community on this: www.drupal.org/project/farm/issues/31911

< 052021-01-06⋏07 >