| 04:04 | * | mstenta has quit (Quit: WeeChat 4.10.1) |
| 16:00 | mstenta[m] | farmOS dev call is starting now - all are welcome! meet.jit.si/farmos-dev |
| 16:05 | symbioquine[m] | I'm going to miss this one since we're on the road today. See everyone next week hopefully. |
| 17:08 | mstenta[m] | Some great discussion today about initial farmOS experience and ways we might improve... I'll try to summarize some of the ideas that came out... |
| 17:08 | mstenta[m] | Basically boiled down to making things easier for self-hosting... |
| 17:08 | mstenta[m] | Both UX and DX |
| 17:09 | mstenta[m] | On the UX side... when you self-host, you end up as user 1 (Drupal root admin user), which means you see a lot of the Drupal-y admin menu items that a "normal" farmOS user/role never sees. |
| 17:09 | mstenta[m] | That's overwhelming |
| 17:09 | mstenta[m] | We have roles like "Config Admin" and "Manager" that provide the more curated experience, and that's what folks who use Farmier get (they never get user 1) |
| 17:10 | mstenta[m] | Drupal introduced a concept of "access policies" recently, and refactored the user 1 "all permissions" logic into an access policy, which means it is possible to turn that off now. |
| 17:10 | mstenta[m] | So maybe we should consider adding a toggle of some kind... and turn it off by default... so you don't see the full Drupal admin unless you explicitly want to. |
| 17:11 | mstenta[m] | That would also improve out-of-the-box security... less attack surface if a malicious user can't privilege escalate to user 1 |
| 17:11 | mstenta[m] | (not a big concern in local instances behind a VPN, but good on public instances) |
| 17:12 | mstenta[m] | Probably not too hard to explore that one... |
| 17:13 | mstenta[m] | Another idea that came up was a community-maintained "farmOS installer", which basically made the process of downloading farmOS core, modules, setting up your compose.json, running the docker containers, etc - without needing to understand what it's doing |
| 17:13 | mstenta[m] | We have a nice flexible approach right now, and well documented, but it still requires a lot of technical understanding to use successfully... |
| 17:14 | mstenta[m] | There are risks and considerations with something like this, of course... setting up a system is only the first step... maintaining it is the most important part... especially with regular tested backups and a standard update process |
| 17:14 | mstenta[m] | barkerd427 volunteered to take this on! 😄 |
| 17:15 | mstenta[m] | j/k no pressure barkerd427 😜 |
| 17:15 | mstenta[m] | And of course... more farmOS core stuff like quick forms, setup wizard steps, standard reports, etc etc etc... |
| 17:16 | mstenta[m] | Let's do it! Who's going to help? 😁 |
| 17:18 | mstenta[m] | Also had a great discussion around the prevailing "expectations" that people have for software projects... and how they are often higher than is realistic, especially for small, grassroots, under-funded projects like ours |
| 17:19 | mstenta[m] | And some nice compliments about how polished our branding and website is... 😊 |
| 17:19 | mstenta[m] | That's great!! |
| 17:20 | mstenta[m] | But the flip side is... people expect everything to "just work" and be easy... because that's what bigger corporate-funded projects provide... so the expectations are high |
| 17:20 | mstenta[m] | Maybe we need to LOWER expectations on our website! 😅 |
| 17:21 | mstenta[m] | And I don't mean that we need to suggest farmOS isn't high quality... it is! But we need people to know that this is a small grassroots community! Not a project you just take and it solves all your problem. |
| 17:21 | mstenta[m] | Maybe we need a big bold "Join our community and help us build these tools together!" on the homepage, in other words... |
| 17:21 | mstenta[m] | To really emphasize that this is a group effort... |
| 17:23 | fosten[m] | <mstenta[m]> "Another idea that came up was..." <- github.com/Fosten/cookiecutter-farmOS/ |
| 17:24 | mstenta[m] | Yes! (side note fosten you should add that to the new delightful list! farmos.org/community/delightful/) |
| 17:47 | symbioquine[m] | <mstenta[m]> "So maybe we should consider..." <- I'd argue for getting users out of using that admin user as quickly as possible... |
| 17:47 | mstenta[m] | This could be one way of doing that... along with maybe an automated process for creating user 2 with the roles |
| 17:48 | mstenta[m] | That would be more like the Farmier (hosted) experience |
| 17:48 | symbioquine[m] | Maybe with a 2fa "sudo" mechanism so they don't need to manage a separate password. |
| 17:49 | symbioquine[m] | That could also arguably be more auditable than having a shed admin password too. |
| 17:52 | symbioquine[m] | This might provide some leads on implementation options: github.com/cherubimro/drupal-mfa |
| 17:55 | symbioquine[m] | I'm thinking of an option for users with a given role to impersonate the admin user by performing an additional TOTP/WebAuthN check. |
| 17:56 | symbioquine[m] | I believe that would mitigate a lot of privilege escalation risks associated with those users becoming compromised. |
| 18:23 | edbob[m] | I think it might be worth considering moving certain modules into core, to avoid the composer install step for them. (farm_eggs, farm_weather come to mind but there are probably others. maybe the google maps?) Specialized use cases will of course require getting one's hands dirty and figuring out how to do all that, but for the common ones, it seems easy enough to bundle them with default install so user only has to "enable" them. |
| 18:23 | edbob[m] | Everyone will approach this project differently, with different assumptions etc. That can't really be helped, but even if someone already knows Drupal they still have to figure out the data model and how they want to use that in general. So getting them past initial setup and into the meat of their "real" problem can only help (I assume). |
| 18:23 | edbob[m] | TBH though I'm already getting familiar enough, many of the pain points are eroding away for me too, which makes it harder to know/remember what's best for the newcomers. |
| 18:24 | edbob[m] | And thanks mstenta for the discussion today - really did not mean for any of it to sound like complaining ;) |
| 18:24 | mstenta[m] | didn't sounds like complaining at all edbob! great conversation! and great ideas! |
| 18:25 | mstenta[m] | re: community modules... i would push back against merging them into core, BUT i think we could achieve something very similar without doing so... |
| 18:25 | mstenta[m] | i mentioned another idea on the call: a "curated" composer project, which includes a set of community modules |
| 18:26 | edbob[m] | yeah that composer template thing is probably a good enough approach. point just being, don't make the user have to know/understand that first thing |
| 18:26 | mstenta[m] | the default farmOS composer project (github.com/farmOS/composer-project) only include farmOS core |
| 18:26 | mstenta[m] | and we should keep that as-is |
| 18:26 | mstenta[m] | but we could create another one that extends it |
| 18:26 | mstenta[m] | and advertise that on farmOS.org as another option |
| 18:26 | edbob[m] | i'll have another example with my demo soon, although it will be a different curated list than what you'd want probably |
| 18:27 | mstenta[m] | eg: "if you want barebones, use this, if you want curated set of modules, use that" |
| 18:27 | mstenta[m] | the main consideration is maintenance |
| 18:27 | symbioquine[m] | Lots of linux distros have "full" and "minimal" install images. |
| 18:27 | mstenta[m] | that's why we can't pull them into core... then we are responsible for maintaining them... and it puts up another barrier for adding features to them |
| 18:28 | mstenta[m] | but there's also a consideration with the curated set... eg: what happens if someone stops maintaining one of the "curated" modules? |
| 18:28 | mstenta[m] | it turns into a headache that who ever is maintaining the "currated" platform is responsible for, when it comes time to upgrade to a new major version of farmOS/Drupal |
| 18:29 | mstenta[m] | I'm the one taking that burden with the Farmier project |
| 18:29 | mstenta[m] | But to be fair, I maintain most of those modules :-) |
| 18:29 | mstenta[m] | (not saying we shouldn't do a curated set... but it's important to understand the considerations...) |
| 18:30 | mstenta[m] | maybe it would be better for those "curated" sets to just be community-maintained |
| 18:30 | mstenta[m] | and maybe Farmier can just publish the one I'm maintaining |
| 18:31 | mstenta[m] | and add it to farmos.org/community/delightful/ |
| 18:31 | mstenta[m] | and you could publish one too, if you want different modules! |
| 18:31 | mstenta[m] | (and maintain it 😉) |
| 18:31 | mstenta[m] | this could be a good middle ground... because it gives people some options to start... but also illustrates that they can just make their own set if they want to |
| 18:32 | edbob[m] | re: moving some modules to core, i won't push any harder than this, but wanted to make one more point. when someone comes to farmOS and they see the pretty branding and (rightly) assume this is powerful, then are also (rightly?) surprised when they have to navigate the drupal/module ecosystem to get those basic add-ons. ("I have a farm, of course I have eggs to collect." -- Typical Farmer) |
| 18:32 | edbob[m] | but admittedly i don't understand what all goes into the maintenance still. although i suspect it's more about "keeping up with drupal" than anything in farmOS proper which spurs the need for maintenance? |
| 18:32 | mstenta[m] | (my plan all along with Farmier has been to make an automated "export" feature, which would spit out a database snapshot, uploaded files, and a composer.json so you could build it locally. |
| 18:33 | mstenta[m] | yea it's tricky... "Typical Farmer" might be more varied than any one of us can assume... |
| 18:33 | mstenta[m] | and "Typical Farmer" in the United States might be a lot different than in Africa or Europe |
| 18:34 | edbob[m] | ha yeah i know better than to try to pin that down too much. but i would maybe still argue that eggs and weather are nearly universal. from my own background they'd be way more common than soil lab tests ;) |
| 18:34 | mstenta[m] | (agree with your sentiments, though! just playing devils advocate 😄) |
| 18:34 | mstenta[m] | well that's a good point too |
| 18:35 | mstenta[m] | (maybe we should split the lab_test module out to contrib! 😆) |
| 18:35 | mstenta[m] | this actually echoes a long debate in the Drupal community... "big core" vs "small core" |
| 18:35 | mstenta[m] | and ironically also echoes what you said on the dev call today... something about Drupal being "too big"? |
| 18:36 | mstenta[m] | 😅 |
| 18:36 | edbob[m] | ha did i say that out loud |
| 18:36 | mstenta[m] | so yea... always tradeoffs! |
| 18:36 | mstenta[m] | and maybe there's no right answer |
| 18:37 | mstenta[m] | i personally think there are benefits to small core... distributed maintenance... and then focusing on solving the "aggregation" problems that creates |
| 18:37 | mstenta[m] | but no approach is perfect |
| 18:37 | mstenta[m] | (and of course... "small" is relative haha) |
| 18:37 | edbob[m] | Another caveat to basically anything I say: I am not a farmer ;) ..so to me this is mostly a fun project and i don't have money on the line or related stress factors involved |
| 18:38 | mstenta[m] | everything you've expressed thusfar has been true! |
| 18:38 | mstenta[m] | no arguments! :-) |
| 18:38 | mstenta[m] | we've always got more work to do |
| 18:41 | mstenta[m] | symbioquine: maybe we can talk about you access ideas on the next call |
| 18:41 | symbioquine[m] | If we're talking abstract long-term strategy, I'd argue for decoupling the UI from the backend data model... (more than just documenting - e.g. a Python reference implementation) 🤓 |
| 18:43 | symbioquine[m] | (Could be Rust or Go, too. I'm not picky.) |
| 18:45 | edbob[m] | my 2c there is "of course python" :) but that is because i think drupal is a hurdle not only for setup but also attracting devs. i'm very grateful you had an API to work with, otherwise i very possibly would have kept looking for another project. (although i'm not sure there's any other great options..idk really). anyway i think python gives a wide audience, but rust/go presumably less so. AI vibe coders won't care i guess |
| 18:46 | mstenta[m] | that was another big benefit of the 2.x (Drupal 7 -> Drupal 9) upgrade... JSON:API in Drupal core |
| 18:46 | mstenta[m] | and yea... the hope was it would open up the developer pool |
| 18:46 | mstenta[m] | eg: JS client apps |
| 18:47 | mstenta[m] | there has been a good bit of that! but would love to see more! |
| 18:47 | mstenta[m] | my hope was we could eventually start to think about the Drupal farmOS UI as the "database admin" side of things... and most UX would be simple JS client-side UI |
| 18:47 | mstenta[m] | I'm not a JS dev though |
| 18:48 | mstenta[m] | So I build what I need for myself (and others) directly in the UI |
| 18:48 | mstenta[m] | And I think there's still a lot of potential for making that easier... |
| 18:48 | mstenta[m] | Drupal is famous for "site builder" tools that let you build stuff without writing code |
| 18:48 | mstenta[m] | eg: Views |
| 18:49 | mstenta[m] | We took a nice step towards that with "configurable quick forms" but haven't pushed it to its full potential |
| 18:49 | mstenta[m] | There are two ways to do things: 1. build and maintain lots of bespoke single-purpose UIs, 2) build flexible UI-builder tools |
| 18:50 | mstenta[m] | And both are good... 1 for short term, 2 for long term |
| 18:50 | mstenta[m] | (1 can also be long term) |
| 18:51 | mstenta[m] | Also always need to highlight: farmOS (in its current state) is mainly a platform moreso than a product |
| 18:52 | mstenta[m] | That's been the focus of most of my efforts... with UIs built for my own needs and the needs of others I work with on top of that platform |
| 18:52 | mstenta[m] | We need more builders! 😄 |
| 18:53 | mstenta[m] | Making it easier to self-host, improving the onboading process, all these things are important! But we also need to be building the actual tools people need once they're in |
| 18:53 | mstenta[m] | That's the harder work, arguably |
| 18:54 | mstenta[m] | (sorry for the long text - feeling opinions today haha) |
| 18:55 | edbob[m] | yeah i haven't dug into any of that form/view builder stuff yet, so can't say much on how easy/hard it is. (too many other hurdles on the way to getting there..) |
| 18:55 | edbob[m] | in fact i haven't used any such "builder" that i recall, anywhere? i'd say i'm suspicious of them only in that i prefer to have code to commit once i've built something. so am not a fan of "no code" solutions per se. but definitely do think that basically every install would *want* custom forms at some point.. |
| 18:57 | mstenta[m] | i'm with you on that edbob - I prefer code-first |
| 18:57 | mstenta[m] | the nice thing about Drupal's config system is: you can export everything you do in the UI to YML :-) |
| 18:57 | mstenta[m] | and commit that to your repo, push it to production, and sync it there |
| 18:58 | mstenta[m] | so it's empowering to non-coders in that way |
| 18:58 | mstenta[m] | try turning on the Field UI module and add some fields to an asset/log type |
| 18:58 | mstenta[m] | or the Views UI module and build a custom page that renders a list of assets/logs |
| 19:00 | mstenta[m] | Drupal's had a unique history in that way... people built a lot of these UI tools in the early days, to make it easier to build things without code... but it was just saved to the database... so then they standardized it into "configuration entities" that can be managed as YML |
| 19:00 | mstenta[m] | a bit backwards, but in the end it's awesome! because you can approach it from either side, depending on your skill set |
| 19:01 | edbob[m] | well that does sound intriguing. i'm not looking for reasons to like drupal but there are pleasant surprises along the way ;) |
| 19:01 | edbob[m] | i'll have to note this for now though, will try later |
| 19:01 | mstenta[m] | we don't really emphasize these tools to farmOS users (because "with great power comes great responsibility") but they are there for power users to take advantage of... for free (we don't maintain any of that code) |