< 052016-10-06⋎07 >

farmOS (farmos.org) is a free open source, web-based farm management system, built on Drupal.Set by mstenta on 2016-07-29 at 15:37
01:40*JustTB1 has joined
01:42*JustTB has quit (Ping timeout: 244 seconds)
03:57*kadaan has joined
04:26*kadaan is now known as kadaan
04:26*kadaan_ is now known as kadaan_
05:05*kadaan has quit (Ping timeout: 256 seconds)
05:06*kadaan has joined
08:14*kadaan has quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10:50*M-DzzzzzzR has quit (Remote host closed the connection)
11:04*M-DzzzzzzR has joined
14:04*Kadaan_ has joined
14:12*mstenta has joined
14:12Kadaan_mstenta: Played around for a while last night with getting farmOS setup and making the drop down change. If you have some time, I'd love a quick walk through on farmOS setup, architecture, drupal, etc. My normal googling/hacking resulted in some progress, but my familiarity with drupal docs is non-existent so it was hard to say if I was even going in the
14:12Kadaan_right direction.
14:12mstentaHi Kadaan_
14:12Kadaan_Hey!
14:12farmBOTeh oh
14:12mstentaCool - sure thing
14:13mstentaI'm just reading the recent docker posts too
14:13Kadaan_I posted my docker experiences in github.
14:13mstentaI think I have a pretty clear plan for that now too... I'll post my thoughts there now...
14:13Kadaan_Nice
14:16mstentaso yea - the issue you're working on is actually a great place to start because it doesn't actually require any coding... and it will give you a good overview of a lot of the configuration and module packaging processes
14:17mstentawhich is really a lot of what farmOS is
14:17mstentathere is definitely a good deal of custom code too, but i try to keep that to a minimum - so it is largely just configuration of drupal modules, and that config is exported to code
14:18mstentathis is the basis of a lot of it: drupal.org/project/features
14:18mstentathe Features module essentially gives you the ability to export config into new "features modules"
14:18Kadaan_So for changing to a dropdown, I tried changing the widget module to 'option' and the type to 'option_select'. Then replaced the settings with 'multiple' => FALSE. It seemed to change the page. The result was a list with all areas (- None -, Barn, Field 1, etc.), but no drop down arrow. The resultant HTML had 'multiple'=multiple on it. If I removed that,
14:18Kadaan_it then has a dropdown arrow and all looks good.
14:19mstentamost of the farmOS modules are features modules - along with some other custom stuff added in
14:19mstentanice!
14:19mstentawe will need to leave "multiple" = true, though, for backwards compatability
14:19mstentabecause we need to be able to reference multiple areas
14:20mstentathat will make it into a select list, rather than a dropdown
14:20mstentawhich allows multiple selections
14:20Kadaan_Sadly, with multiple=true it is not a dropdown. It is a scrollable list
14:21Kadaan_The irritating part was I couldn't figure out how to get the behavior to change by modifying the configure
14:21mstentayea that's true - but that's actually what we want... "dropdown" is a misnomer in the feature request
14:21mstentait will need to be a select list... because we need to maintain the ability to select multiple areas
14:21mstentawhat behavior do you mean?
14:21Kadaan_If that is what we want, then I think there is abetted module for the job
14:22Kadaan_Behavior: I was trying to make the field a single select dropdown.
14:22Kadaan_I couldn't get it to work.
14:23Kadaan_I tried specifying 'multiple' => FALSE, which according to the module code should get it to switch to single select with a dropdown arrow
14:25Kadaan_And with 'required' => TRUE it should have replace '-- None --' with '-- Select an item--'. Didn't work for me. I must have the configure in the wrong place, but the docs do not clearly lay out how to configure it
14:27Kadaan_For example in many places the docs show the config as being specified like '#multiple' => FALSE. It isn't clear if the belong in the settings array, etc.
14:31Kadaan_Why wouldn't we use something like www.drupal.org/node/1862900
14:32Kadaan_There is another module that seemed good too. Can't find it now on my phone
14:33mstentaSo... are you making changes in code? or in the UI?
14:34mstentaYou can do either... I was going to walk you through the UI-based approach
14:34mstentaDoing it in code works fine too - but it might require a bit more knowledge of exactly what you're changing... and how to ensure that it takes affect
14:35Kadaan_In the "code". I was tweaking github.com/farmOS/farm_log/blob/7.x-1.x/
14:35mstentaRe: improved_multi_select - yea we can definitely consider something like that! i've used something similar on other sites... i'm inclined to say we wait until Drupal 8, just to keep the number of modules simple in D7
14:36Kadaan_Changing lines 37 to 43
14:36mstentaKadaan_: ok cool - so the other way to do it would be to enable the Field UI module - and make the changes in the site itself
14:36mstentaKadaan_: and then re-export the feature to include the changes in code
14:36Kadaan_Re improved_multi_select: that is fine
14:36mstentaand how is your dev site set up right now? are you using Docker?
14:37Kadaan_Yes. The way listed in the github issue
14:37Kadaan_FieldUi seems nice. Didn't know about it
14:37mstentaok, and how are you editing the file? are you running "docker exec ... /bin/bash" to get into the container, and then editing the code with vim or something?
14:38Kadaan_I think I know where to enable that
14:38mstenta(just getting a sense of all the variables)
14:38mstentayea - even if you do work mostly in code, it's really good to get familiar with the UI - especially the Features module
14:39mstentabecause you can actually use it along with the Diff module to view the changes you've made as a diff directly in the Features config
14:39mstentain /admin/structure/features
14:39Kadaan_I moved the farm modules from profile to sites
14:39mstentaoh ok
14:40Kadaan_So that I could "mount" and edit via Atom
14:40mstentaok cool
14:40mstentathat works
14:40Kadaan_Had to move the farm_theme or everything wad screwed up
14:40mstentaFYI - you can copy them instead of move... modules in sites will override those in profiles
14:40mstentahmm yea i saw you mention the theme in the docker issue... that was something that i still needed to debug - i was seeing the same issue in my earlier testing
14:41Kadaan_Really? It felt like when I did that I got an error regarding redefinition something
14:41mstentafyi: thedude's instructions in that issue are not necessarily the recommended setup... i forget exactly what his approach was... but it was part of the process of honing in on the "right" way, and i think i took a slightly different approach
14:41Kadaan_Would have to repro to get it exactly
14:41mstentaKadaan_: hmm not sure
14:42Kadaan_His were using docker-compose
14:42mstentabut yea... ultimately my plan with docker is to essentially mount the entire /var/www/html folder - so you have the whole codebase locally
14:42Kadaan_Forgot to mention that I was working in the docker branch
14:42mstentagood - the the docker branch is the latest stuff i had worked on
14:43mstentait will be merged into 7.x-1.x once we settle on things
14:43mstentaright now 7.x-1.x only has the simple Dockerfile that @rjsteiner contributed
14:43Kadaan_but just running docker didn't get me up and running. I could connect it to MySQL on my host
14:43mstentathat was what kicked off the whole docker initiative
14:44mstentamm yea i saw you mention that too... i'm not very familiar with getting docker to connect to mysql on the host
14:44mstentai did get it working to connect to a mysql db in another container
14:44mstenta(that's what the docker compose does too_
14:44Kadaan_thedude459's docker-compose sets up a MySQL container called FB
14:44Kadaan_db
14:44Kadaan_Yup
14:44Kadaan_That is what I did
14:45mstentaoh so... are you using thedude459's branch? or the docker branch?
14:45mstentathey are different
14:45mstentahe used different base images if i remember correctly
14:45Kadaan_docker branch in farmOS/farmOS
14:45mstentaok
14:45mstentacool
14:46Kadaan_Using this: github.com/farmOS/farmOS/blob/docker/doc
14:46mstentaFYI - in parallel with the docker branch in farmOS, I'm also working on a docker branch in the farmOS.org repo (for documentation)
14:46mstentagithub.com/farmOS/farmOS.org/compare/doc
14:46mstentaok cool - that's good
14:47mstentaso once we get things figured out and merged into 7.x-1.x, i'll also push the documentation up to farmOS.org that will outline exactly how to get up and running
14:47Kadaan_I did all that except: sudo docker inspect --format '{{ .NetworkSettings.Networks.farmos_default.IPAddress }}' farmos_farmos_1
14:47mstentaoh yea that's just to get the IP address
14:47mstentabut it's not actually necessary
14:47mstentai might remove that piece
14:47Kadaan_So I was connected to the farmOS page via slink from Kitematic
14:47mstenta(still a work in progress)
14:48mstentai'm not familiar with slink/kitematic
14:48Kadaan_I finished the install as you documented
14:48Kadaan_The UI came up, unthemed
14:48mstentaok yea - i saw the same thing, but didn't get into debugging it yet
14:49mstentainteresting that you said moving the theme to sites fixes it...
14:49Kadaan_I moved farm_theme from profiles to sites
14:49mstentahmm interesting
14:49mstentai will have to look deeper at that
14:49Kadaan_I moved the farm specific modules only from profiles to sites
14:49mstentacool - and everything seems to be working?
14:49Kadaan_Reloaded the UI, it was themed an all worked
14:49mstentaare the maps working? or did you have to get a google api key?
14:50Kadaan_The map on the main page worked
14:50Kadaan_But not on the add area page
14:50mstentahmm
14:50Kadaan_I didn't configure a google API key
14:50mstentalots of little things to figure out... :-/
14:51mstentaso yea... google recently started requiring an api key for their map layers
14:51Kadaan_<sigh>
14:51mstentafortunately, they grandfathered in any domains that were using it previously, so i didn't need to get one for farmos.net sites
14:52mstentamy plan is to a) make the google maps optional during install, and b) provide a simple field to enter an API key during install (with instructions to get one)
14:52mstentaneed to find another map provider that doesn't require a key
14:52mstentabut also... google maps isn't ideal for everyone...
14:53mstentain some areas of the globe, they are off by many meters
14:53Kadaan_Aren't too many other choices are there
14:53mstentayea... :-/
14:53Kadaan_Bing,not sure if it is better
14:53mstentai wish there was a good open source option out there
14:53mstentasupported by a non-profit or something
14:53mstentabut alas - satellites aren't cheap
14:54mstentaok, well... back to the issue at hand...
14:54mstentawere you able to enable the Field UI module?
14:56Kadaan_Nor all the hosting infra for maps
14:56Kadaan_Nor all the hosting infra for maps
14:57mstentayea
14:57Kadaan_I'll finally be at my computer in a few minutes if we can look at the dropdown change
14:57mstentaoh ok cool - forgot you were on your phone
14:57mstentano problem
14:58Kadaan_Will be at a computer soon. Have to feed goats
14:58mstenta:-) cool
14:59mstentai'll reply to the docker issue in the meantime
15:00*kadaan has joined
15:01mstentakadaan: do you have an android phone? curious what irc client you use
15:01kadaanmstenta: Will be at a computer in 30. Have to feed the goats
15:01kadaanI'm on an iphone and using irclcoud.
15:02kadaanEnabled "FieldUI" in modules. Don't see "Diff" module
15:03mstentakadaan: should be there...
15:04mstentaunless... it does seem like there might be an issue with stuff in profiles
15:04mstentaand the diff module would be in profiles/farm/modules/contrib
15:04kadaanHow does one enable it in the UI?
15:04kadaanBRB
15:04mstentabut if there is an issue with profiles... i think you would be seeing a lot more broken stuff in general
15:04mstentak, no rush
15:05mstentamodules are enabled in /admin/modules
15:05mstentaif you just go to that page and type "diff" it should filter down and show it to you
15:05mstentayou said you enabled field ui... did you do it through /admin/modules?
15:52kadaanBack
15:54kadaanFound it and enabled it.
15:56kadaanTrying to figure out the field UI now
15:58mstentakadaan: hi welcome back :-)
15:58mstentakadaan: there is a module called Field UI that you need to enable through /admin/modules as well
15:58kadaanDid that too
15:58kadaanThen web to Structure -> Features
15:58mstentaok cool
15:58mstentaso...
15:58mstentatwo things...
15:58kadaanFarm Log
15:59mstentafirst, yea open Structure > Features
15:59mstentathat will show you all of the "feature modules" in farmOS
15:59mstentaand it will also show you whether they are "default" or "overridden"
15:59mstentaif they say "default" it means that the config in the site is the same as the default config defined in code
15:59kadaanfarm_log showed an everride due to my manual changes.
15:59kadaanI reverted it.
15:59mstentaif they say "overridden" then it means the config in the database is different than the code
16:00mstentaok cool... so that would explain why you weren't seeing the changes... because the database config was still using the old config
16:00kadaanWent to farm_log_activity
16:00mstentabut some advice: it's better to make the changes through the UI than through the code...
16:00kadaanI was seeing changes. Just not what I expected.
16:01mstentabecause the UI will make ALL the necessary changes, whereas when you do it in the code you might miss something
16:01kadaanCool. I reverted the changes via atom
16:01mstentaok cool
16:01kadaanfieldUI show "rebuilding"
16:02mstentayea.. i definitely recommend making the changes in the UI first... then exporting them to code via the Features "re-export" link
16:02kadaanNo clue how long that will take. Still "rebuildinhg"
16:02mstentayup - you need to clear the cache in order for that to finish
16:02mstentaeither than or run drupal's cron... i forget which
16:02kadaandone
16:02mstentagreat
16:02mstentaso now it's all default again? and the code is unchanged now?
16:02kadaanYup
16:03kadaanTried clicking field instances -> default
16:03kadaanDidn't get me to: log-farm_activity-field_farm_area
16:03kadaan"recreate" seems promising
16:04mstentayea it is!
16:04mstentafeatures is AWESOME
16:04kadaanJoining a work meeting. Might be a little slow on the response.
16:04mstentabut also can be really confusing and frustrating
16:04mstentayou're sort of deep diving into advanced drupal stuff here... ;-)
16:04mstentaok np
16:04mstentai'll give some instructions for using field ui now...
16:05mstentathat's why i also recommend always making changes in the UI and letting Features handle the code changes
16:05mstentabecause it has intelligence to know what needs to change
16:05mstentaok so field ui...
16:06mstentago to /admin/config/log/types
16:06mstentathat is the list of all "Log" entity types
16:06mstentaand with the Field UI module turned on, you will also see a "manage fields" link next to each
16:09mstentaso for activity logs specifically, you should end up here: /admin/config/log/types/manage/farm_activity/fields
16:09mstentaand then you'll see the "Areas" field, which is type "Term reference" and has a widget of "Autocomplete term widget (tagging)"
16:14kadaanCool
16:14kadaanWas able to "easily" switch log_activity areas field to select
16:14mstentagreat
16:14mstentanow if you look at the Features page again, you should see that it's overridden
16:15mstentaand you can also click "overridden" to see a diff of the code
16:15kadaanWas able to diff
16:15mstentacool
16:15kadaanThough I get a bunch of errors at the top like: Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; _DiffOp_Copy has a deprecated constructor in include_once() (line 3479 of /farmOS/farm/includes/bootstrap.inc).
16:15mstentaah... you know what that is...
16:15mstentathe Drupal 7 docker image that we are inheriting from uses PHP 7
16:16kadaank
16:16mstentai'm not sure we want that...
16:16kadaanWhat is the correct PHP version
16:16kadaanI'm new to PHP too.
16:16mstentawell, technically D7 supports PHP 7 - but not all modules do... most were build for PHP 5.6
16:16mstentaor 5.x I should say
16:17kadaanGot it.
16:17mstenta(PHP devs skipped version 6 - so there's no PHP 6)
16:17mstentai'll mention that in the docker issue... that we may want to go back to 5.6 to avoid those issues
16:17mstentabut for farmOS 2.x on Drupal 8, we can use PHP 7
16:17kadaanShould we switch to: github.com/docker-library/php/blob/1c563
16:18mstentayea potentially
16:18mstentait means we would have to just completely abandon the idea of having our image inherit from the official drupal images
16:18mstentaat least for 7
16:18mstentabut that would be ok for me... they aren't really doing anything special
16:18mstentaand they inherit from the php images themselves
16:18mstentaso we could just cut out the middle man
16:19mstentai might work on that today
16:19mstentaif i have some time
16:19mstentaok so... with regard to the field changes...
16:20mstentaonce you've tested it and you think it's done, you can just go to the feature and re-export it
16:20mstentathis will give you a .tar.gz file with the new module code
16:21mstentathe farm_log_activity module is actually a sub-module of farm_log
16:21mstenta(in a sub-folder of the farm_log git repo)
16:21mstentaso... right now you don't actually have that Git repo checked out locally
16:22mstentayou have the farmOS repo, which is just the distribution... the distribution downloads all the packaged modules, not the individual git repos
16:22mstenta(that's what i was referring to in my last github docker comment - that we will probably also want to provide a way of automatically checking out all the individual git repos)
16:24kadaanJust replaced the modules in sites with git cloned versions
16:25kadaanFarm Delivery and Farm CSA show up a little screwt
16:25kadaanscrewy
16:27kadaanIs "re-export" the same a "recreate"
16:27mstentaah no... get rid of those...
16:27mstentathose are old and no longer maintained
16:27kadaank
16:27mstentadid you clone them because they were in the github.com/farmOS repos?
16:28mstentayes - "recreate"... sorry, not "re-export"
16:28mstentaso... taking a step back...
16:29mstentaif you were to create a commit off of that, and a pull request, that would be the general process...
16:29kadaanYes
16:29kadaanCan we "tag" FarmCSA and FarmDelivery with "This project is no longer maintained."
16:29mstentasure - you mean in the README.md?
16:32kadaanSomething like: github.com/kadaan/farm_csa
16:32kadaanThen it shows up when you see it in the list.
16:33mstentaoh gotcha, just in the tagline, sure!
16:33mstentamaybe i'll also add a note at the top of the readme
16:33mstentaor maybe i should just delete them
16:34mstentai left them there in case anyone in the future wanted to pick them up
16:35mstentabut at this point they are so far behind that it would be less work to start fresh
16:35kadaanIt is sad to have them deleted.
16:35kadaanWouldn't like to lose the code.
16:35mstentammm yea...
16:36mstentamaybe i'll move them to github.com/mstenta
16:36mstentaand put up a note that they are just there for archival purposes
16:36mstentathey are not supported, so i don't think they should be in github.com/farmOS... at least not until they are supported
16:36kadaanIs there any way to recreate log_activity and have it save to disk? Or do I have to download the tarball?
16:36kadaanThat makes sense.
16:37mstentakadaan: i think Features can do that yes... i KNOW it can do that in Drupal 8... not sure about Drupal 7... i've always just done the tarball approach - my fingers have the muscle memory to download and commit very quickly now :-)
16:37kadaanHehehe
16:37mstentabut also, i typically work via phpstorm, with git checked out locally, and the site code in a vagrant vm
16:38mstentaso i actually need to save it outside the vm anyway
16:38mstenta(but now i'm maybe moving over to docker for dev)
16:39kadaanHopefully you will
16:39kadaanDo we need to remove the autocomplete setting too?
16:39kadaan'settings' => array(
16:39kadaan 'autocomplete_path' => 'taxonomy/autocomplete',
16:39kadaan 'size' => 60,
16:39kadaan ),
16:40mstentadid Features remove it automatically?
16:40kadaanNo
16:41mstentahmm, that's surprising
16:41kadaanAt least it didn't show it removed in the diff.
16:42mstentayea - odd... oh well... no we don't need it... but we might need the settings array itself (just empty)
16:42mstentaso change to:
16:42mstenta'settings' => array(),
16:43mstentathis is where things get a little risky though...
16:43mstentawith Features
16:43mstentai don't think we'll hit any issues with this specifically
16:43mstentabut basically the way Features works is by generating the code that it "thinks" should be there... and compares it against the module code
16:43mstentaso when you start to make changes manually, it could go against what Features things
16:44mstentathinks*
16:44mstentausually that only happens in more complex cases though...
16:44mstentai think we'll be fine here if you manually change those lines
16:44kadaank
16:44kadaanWell. I think what I was going to do is figure out the change.
16:44kadaanThen manually do it across all repos.
16:44mstentayea that works
16:44mstentacool yea - that was the other thing i was going to mention...
16:45mstentai would want to see ALL the "areas" field widgets changed to select, for consistency
16:45mstentaand that means not just in farm_log_* modules... but also any other modules in farmOS that use that field
16:45kadaanAlso, would it be worth making all the farm_* modules git submodules of farmOS
16:46kadaanSo I don't have to clone 25 different repos :)
16:46mstentahaha yea... it's another good question...
16:46mstentathere's been some good discussion about that in general here: www.drupal.org/node/2784927
16:46kadaanNot sure how drupal will react
16:47mstentai don't think Git Submodules is necessarily the right approach... but i have considerred just including their code directly in the farmOS distro repo, instead of in separate projects
16:47kadaanI'm thinking keep the repos separate, but: git-scm.com/docs/git-submodule
16:47kadaanThat way you have the advantages of both.
16:47mstentamaybe... the big question would be whether or not the drupal.org packaging script can handle that
16:47mstentabecause that's what builds the farmOS tarballs
16:48mstentaand that essentially uses Drush Make to pull in all the various modules
16:48mstentai don't think it supports Git submodules
16:48kadaanwww.amazeelabs.com/en/blog/drupal-git-su
16:48kadaandrush dl module_name --package-handler=git_drupalorg --gitsubmodule
16:49mstentahmm yea it's worth considerring
16:49mstentaalso found this
16:49mstentarandyfay.com/content/drupal-deployment-g
16:50mstentawant to post those links and ideas to that issue i linked above?
16:50mstentai think those things are mainly up for consideration in Drupal 8 ... not sure if we should make that change in Drupal 7
16:51mstentai'm eager to get working on D8 asap... and thus the farmOS 7.x-1.x branch will remain as-is
16:51mstentaright now i'm thinking that we'll get an official 1.0 out on Drupal 7, and then focus all future efforts on 2.x for 8
16:52kadaanThat sounds great.
16:52kadaanIf I can get more comfortable in drupal, I'll help as time allows.
16:52mstentano sense in spending a whole lot more time on 7 in my opinion
16:52mstentagreat!
16:52mstentabut 8 does change a lot of things... so it will take some time to adapt
16:52mstentai almost wish that you had found farmOS a little later ;-)
16:53mstentaso you could start learning D8 instead of D7
16:53kadaanHopefully it won't be long.
16:53mstentabut it's good... most of the concepts are the same...
16:53mstentajust might be slightly different processes for development
16:53kadaanShould we replace the autocompletes on things like taxonomy_term-farm_crops-field_farm_crop_family too?
16:53mstentayea potentially
16:54mstentalet's create a separate feature request for that
16:54kadaank
16:54mstentai'd like to take a look and consider the implications first
16:54mstentai think that field is required
16:55mstentathe nice thing about the autocomplete (tagging) widget, which is not true of the select widget, is it can be used to generate new terms on-the-fly
16:55mstentaaka tagging
16:55kadaanRight.
16:55mstentaso whenever we change away from that, we remove that ability, and force the user to go and create those terms manually ahead of time
16:56mstentai think that's the right choice for Areas
16:56kadaanWhich is part of your discussion before.
16:56mstentayea
16:56mstentaand maybe it's the right choice for crops too
16:56kadaanMaybe. Just depends on how you come at adding your data.
16:57kadaanI don't even see crops as an asset.
16:57kadaanWhere are they?
16:58mstentaso... crops are actually a taxonomy term
16:58mstenta"Plantings" are the asset
16:58mstentaplantings represent an actual planting of a crop... crop is more the general "idea" of a crop / variety
16:59mstentaie: you might have a crop of "Corn" and a planting called "2016 Corn Planting" that references "Corn" as it's crop
16:59mstentai recently changed the wording so instead of "Crop" it is "Crop/variety"
16:59mstentaso it's less confusing (still a bit confusing though)
17:00mstentaif you go to Assets > Plantings
17:00mstentayou will see a tab for "Crops/varieties"
17:00kadaanAhhh
17:00kadaanSo you need to define your taxonomy first?
17:01mstentayes
17:01mstentawell... you can also define it on-the-fly with the autocomplete tagging widget...
17:01mstentahence why we might want to consider keeping that feature
17:02mstentain the future... i foresee a feature that allows you to import libraries of crops
17:02mstentaperhaps from specific seed producers
17:02mstentaso you could, for example, pull in all the crops from "Johnny's Selected Seeds" - and then use them to create your plantings
17:03mstentaI also foresee that the crop taxonomy terms will include more data, like "days to maturity" and other necessary data... which can be used to assist in the planning process by automatically generating plans
17:03mstentathere is some discussion about that in github as well... i will find the link
17:04kadaanThat would eb great!
17:04mstentayea! i'm really excited to work on that!
17:04kadaanAnother thing that would be really useful and might be a core drupal thing is offline access.
17:04mstentaand i think Drupal 8 will pave the way for some of those things with it's concept of "config entities"
17:04kadaanI have really spotty cell in my fields.
17:05mstentayea! agreed!
17:05mstentathat's a little tricky... but i think there are some potential approaches
17:05mstentaone idea was to create some simple JS-based apps that do specific things (ie: create an observation with a photo and text) and then sync the data to farmOS when internet is available
17:06mstentaso they could be separate from farmOS, and maintained separately
17:07kadaanTrue
17:07mstentaDrupal 8 also adds some nice built-in REST API features that will allow things like that to be built
17:07mstenta(we do currently use the RESTful Web Serviced module for D7 to allow some of that, but from what i've gathered it's still lacking)
17:07mstentaServices*
17:08mstentaso it's nice that they've been generalizing and pulling a lot of those things directly into Drupal core in 8
17:08mstentarather than contrib modules
17:08mstentathat way you know it's maintained and will continue to improve long-term
17:09kadaanYup
17:09kadaanI will create an issue to dicuss offline access.
17:10mstentaawesome
17:10mstentayea, so as you can see in general: there's a lot of possibilities and a lot to do! but i hope that i've been setting it all up in a way that makes those things possible!
17:11kadaanIt seems pretty awesome and there is a ton that can be gained from getting all this working.
17:11mstentayea!
17:11mstentahave you watched the talk I gave at NOFA 2016?
17:12mstentaif not, it might be worth checking out if you have time
17:12mstentait's the best overview-in-video-form that we have right now
17:12mstentawww.youtube.com/watch?v=w0ZCu8NsWKE&feat
17:12kadaanI did watch most of that.
17:12mstentacool
17:12kadaanA little skimming and scanning.
17:13mstentaof course :-)
17:13mstentait's long
17:13mstentathe slides are available too: farmier.github.io/nofa2016
17:14mstentathey have all the mini video demos embedded - so it helps to visualize some of the current features
17:14mstentabut none of it is about development... it's aimed more at farmers who want to see what farmOS can do
17:15kadaanThat is where I started.
17:15kadaanThen I requested a hosted instance at farmier.
17:15kadaanAnd here I am :)
17:15mstentaoh cool
17:15mstentagreat!
17:16kadaanMight end up just hosting it on my Windows Home Server, but getting it on Farmier meant I could show it to my wife quickly.
17:17mstentayea cool
17:17kadaanIs farmier some drupal specific hosting?
17:18mstentayea, and it's really farmOS specific
17:18kadaanI had been looking at running it on aws as well.
17:18kadaanWasn't sure what specs were needed though.
17:19mstentabasically set it up as a way for people to try it out quickly, and have it hosted if they don't want to manage that... and hopefully to help support development over time
17:19kadaanBecause there is a ton of time in this.
17:19mstentayup
17:20mstentai figure it will be a little while before it's mature enough for mass adoption
17:20mstentabut i'm patient :-)
17:21mstentaand it's a really fun project
17:21mstentabut i'm also a bit of an obsessive record keeper myself
17:23kadaanI'd like to be obsessive with it.
17:23kadaanThat is why I want something like this.
17:23kadaangithub.com/farmOS/farm_log/pull/1
17:25mstentaawesome!
17:25mstentai'll test it out
17:25mstentathanks!
17:27mstentamy local dev environment got corrupted a few days ago... so i need to get set up again
17:27mstentathe mysql innodb tables got corrupted bad :-(
17:27mstentain a vagrant vm
17:29kadaangithub.com/farmOS/farm_soil/pull/1
17:30kadaanCool
17:30kadaanGot all the repos clones, remotes added, etc.
17:30kadaanI think I develop now.
17:30kadaanAny suggestion for another easy task?
17:36mstentaHmm
17:37mstentaWe talked about time tracking yesterday, right?
17:37mstentawww.drupal.org/node/2402943
17:37mstentaI think the first step for that would simply be adding fields to all log types that can collect a "Time spent" value
17:37mstenta(the punch-in/out button and other enhancements could then build upon that later)
17:38mstentaignore my first comment in that issue... that time_tracker module is only for Drupal 7 - and it only works on nodes
17:38mstentawe can just start with a field for recording time spent
17:39mstentaprobably a decimal field with 1 or 2 decimal point precision, which represents number of hours spent - does that sound right?
17:40mstentaso you could say ie: 2 hours... or 1.5 hours... or 0.25 hours
17:41kadaanYeah.
17:41kadaanThat sounds good.
17:41kadaanWill need to figure out how to add it to the db
17:41kadaanand adding the field can be done in the FieldUI.
17:42mstentanope - drupal + field ui handles all the database stuff behind the scenes :-)
17:42mstentajust add the field and bam!
17:42mstentait makes the database tables for you
17:43mstentaand when Features sees that a new field is added, it will update existing sites to have the new db tables too
17:43mstentawww.reactiongifs.com/wp-content/uploads/
17:46kadaanNice
17:47mstentafyi: i have been namespacing fields with farm_* in their machine names
17:48mstentaso this one can be farm_time maybe
17:48mstentaor farm_time_spent maybe
17:48*Kadaan_ has quit (Quit: Connection closed for inactivity)
17:48kadaanI like farm_time_spent
17:48mstenta(depending on whether or not we think we might need "farm_time" for something else in the future??)
17:48mstentayea ok
17:49kadaanHave you looked at running uner HHVM?
17:50kadaanhhvm.com
17:50mstentai haven't
17:51mstentais that the thing that Facebook made?
17:51kadaanYes
17:51kadaanTo speed up all of their PHP
17:51mstentaok yea i've heard of it... never used it before
17:51mstentayea
17:51mstentai wonder if Drupal works with it
17:51mstentai think i heard somewhere that it might now
17:52mstentabecause of some of Drupal's "magic" stuff...
17:52mstentaspecifically the call_user_func_array() function
17:52mstentawhich is the basis for Drupal's hook system
17:52kadaanGotta take the dog out.
17:52mstentayea i gotta eat some lunch...
17:52*kadaan has quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
19:23*kadaan has joined
20:17*mstenta has quit (Ping timeout: 256 seconds)
20:37kadaanmstenta: Was wondering if we should also add a new Operation to "Done", "Not Done", "Reschedule", and "Clone". The new operation would be "Start".
20:38kadaanWe could add a "Start Time" field. When someone uses the "Done" operation, it will then fill the "End Time". The "Time Spent" would be calculated.
20:39kadaan"Time Spent" could also be manually entered.
21:28kadaanAlso having a bit of trouble with Administration -> Structures -> Features not detecting the new field I added to Log: Activity. I added the new field via the Fields module. The feature does not state it is overridden.
22:42*kadaan has quit (Ping timeout: 244 seconds)
22:47*kadaan has joined

< 052016-10-06⋏07 >