< 142022-11-15⋎16 >

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
03:26symbioquine[m]Does `/api/asset/animal/resource/relationships/parent/related/schema` work for folks? Mine fails...
03:26*uploaded an image: (349KiB) < libera.ems.host/_matrix/media/v3/downloa >
03:28symbioquine[m]My guess right now is that it's caused by relationships that aren't constrained to a particular asset bundle.
03:29symbioquine[m]It's not blocking me, just curious if it's a known issue. I didn't see one in a quick search of the Drupal core issue queue.
04:31threewordchantfirst rough draft of "deploy farmos using co-op cloud" blog post pad.autonomic.zone/s/uE32aFOcb#
04:32threewordchanti plan to add some screenshots, still mulling a video. in the meantime any feedback welcome, particularly on:
04:32threewordchant- tone
04:32threewordchant * i plan to add some screenshots, still mulling a video. in the meantime any feedback welcome, particularly on:
04:32threewordchant- tone, length, how much background info to give
04:32threewordchant- level of tech knowledge to assume
04:32threewordchant * i plan to add some screenshots, still mulling a video. in the meantime any feedback welcome, particularly on:
04:32threewordchant- tone, length, how much background info to give
04:32threewordchant- level of tech knowledge to assume
06:46*farmBOT has joined
11:29mstenta[m]That's great 3wc ~ they/them!!
11:31mstenta[m]Gave me a better understanding too! 😄
11:31mstenta[m]Some questions/followup thoughts specific to farmOS...
11:32mstenta[m]Is there a way to control the version (Docker image tag)?
11:33mstenta[m]Updates from one version to another require running update.php and cache rebuild, we recommend doing that via Drush but it can usually be done via UI too. So generally speaking version upgrades need to be done intentionally.
11:35mstenta[m]> You can also use abra app downgrade farmos.demo.coopcloud.tech to return to an earlier version in case of problems
11:35mstenta[m]Does this also handle rolling back the database? Drupal doesnt do that automatically, so if this just downgrades the Docker image version, but database updates have occurred with the upgrade, then downgrading code could leave you in a broken state
11:39mstenta[m]> run abra app upgrade farmos.demo.coopcloud.tech to upgrade to the latest version
11:39mstenta[m]I assume this uses the "latest" tag? That should work, but as described above we recommend specifying a specific version so it is intentional and you know which version you were on previously so you cab roll back and restore backup if necessary
11:39mstenta[m]> Your database settings will be:
11:39mstenta[m]Looks like these are using the default dev environment values (all "farm"). Production instance should customize these for security. Is that possible?
11:40mstenta[m]Other than those minor bits this looks really good!
11:41mstenta[m]Not sure if you're planning on posting this to your own blog, but would you be interested in cross-posting it on the farmOS.org blog too? You can set the canonical tag to point to yours
13:49threewordchantawesome thoughts, thank you mstenta!
13:50threewordchant<mstenta[m]> "Is there a way to control the..." <- yes, co-op cloud "recipe" versions are usually pinned to a docker tag. FarmOS is currenty using 2.x but I'll switch it to a specific one
13:54threewordchant<mstenta[m]> "Updates from one version to..." <- oh good call, I'll add the commands to do both to the post
13:55threewordchant> <@mstenta:matrix.org> > You can also use abra app downgrade farmos.demo.coopcloud.tech to return to an earlier version in case of problems
13:55threewordchant>
13:55threewordchant> Does this also handle rolling back the database? Drupal doesnt do that automatically, so if this just downgrades the Docker image version, but database updates have occurred with the upgrade, then downgrading code could leave you in a broken state
13:55threewordchantno, Co-op Cloud doesn't currently automatically roll back the DB - I'll edit the post to recommend making a DB backup, and saying how to restore it after a downgrade.
13:56threewordchant> <@mstenta:matrix.org> > run abra app upgrade farmos.demo.coopcloud.tech to upgrade to the latest version
13:56threewordchant>
13:56threewordchant> I assume this uses the "latest" tag? That should work, but as described above we recommend specifying a specific version so it is intentional and you know which version you were on previously so you cab roll back and restore backup if necessary
13:56threewordchantthere's a guided semi-automatic process to pick up new image tags for a new numbered version, which is driven by `abra recipe upgrade farmos` - but this is done centrally by the "recipe maintainer" to make the new version available to all deployments
13:57threewordchant> <@mstenta:matrix.org> > Your database settings will be:
13:57threewordchant>
13:57threewordchant> Looks like these are using the default dev environment values (all "farm"). Production instance should customize these for security. Is that possible?
13:57threewordchantgood point. I sometimes get a bit lazy about db credentials because the database isn't remote-accessible. but there is a way to have `abra` auto-generate a password and store it as a Docker secret.
13:58threewordchantdo you know if there's a way to prefill the info in the web installer? otherwise i worry it could add a slightly confusing step to add that. but maybe it's still better than using a preset insecure password 🤔
13:58threewordchant<mstenta[m]> "Not sure if you're planning on..." <- i'm easy either way! had sort of been imagining posting it primarily on farmos.org blog if y'all are willing
14:25mstenta[m]> do you know if there's a way to prefill the info in the web installer? otherwise i worry it could add a slightly confusing step to add that. but maybe it's still better than using a preset insecure password 🤔
14:25mstenta[m]Hmm well... it has to be set up in the PostgreSQL container first, which you then reference from the Drupal/farmOS installer...
14:26mstenta[m]But after that, there are two ways to install Drupal/farmOS: 1) via the web UI, 2) via `drush site-install`
14:27mstenta[m]The db credentials can be passed as arguments to that
14:27mstenta[m]www.drush.org/latest/commands/site_insta
14:28mstenta[m]If you use `drush site-install` you also have to specify the installation profile (`farm`) otherwise it will install a standard drupal site
14:28mstenta[m]You can also tell it to enable the default farmOS modules with `farm.modules="default"`
14:29mstenta[m]Example: github.com/farmOS/farmOS/blob/f939c80744
14:29mstenta[m](That line installs "all" modules... just change `all` to `default`)
14:44threewordchantnice, thanks! I'll add that to the recipe too, love a good autoinstall
14:45threewordchant> <@mstenta:matrix.org> > do you know if there's a way to prefill the info in the web installer? otherwise i worry it could add a slightly confusing step to add that. but maybe it's still better than using a preset insecure password 🤔
14:45threewordchant>
14:45threewordchant> Hmm well... it has to be set up in the PostgreSQL container first, which you then reference from the Drupal/farmOS installer...
14:45threewordchantand yes, the postgres image already supports docker secrets so that part's easy
14:50mstenta[m]awesome!
16:44mstenta[m]> Does `/api/asset/animal/resource/relationships/parent/related/schema` work for folks? Mine fails...
16:44mstenta[m]fails on test.farmos.dev too :-(
16:44mstenta[m]symbioquine^
16:48mstenta[m]I imagine it would be an issue with the `json_schema` module, if anything
16:49mstenta[m]Drupal core doesn't provide schema
16:49mstenta[m]Sorry I mean `jsonapi_schema`
16:49mstenta[m]www.drupal.org/project/jsonapi_schema
16:50mstenta[m]Is this it? www.drupal.org/project/jsonapi_schema/is
16:50mstenta[m]Oh I opened that HA
16:50mstenta[m]😂
16:51mstenta[m]AND uploaded a patch
16:51mstenta[m]gifimage.net/wp-content/uploads/2017/11/
16:51symbioquine[m]Cool, I'll have to take a look in a little while... :)
16:52mstenta[m]Oh even better... YOU opened the original issue symbioquine www.drupal.org/project/farm/issues/31899
16:52mstenta[m]lol
16:57paul121[m]I thought that seemed familiar.... 🤣
18:29*farmBOT has joined
19:38paul121[m]I'm eager for a new farmos-map release.... what do ya think mstenta symbioquine ??
19:41paul121[m]also curious if the next release should be 2.1 or 2.0.9... I kinda lean towards 2.1 and doing more minor releases going forward. Going off memory it seems we wouldn't have had many true "patch" releases in the past, I think of this as a release with only bug fixes?
19:41paul121[m]But overall I don't have a strong opinion on this, mostly just want a new release :D
20:06mstenta[m]yea 2.1 sounds good to me!
20:06mstenta[m]if symbioquine is ok with it :-)
20:07mstenta[m]> But overall I don't have a strong opinion on this, mostly just want a new release :D
20:07mstenta[m]same :-)
20:07mstenta[m]i'm hoping to package a new release of farmOS soooon (this week or next)... so let's get a new release included either way
20:30symbioquine[m]<mstenta[m]> "if symbioquine is ok with it :-)" <- I don't feel strongly about it. Go for whatever feels good :)
21:38paul121[m]hmm well I tagged v2.1.0: github.com/farmOS/farmOS-map/releases/ta
21:38paul121[m]but it didn't trigger an action to create the release 🤔
21:43mstenta[m]Huh
21:43mstenta[m]Did Elon Musk buy GitHub too?
21:44symbioquine[m]hah
21:44symbioquine[m]Should just be the steps here: farmos.discourse.group/t/2-x-release-pro
21:44symbioquine[m]From what I can see it looks like you've done it right.
21:45paul121[m]thanks, I just came across the steps... I didn't do an `--atomic` push though?
21:45paul121[m]* push though. Maybe that is the issue?
21:46mstenta[m]Hmm I don't think so
21:48symbioquine[m]Maybe the GH action just hasn't gotten run yet?
21:48mstenta[m]What if you try deleting the tag and pushing again?
21:48mstenta[m]I would expect to see the action queued at least
21:49paul121[m]How do I delete the tag?
21:49symbioquine[m]Yeah, it's interesting that one of the workflows did run: github.com/farmOS/farmOS-map/actions/run
21:49mstenta[m]twitter.com/github_st_test/status/159260
21:49mstenta[m]I think `git push origin :[tag]` will delete the tag from origin, then you can just `git push origin [tag]` again
21:50symbioquine[m]mstenta[m]: Weird, there status page doesn't show anything: www.githubstatus.com/
21:50mstenta[m]yea hmm
21:50paul121[m]okay let me try deleting
21:51paul121[m]seemed to work!
21:51mstenta[m]oh there we go
21:51mstenta[m]huh weird
21:52mstenta[m]¯_(ツ)_/¯
21:52symbioquine[m]Yay
21:52*uploaded an image: (13KiB) < libera.ems.host/_matrix/media/v3/downloa >
21:52mstenta[m] * ¯\_(ツ)_/¯
21:53paul121[m]🎉 github.com/farmOS/farmOS-map/releases/ta
21:53mstenta[m]Sometimes I worry that I'm basing too much of my life on github actions 😬
21:53mstenta[m]Could rebuild on GitLab or something if we had to... but at this point that would be non-trivial
21:54paul121[m]something something don't rely on webhooks 🤣
21:54mstenta[m]lol

< 142022-11-15⋏16 >