IRC logs for #farmOS, 2021-11-04 (GMT)

2021-11-03
2021-11-05
TimeNickMessage
[11:59:44]<paul121[m]>https://www.lullabot.com/articles/drupals-bundle-classes-empower-better-...
[13:30:19]<ludwa6[m]>can anyone tell me how one can discover the version of a farmOS 2.x instance via the UI?
[13:30:19]<paul121[m]>good question, I'm not sure we have that displayed anywhere for non-admin users
[13:30:20]<jgaehring[m]>I use the version number directly from package.json in the UI for Field Kit, makes this kind of update automatic w/o any automation. Can something similar be done with farmOS?
[13:30:20]<paul121[m]>in the API it should be available at `/api` in the `meta.farm.version`
[13:30:20]<paul121[m]>but until we have a stable release this will likely show `2.x-dev`
[13:30:20]<paul121[m]>(good reminder to make sure we update this value when tagging releases)
[13:30:20]<ludwa6[m]><paul121[m]> "but until we have a stable..." <- yep - meta.farm version just sez "2.x"
[13:30:20]<jgaehring[m]>https://github.com/farmOS/farmOS-client/blob/develop/src/core/App.vue#L137
[13:35:43]<paul121[m]><jgaehring[m]> "I use the version number..." <- yep! we're doing the same, but we haven't been updating the version number with the alpha tagged releases..
[13:35:43]<paul121[m]>comes from here: https://github.com/farmOS/farmOS/blob/522dbbd29fb3299f56af071387325b7c18...
[13:37:09]<paul121[m]>I'm curious if this should be changed to match each tag, like `2.0-beta`, and then go back to `2.x` when back in development
[13:37:44]<paul121[m]>I think the 1.x releases had something like that.. not sure if there is a better way around that. I imagine there's a name for this
[14:23:50]<jgaehring[m]>Yea, I've been tagging with 2.0.0-alpha.1 etc
[14:39:06]<ludwa6[m]><jgaehring[m]> "Yea, I've been tagging with 2.0...." <- Would love to see version ID coded just like that, accessible via UI
[14:47:29]<paul121[m]><ludwa6[m]> "Would love to see version ID..." <- is there any particular place you would like to see this?
[14:47:42]<paul121[m]>my first idea is at `/farm/settings`
[14:48:08]<paul121[m]>we display configurable "farm info" options (change the site name, timezone, etc).
[14:48:19]<paul121[m]>the version could be displayed here
[14:48:46]<paul121[m]>but not ideal since the version isn't a "setting" itself :-)
[14:56:22]<ludwa6[m]><paul121[m]> "is there any particular place..." <- First place i went to look for it was the gear icon in main menu, i.e. https://vdl.farmos.dev/admin
[14:58:18]<paul121[m]>looks like the profile version is already visible the admin "status report" - but the thing is non-admin users can't see this
[14:58:32]<paul121[m]>ACTION uploaded an image: (26KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/aHTqkfFIjak... >
[15:01:02]<ludwa6[m]>paul121[m]: Hm... Guess this means i'm not an admin, tho i have both "Manager" and "Farmier Account Admin" roles in my instance.
[15:02:33]<ludwa6[m]>Anyway: i think anyone who clicks on that gear icon in main menu can be shown the version number right on top of that ../admin page