< 312024-08-01⋎02 >

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
15:58mstenta[m]farmOS weekly dev call starting soon - all are welcome! meet.jit.si/farmos-dev
17:08paul121[m]thx for reviewing timeline stuff mstenta symbioquine !
17:09paul121[m]I want to ping the maintainer and see if they can get a new release so we can clean up at least one of those things...
17:09symbioquine[m]The minimal NGINX config that sets the headers correctly is pretty small - wouldn't be surprising if you have it set mstenta;... (full message at <matrix.org/_matrix/media/v3/download/mat>)
17:10symbioquine[m](I recommend also applying this strategy to make it a bit more reliable: sandro-keil.de/blog/let-nginx-start-if-u)
17:10paul121[m]Briefly mentioned, but very curious in having a much more abstracted API for logs and handling their popups... eg timeline.addLog. Maybe noodle on it and we revisit later :-)
17:10mstenta[m]symbioquine: Yes - looking at it now, I do have that
17:10mstenta[m]So I'll have to retest to see what went wrong earlier for me with http
17:12mstenta[m]symbioquine: Oh! I have that on my list for Farmier hosting to look into (using `set $upstream`)
17:12mstenta[m]thanks for the link
17:12mstenta[m]i've run into that issue before
17:13paul121[m]DDEV configures https locally for me. I'm curious how hard it would be to make a local instance under a subpath to test this all
17:13symbioquine[m]So my actual configuration for each service is more like this;... (full message at <matrix.org/_matrix/media/v3/download/mat>)
17:13mstenta[m]Oh that would be great to have automated tests for
17:14mstenta[m]Might be tricky to test everything though, because a lot of it is client side testing I think
17:14symbioquine[m]paul121[m]: github.com/symbioquine/farm-faux-cloud hosts instances under subpaths
17:14mstenta[m](juts based on my experience with bugs related to subdirectory installations)
17:14symbioquine[m]I've been building some tests on top of that.
17:15mstenta[m](they aren't caught by our current kernel/functional tests i don't think, in other words)
17:16symbioquine[m]github.com/symbioquine/farmOS_asset_link
17:17symbioquine[m]symbioquine[m]: TL;DR; I'm testing that JSON:API works correctly against those ephemeral farmOS instances (which requires that - at least for JSON:API - the generated paths are correct with subdirectory installations)
17:20mstenta[m]Yea a lot of the bugs I've fixed (in the past) with regard to subdirectory installations have been issues with custom JavaScript code that wasn't properly using Drupal's base path, and was hard coded to assume a non-subdirectory install
17:21mstenta[m]And we don't have a lot of test coverage for JS in farmOS right now
17:21mstenta[m](if any?)
17:25symbioquine[m]mstenta[m]: I haven't tried spinning up farm-faux-cloud as part of a GH action, but it should be possible.
17:26mstenta[m]Ah yea! Should be
17:26mstenta[m]And technically it is possible to test some client side stuff via PHP (BrowserTestBase)
17:27paul121[m]So it sounds like we should be pretty safe using non-absolute URLs when rendered server side using methods like Url::fromRoute(...)?
17:40paul121[m]I was curious what happens when you render a relative path in text, like for a status message and want to "copy" the link. A relative link wouldn't be too useful. But looks like the browser expands it to be an absolute link which makes sense :-)
17:45mstenta[m]paul121: I think that's correct (re: server side URLs)
17:45mstenta[m]Ah yea... makes sense that browsers expand it too
18:13mstenta[m]@room Anyone want to provide one more approval for github.com/farmOS/farmOS-community-blog/ so we can publish it? 😁
18:34mstenta[m]paul121: FYI now that other issues are resolved, I'm not seeing the `http` vs `https` issue I saw earlier, so `setAbsolute()` seems to be working fine after all
19:58symbioquine[m]In this context I can't really think of an argument for doing it one way or the other except that `setAbsolute` makes the code (and payload) slightly larger.
20:40paul121[m]Yeah, I think I'm convinced it isn't necessary!

< 312024-08-01⋏02 >