< 202021-12-21⋎22 >

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

< 202021-12-21⋏22 >