IRC logs for #farmOS, 2021-12-21 (GMT)

2021-12-20
2021-12-22
TimeNickMessage
[06:05:10]* oliverp44[m] has joined #farmos
[08:07:51]<mstenta[m]>Hi oliverp44
[08:12:58]* sgoodall has quit (Ping timeout: 260 seconds)
[08:13:01]* sgoodall_ has quit (Ping timeout: 240 seconds)
[08:14:35]* sgoodall has joined #farmos
[08:15:17]* sgoodall_ has joined #farmos
[08:24:31]* sgoodall_ has quit (Ping timeout: 245 seconds)
[08:24:45]* sgoodall has quit (Ping timeout: 250 seconds)
[08:26:18]* sgoodall has joined #farmos
[08:26:33]* sgoodall_ has joined #farmos
[09:30:19]<oliverp44[m]>mstenta: Hi
[09:33:54]<mstenta[m]>So your dashboard map ain't working, eh? :-)
[09:34:01]<oliverp44[m]>pulling my hair out !
[09:34:14]<mstenta[m]>yea! weird
[09:34:19]<mstenta[m]>just to be sure... if you go to /assets/land, do you see them?
[09:34:34]<mstenta[m]>(slightly different than /assets)
[09:34:42]<oliverp44[m]>I am not enormously experienced but I do think I have set up correctly.
[09:35:19]<mstenta[m]>oh and: what version are you using? 2.0.0-alpha5? 2.x? (just released 2.0.0-alpha6 a few moments ago!)
[09:35:21]<oliverp44[m]>The latest thing I did was to install alpha 4 to see if that made any difference but again it shows correctly within my asset land but not on the dashbourd
[09:35:57]<oliverp44[m]>I can try that but as I have tried 4 & 5 do you think that might make a difference ?
[09:36:27]<mstenta[m]>this question might be more important:
[09:36:27]<mstenta[m]>> just to be sure... if you go to /assets/land, do you see them?
[09:36:38]<mstenta[m]>but yes i would definitely recommend using the latest version before you start adding any real data!
[09:37:34]<oliverp44[m]>sure. Yes I can definitely see the three assets I have created. The only difference is that if I go to /assets/land the location column is blank
[09:42:41]<mstenta[m]>ok... so the dashboard and /assets/land share some logic... so if they are BOTH not working, that tells us something
[09:42:54]<mstenta[m]>> The only difference is that if I go to /assets/land the location column is blank
[09:42:54]<mstenta[m]>I'm not sure I understand this... can you elaborate? or post screenshots?
[09:43:13]<oliverp44[m]>certainly - would it make any sense if you logged in ?
[09:43:42]<mstenta[m]>if you don't mind sharing your url and credentials, sure! (please send via a private message, this channel is public)
[09:44:18]<mstenta[m]>or you can create a user for me - i'll send you my email address privately
[09:48:47]<mstenta[m]>oliverp44: Hmm well I see part of the problem...
[09:48:59]<oliverp44[m]>ok ?
[09:49:02]<mstenta[m]>Oh wait... I think I know what's happening
[09:49:42]<mstenta[m]>I think you found a bug! congratulations! :-D
[09:49:52]<mstenta[m]>It is because your farmOS is installed in a subdirectory
[09:50:11]<mstenta[m]>it is trying to load /assets/geojson/full/land - but getting a 404 (those are the GeoJSON data that are used in the dashboard)
[09:50:29]<mstenta[m]>(so farmOS is not properly building the path to those URLs)
[09:50:41]<mstenta[m]>let me take a look - i think i know where the issue might be
[09:51:38]<oliverp44[m]>I guess that is the same reason that if you click on All Locations it wants to go to farm.wrackleford.co.uk/locations which also creates the 404 error
[09:52:14]<mstenta[m]>oh ok yes - where is the "All locations" link you're referring to? i can look into that as well
[09:52:28]<mstenta[m]>farmOS should work in a subdirectory - but we haven't been testing that in 2.x
[09:52:42]<mstenta[m]>so there might be other things like this
[09:53:36]<oliverp44[m]>if you go to https://www.farm.wrackleford.co.uk/farmOS/web/locations and click on All Locations it should take you to the same page but it fails
[09:53:57]<mstenta[m]>ooh yes... thanks
[09:55:34]<mstenta[m]>yes... here is the bug: https://github.com/farmOS/farmOS/blob/059e0af8d978b6dca646be3e1a4e252c75...
[09:55:38]<mstenta[m]>(for the map layers)
[09:55:58]<mstenta[m]>if you want to fix it temporarily for your local use, you can just manually edit that line
[09:56:07]<mstenta[m]>i will make sure this gets fixed before the next release
[09:56:24]<mstenta[m]>but again: i would highly recommend updating to alpha6 before you start using farmOS
[09:57:04]<oliverp44[m]>will do - thank you for your help.
[09:57:33]<oliverp44[m]>One last thing - does the field app work (sorry forgotten its name) with version 2
[09:57:44]<mstenta[m]>and here is the other bug: https://github.com/farmOS/farmOS/blob/059e0af8d978b6dca646be3e1a4e252c75...
[09:57:47]<mstenta[m]>i'll fix both of these
[09:58:04]<mstenta[m]>Field Kit? Nope not for v2 yet... but jgaehring is working hard on it :-)
[09:58:23]<oliverp44[m]>brilliant - thank you for your help
[09:58:43]<mstenta[m]>sure thing! i'll comment on that forum topic so others know this is a subdirectory issue
[09:58:47]<mstenta[m]>thanks for helping to debug!
[11:52:26]* sgoodall has quit (Ping timeout: 245 seconds)
[11:53:26]* sgoodall_ has quit (Ping timeout: 268 seconds)
[11:54:28]* sgoodall has joined #farmos
[11:54:51]* sgoodall_ has joined #farmos
[12:02:47]<symbioquine[m]><mstenta[m]> "and here is the other bug: https..." <- What's the bug?
[12:03:12]<symbioquine[m]>The constructed url should include `window.location.origin + drupalSettings.path.baseUrl`.
[12:03:20]<symbioquine[m]>Shouldn't that work for subdirectory installs too?
[12:04:00]<symbioquine[m]><mstenta[m]> "yes... here is the bug: https..." <- Sorry, meant to reply to this one ^
[12:06:03]<mstenta[m]>oh you're right symbioquine - tbh i only glanced at that line, haven't tested it yet
[12:06:25]<mstenta[m]>i just saw that it starts with `new URL('/assets/geojson/...`
[12:06:47]<symbioquine[m]>Yeah, I find that API a little backwards too :)
[12:08:14]<mstenta[m]>well in either case, i did test on oliverp44's instance directly, and sure enough the paths to layers were 404ing because they were not prefixed with the directory
[12:08:23]<mstenta[m]>so something's wrong
[12:08:27]<symbioquine[m]>Weird
[12:08:38]<symbioquine[m]>Yeah, I haven't tested that case specifically myself.
[12:08:43]<mstenta[m]>me neither
[12:09:04]<mstenta[m]>in the 7.x-1.x lifecycle i remember fixing a lot of little subdir issues like this :-)
[12:09:06]<symbioquine[m]>Maybe something's wrong with how `drupalSettings.path.baseUrl` is getting populated.
[12:09:13]<mstenta[m]>yea maybe
[12:09:41]<mstenta[m]>something feels familiar... like we fixed something similar in 2.x JS somewhere already... but i can't recall
[12:23:54]<mstenta[m]>FYI: https://github.com/farmOS/farmOS.org/issues/12#issuecomment-998959914
[12:24:00]<mstenta[m]>congrats to everyone who made that list! ;-)
[12:24:23]<mstenta[m]>you will be forever enshrined as an "early adopter" of farmOS
[14:30:45]<paul121[m]>symbioquine: I just opened this issue and am curious if it could be expanded to display "contextual information" more generally on asset/log pages. Your ideas for the QR code "linking" of assets to a separate internal/external app comes to mind, curious if that could be another use case.
[14:30:45]<paul121[m]>https://www.drupal.org/project/farm/issues/3255507
[15:37:23]<symbioquine[m]>I'll take a look once I get back to my computer this evening...
[15:38:47]<paul121[m]>no rush!
[16:23:31]* jonasbits has quit (Quit: No Ping reply in 180 seconds.)
[16:25:09]* jonasbits has joined #farmos