< 182016-10-19⋎20 >

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
00:11*kadaan is now known as kadaan
01:26*JustTB has joined
01:28*JustTB1 has quit (Ping timeout: 245 seconds)
05:01*kadaan_ is now known as kadaan_
05:47kadaan@mstenta: So far, so good. Though I had to go to localhost/install.php?profile=farm to get to the install. The IP address identified by `docker inspect --format '{{ .NetworkSettings.Networks.farmos_default.IPAddress }}' farmos_www_1` timed out.
05:53kadaanIt seems as if drush is modifying the farm modules and adding `; Information added by drush on 2016-06-08\nversion = "7.x-1.2+0-dev"\nproject = "farm_access"\ndatestamp = "1465413099"` to all the farm_*.info files. This make it a little bit more of a pain to work with these git repos,
06:06*kadaan is now known as kadaan
06:40*kadaan_ has quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
08:45*M-DzzzzzzR has quit (Remote host closed the connection)
08:58*M-DzzzzzzR has joined
13:04mstentafarmBOT: tell kadaan github.com/farmOS/farmOS/issues/18
13:04farmBOTmstenta: I'll pass that on when kadaan is around.
13:05mstentafarmBOT: tell kadaan Regarding the IP address... maybe that command doesn't work in all environments. If you just do "docker inspect farmos_www_1" - you should see the IP address down near the bottom. The --format piece is just a way to try to automatically filter it. But maybe the "NetworkSettings.Networks.farmos_default.IPAddress" path is different in your case? Can you check?
13:05farmBOTmstenta: I'll pass that on when kadaan is around.
13:51*JustTB has quit (Quit: Leaving.)
16:05*kadaan has joined
16:19kadaanThanks for fixing the info file.
16:19farmBOTkadaan: 3 hours 15 min ago <mstenta> tell kadaan github.com/farmOS/farmOS/issues/18
16:19farmBOTkadaan: 3 hours 14 min ago <mstenta> tell kadaan Regarding the IP address... maybe that command doesn't work in all environments. If you just do "docker inspect farmos_www_1" - you should see the IP address down near the bottom. The --format piece is just a way to try to automatically filter it. But maybe the "NetworkSettings.Networks.farmos_default.IPAddress" path is different in your case? Can you check?
16:20kadaanNo, IP address is returned correctly, but I cannot use it to connect to the site.
16:21mstentakadaan: oh
16:21mstentahuh
16:21mstentadoes ping work?
16:26kadaanPing does not work.
16:27kadaanFYI, connecting to the site via localhost works and I'm able to install.
16:27kadaanWhich brings me to my other question. How long does the install take for you? For me it seems to be almost 1 hour.
16:32kadaanAfter that, the site seems to perform about as well as it did when I ran it in docker before.
16:33kadaanShould we include the git versions of components like `log`?
16:35mstentayea, installation is ungodly slow for me too - i don't know why
16:36mstentai enabled php's opcache, fyi, but it didn't make a difference
16:36mstentayou're on mac right?
16:36mstentathat's probably why it is slow for you...
16:36mstentai am using mine inside a truecrypt container - which might explain the slowness for me... i'm going to test it outside of truecrypt
16:36mstentaweird that ping doesn't work, but localhost does
16:36mstentai guess just use that
16:37mstentai'm not sure how the networking all works on mac
16:43kadaanCool.
16:43mstentaso one thing that might be worth trying on mac...
16:44mstentaer, well...
16:44mstentahmm
16:44mstentanevermind
16:44mstentai was gonna say try running the database container without a volume... but i think it's baked into the Dockerfile for mysql
16:44mstentai have a feeling it's the db container that's slowing you down
16:45mstentamore so than the apache container
16:45mstentabecause drupal makes a lot of db calls
16:45kadaanI think it is that fact that the DB container is mapped as a volume.
16:45mstentayea i do too
16:45mstentai was gonna say to just comment that out in the docker-compose.yml... but i don't think that will do it
16:46mstentabecause the mysql Dockerfile contains a VOLUME command... which means a volume will be created regardless
16:46mstentai suppose you could build your own mysql image, and remove the VOLUME command
16:46mstentathat's a lot of extra work... but it would be a good way to test whether or not it is the volume
16:55kadaanEither way, you want the volume so that the DB is persisted across rebuilds, right?
16:56mstentakadaan: well yes...
16:57mstentabut... you could probably get away with only rebuilding the www container, and leaving the mysql container alone
16:57mstentaif it helps to speed things up for you on mac
16:57mstentaagain, this would be a workaround
16:57mstentanot something we would do in the official image
16:57mstentai mean in the official docker-compose.yml
16:57mstentabut yea - if you then destroyed the mysql container, you would lose the database
16:58mstentabut if you're only using it for local development, maybe that's ok
16:58mstentaif it improves the speed
16:58mstentaa lot of "if"s
16:59kadaanhehehe
17:00kadaanI'll have a look later.
17:00mstentaah ha! i think i solved my slowness issue!
17:00mstentait was because i was running it from within a truecrypt container
17:00kadaanThe other thing I was wondering is if we should include log in the git checkout.
17:00mstentaduh - makes sense :-)
17:00kadaanTotally
17:00mstentare: log in git checkout... perhaps
17:01mstentaps: i still need to review your time tracking stuff...
17:01mstentabut it relates to that...
17:01mstentai think the time tracking data should be stored in Fields on the various log types... but not directly in the {log} table schema
17:02mstentabecause the Log module is not specific to farmOS... and time tracking is not a general requirement for it
17:02mstentaie: Log will be used in Ledger for bookkeeping entries... but you don't need to know how long you spent making a transaction
17:02mstentaso instead, we should add fields to the farmOS log types for tracking time spent
17:04kadaanEwwwww
17:04kadaanIt makes me feel gross to do it that way.
17:04mstentawhy?
17:05kadaanBecause it is changes in so many places.
17:05kadaanWe already have farm_log, but it really isn't just a farm specific extension of log.
17:05mstentayes, but that is how all other fields work
17:06kadaanA good compromise might be a farm specific version of log that adds time_spent.
17:06kadaanOr add the ability to enable time_spent for a specfic log type
17:06kadaanIn the configuration of log.
17:06mstentaenabling time_spent per log type could work
17:06mstentathat could be an add-on module for Log
17:07mstentawith config to define which log types it applies to
17:07kadaanI'm not really sure how to do that.
17:07mstentait is a bit more involved... but it makes sense if the time tracking needs to become more complicated in the future (and maybe it does)
17:07mstentai could help spec up what that would look like
17:08kadaanI my ignorance, I would just add a config property (like the one that allows done to be automatically checked) which indicates whether time tracking is enabled.
17:08mstentabut we could also START with individual fields on the log types... and then if/when we make the log_time module (or whatever it is called), we could add an automated update code to migrate the data and remove thoe fields
17:08kadaanWe could...
17:09mstentayes, that's how it would work... but that config would be stored in a different database table than {log_type}... maybe {log_time_type} or something
17:09mstenta(because modules shouldn't modify other module's tables)
17:09kadaanMakes sense.
17:09kadaanI'd rather add the module than modify all the existing modules...
17:09kadaanBut either way.
17:10mstentaok - maybe we could start by specing it out
17:10kadaanI had already done it the first way.
17:10kadaanAnd really didn't like it.
17:10kadaanThat is why I put it in Log.
17:10mstentayea... :-( sorry i wish i had a chance to jump in before you did
17:10kadaannp
17:10kadaanI greatly prefer it in log.
17:10kadaanSo I would greatly prefer it in log_time_tracking.
17:11mstentaok - yea i think that would be great
17:11kadaanIf done that way, making new modules or new log types becomes much easier.
17:11mstentayes indeed
17:11mstentabrb need some lunch
17:12kadaanIs there an example of how to make a add-on module?
17:12kadaannp
17:13mstentakadaan: this one wouldn't be too hard, i don't think
17:14mstentabrb
17:17kadaannp
17:31mstentakadaan: another thought i had re: time tracking...
17:31mstentawe might want more than just the one field
17:32mstentawe might want to be able to have a whole "timesheet" on each log
17:32mstentathat multiple people could punch in/out on
17:32mstentaand it would record multiple sessions of time spent, potentially at different times of day, or different days
17:33mstentathen it could tally those up to give a total amount of time spent on the task... and maybe also how long each person spent on it
17:33kadaanI had thought about that too.
17:33kadaanEasier if it is a new table.
17:33mstenta(combined with a concept of how much each person's time is worth would allow for some pretty good cost calculations for man-hours)
17:33mstentayea definitely easier
17:33kadaanI like it
17:33mstentalet's start brainstorming some of these things in the time tracking issue on drupal.org
17:34mstentathe one that @brucedawson is in on
17:34mstentamaybe the module could be called "log_timesheet"
17:34mstentaor something... "log_time_tracking" is good too...
17:35mstentawe can throw some ideas around for the name too (without splitting hairs too much - it doesn't matter a whole lot)
17:36mstentaalso i'll need to decide if i want to include that module in the drupal.org/project/log project itself, or if maybe it should be its own project drupal.org/project/log_time_tracking
17:36mstentai'm leaning towards a separate project... to keep the maintenence of both separate
17:36mstentaand i could make you co-maintainer of it so you could start building up your drupal.org commit counts :-)
17:40mstentai'm updating the drupal.org issue with some of these thoughts...
17:42kadaank
17:43kadaanI'll update there when I have tome.
17:43kadaantime
18:33*kadaan is now known as kadaan
19:44*kadaan_ is now known as kadaan_
21:59*kadaan is now known as kadaan
22:42*JustTB has joined
23:12*Lil has quit

< 182016-10-19⋏20 >