IRC logs for #farmOS, 2020-07-24 (GMT)

2020-07-23
2020-07-25
TimeNickMessage
[21:15:50]* anashaddad[m] has quit (Ping timeout: 244 seconds)
[21:15:51]* michail[m] has quit (Ping timeout: 244 seconds)
[21:16:20]* peter[m]3 has quit (Ping timeout: 244 seconds)
[21:16:21]* samrose[m] has quit (Ping timeout: 244 seconds)
[21:16:21]* rafaeltcc[m] has quit (Ping timeout: 244 seconds)
[21:16:43]* abinash[m] has quit (Ping timeout: 260 seconds)
[21:17:02]* anashaddad[m] has joined #farmos
[21:17:50]* rafaeltcc[m] has joined #farmos
[21:17:55]* samrose[m] has joined #farmos
[21:19:43]* michail[m] has joined #farmos
[21:22:10]* peter[m]3 has joined #farmos
[21:22:19]* abinash[m] has joined #farmos
[21:31:50]* michail[m] has quit (Ping timeout: 244 seconds)
[21:46:10]* michail[m] has joined #farmos
[23:08:14]* JustTB has quit (Ping timeout: 256 seconds)
[23:21:34]* JustTB has joined #farmos
[00:42:20]* JustTB has quit (Quit: Leaving.)
[00:56:08]* JustTB has joined #farmos
[05:00:25]* antoine[m] has left #farmos ("Kicked by @appservice-irc:matrix.org : Idle for 30+ days")
[05:08:45]* JustTB has quit (Ping timeout: 240 seconds)
[05:23:44]* JustTB has joined #farmos
[05:54:33]* JustTB has quit (Ping timeout: 244 seconds)
[06:08:44]* JustTB has joined #farmos
[08:52:38]<tool172[m]>Question -> i created the farm_usda_reports.inc and .module. Since i need to store an api key, i figured i would rinse and reuse rather than rebuild, i stole from farm_maps_google for the api key hooks since there done and it needs to go under config. Do I need to add it to the install and uninstall files for the link before it will populate under the configuration page?
[08:53:41]<tool172[m]>i'm still trying to assimilate entity, bundle, node, field to my usual thinking of database, php, classes, etc. hence why 8 and 9 will be easier for me
[08:54:38]<mstenta[m]>tool172: do you have your code in a repo i can look at?
[08:54:52]<tool172[m]>i'll create it later today push it to git
[08:55:14]<mstenta[m]>my first thought: did you install the module and then add the config form? if so, you may need to clear caches or rebuild the menu in order to see it appear
[08:55:40]<tool172[m]>i did install, i need to probably install the config form on the install
[08:55:50]<tool172[m]>instead of assuming it would magically appear
[08:55:56]<tool172[m]>that's what i'm thinking the issue is.
[08:56:03]<tool172[m]>module shows up nicely and all that is bueno
[08:56:24]<mstenta[m]>yea, Drupal maintains a `{menu_router}` database table that is only rebuilt when modules are installed or when the menu cache is explicitly rebuilt
[08:56:41]<mstenta[m]>so if you installed the module and THEN added the menu item, it wouldn't show up automatically
[08:56:44]<mstenta[m]>need to rebuild the menu
[08:56:51]<tool172[m]>ah
[08:56:53]<mstenta[m]>easiest way to do that is just go to /admin/modules and click the submit button
[08:57:35]<mstenta[m]>alternatively, if you are using the official `farmos/farmos:dev` docker image, that includes Drush, and you can run:
[08:57:35]<mstenta[m]>`sudo docker exec -it farmos_www_1 drush cc menu`
[08:58:00]<tool172[m]>i'm working trowards setting up a docker for it
[08:58:04]<tool172[m]>i'm on adobe cs 5.5
[08:58:13]<tool172[m]>so debating on buying phpstorm
[08:59:27]<tool172[m]>it worked
[08:59:31]<tool172[m]>no form so it crashed
[08:59:33]<tool172[m]>thanks
[09:00:21]<mstenta[m]>ah great!
[09:00:45]<mstenta[m]>the `farm_map_google` module might not be the best example of a simple config form... because it alters itself into another form
[09:01:00]<tool172[m]>i already chased it
[09:01:03]<tool172[m]>and edited the parent
[09:01:06]<tool172[m]>on my module
[09:01:08]<mstenta[m]>take a look at the config form for `farm_map` itself (which is what `farm_map_google` adds to)
[09:01:10]<mstenta[m]>ah ok great
[09:01:31]<tool172[m]>after this i'l have to use feeds to import
[09:01:46]<tool172[m]>then setup a feeds_ui wizard for report types ...yadda...yadda
[09:01:53]<tool172[m]>i'll open git once i start coding that part probably
[09:03:59]<tool172[m]>i need to fork it and run a docker image and all that
[09:04:12]<tool172[m]>right now i'm just deving on my production server site instead of my docker testing site
[09:04:48]<tool172[m]>i gotta run for the day, thanks for that...i'll take some notes into docker with me and work on getting the git setup
[09:05:43]<mstenta[m]>sounds good! good luck tool172 !