< 172021-06-18⋎19 >

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
04:50*ahmetartu[m] has joined
05:07*ahmetartu[m] is now known as ahmetartu[m]
14:36symbioquine[m]<mstenta[m] "so for contrib modules that need"> As a module vendor, that would be a non-starter IMHO. As far as I'm concerned, modules should take at most two steps to install; 1) `composer require x/z` 2) `drush en z` (Plus possible subsequent UI configuration away from sensible/functional defaults.)
14:36mstenta[m]i agree
14:37mstenta[m]but if you're including a library now it will already require three steps
14:37mstenta[m](i think?)
14:37symbioquine[m]Not necessarily...
14:37mstenta[m](unless of course you package the library itself in your module directly)
14:38symbioquine[m]github.com/symbioquine/farmOS_vue_page_d
14:39mstenta[m]true... so in that case you're bundling the JS dependencies in your packaged JS
14:39symbioquine[m]yep
14:39mstenta[m]and maybe for contrib that's just the best way to go
14:39mstenta[m]I think paul121 's point about adding additional libs for use in core is still a good consideration... eg: a charting library
14:39symbioquine[m]It seems like it - then you can use Webpack to minimize/tree-shake/etc
14:40mstenta[m]unless of course we decide to adopt a webpack step in our own build/packaging process...
14:40symbioquine[m]With Drupal's per-page aggregation, I don't think clients would get caching benefits from having the library's JS as a stand-alone file.
14:41symbioquine[m]So the main benefit I think I see is that the library would be versioned directly in the composer.json file...
14:42symbioquine[m]but, my understanding is that Composer isn't (and shouldn't be) a full-featured JS dependency manager, so things like managing locks on transitive JS dependencies will be harder.
14:42mstenta[m]right
14:42mstenta[m]> unless of course we decide to adopt a webpack step in our own build/packaging process...
14:42mstenta[m]paul121 maybe we should consider this again...
14:43mstenta[m]i think the main reason against it is supporting shared hosting environments that can't run npm
14:43mstenta[m]but... if we ran it as part of our packaging script then it would be built into our tarballs
14:43mstenta[m]which means shared hosting could at least use the tagged releases
14:43mstenta[m]if you were hosting a non-tagged release, you would have to install npm perhaps
14:44mstenta[m](we should create a dedicated issue for this - i am probably forgetting some other considerations)
14:45symbioquine[m]<mstenta[m] "but... if we ran it as part of o"> Or publish an NPM package that models the library dependencies and copies built versions into its "dist/" directory, then use Composer to include *that* package.
14:46symbioquine[m]Named something like `farmos.org/farmos-core-js-deps`
14:46mstenta[m]hmm
14:46mstenta[m]that's an interesting idea
14:48symbioquine[m]Or maybe `farmos.org/farmos-core-js` if it includes any first-party built code...
14:52symbioquine[m]<symbioquine[m] "Either of 8 or 9 am PST sound go"> This is probably my fault for leaving it at "either A or B" :) paul121 `et al` Do you want to meet in 10 minutes or in 70 minutes? meet.jit.si/farmos-dev?
14:53mstenta[m]ah i'll have to miss it :-( let me know how it goes! :-)
14:53mstenta[m]gotta run... let's make an issue to think about the JS stuff soon!
14:54paul121[m]Could we do 70 min?
14:54symbioquine[m]Sounds good
19:08skipper_is[m]Quick function question. We've got the farm_log_create() function, but that doesn't take an area arguement, is there a similar log creation function that we can pass area to? Or do we need to use a log_wrapper and pass area to that?
19:09skipper_is[m]There is the farm_movement_log() but that's for moving assets...
19:34*farmBOT has joined
19:45mstenta[m]skipper_is you could just add the area reference after calling that function and then save the log
19:45mstenta[m]We might actually do that in a quick form already I can't remember
19:45skipper_is[m]Yea, that's what I've done with the log_wrapper function
19:45skipper_is[m]$log_wrapper->field_farm_area[]=$area;
19:45skipper_is[m]entity metadata wrapper even
19:46mstenta[m]Fwiw we might not have the same helper functions in 2.x and just use the lower level stuff everywhere
19:46mstenta[m]The helper functions are nice but as you can see they are limited in their usefulness :-)
19:47mstenta[m]Plus the entity system is just all around better in drupal 9
19:47mstenta[m]It's basically all like the D7 wrapper stuff
19:47skipper_is[m]I'm not sure whether we'll be making the switch to 2.x though, as there have been comments on the complexity of it compared to the 1.x. I thought 1.x was quite complex, but I guess it's around what you're used to
19:49skipper_is[m]Most of the team just use the quick forms for everything
19:49mstenta[m]If 1.x is working for you then stick with that! Certainly no rush to switch :-)
19:49skipper_is[m]There are like 2 of us who use the other bits..
19:50mstenta[m]Definitely the more custom stuff you build the more work it will be of course
19:50skipper_is[m]I'll have to look at the custom modules and stuff for 2.x and see if I can get some simplified processes for the team in there
19:50mstenta[m]And fwiw Drupal 7 will no longer be supported in 2022, although for an intranet site like farmOS you can just put it behind a firewall and it doesn't really matter
19:51mstenta[m](more of an issue for drupal based websites that are public facing)
19:52skipper_is[m]Ouch, fair enough
19:52skipper_is[m]Is there quick form functionality coming to 2.x?
19:52mstenta[m]There will be... That's one of the next things we'll be porting
19:53skipper_is[m]Ah ok, cool. I'll have a look at doing a 2.x version of some of my quick forms and see if the team manage with them
19:54mstenta[m]And yea I agree the 1.x -> 2.x is a big jump, because the same is true of D7->D8/9... But moving forward major drupal upgrades will never be as bad as this one (at least that's what they say) :-)
19:55skipper_is[m]Yea, it's a very different layout and way to interact
19:56mstenta[m]The main menu is one of the biggest UX changes .. but actually there is a setting to make it a top menu like the old one .. might try that!
19:56skipper_is[m]aah
19:58skipper_is[m]I'm not sure whether it's my monitor being an issue, but everything seems really big as well, like button wise
19:58mstenta[m]Mm yea I can understand that
19:59mstenta[m]Maybe Ctrl - ?
20:00skipper_is[m]Zoom is at 100%
20:00mstenta[m](or maybe you could make a farmOS 2.x Bootstrap theme using www.drupal.org/project/bootstrap) :-D
20:00mstenta[m]Maybe better at 90%?
20:01mstenta[m]Tbh I always zoom my 1.x to 120% 😂
20:05mstenta[m]We chose to use this as our base theme in 2.x: www.drupal.org/project/gin
20:05mstenta[m]But it's possible to change the theme that your instance uses if you want to experiment with others
20:06mstenta[m]All theme tweaks that are specific to Gin are in this module: github.com/farmOS/farmOS/tree/2.x/module
20:07mstenta[m]So if you try another theme you should disable that I think
20:07mstenta[m]1.x used Bootstrap as a base theme
20:22paul121[m]the latest release of Gin makes the menu a bit smaller!
20:24paul121[m]there were a couple bugs before they tagged a release but we should try it again
20:25skipper_is[m]I'll do some more testing with the team, it's early days

< 172021-06-18⋏19 >