< 062022-06-07⋎08 >

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
02:29*farmBOT has joined
09:00*Noaht[m] has quit (Quit: You have been kicked for being idle)
12:41*Mo[m] has joined
13:59mstenta[m]paul121 symbioquine Looking at recent GitHub Actions workflow runs... the MariaDB issue hasn't occurred in 16 days (same in both origin and my fork) - I wonder if it was a GitHub issue and they fixed it?
14:04symbioquine[m]Maybe something buried in [here](github.com/actions/runner/issues?q=is%3A) got fixed...?
14:04mstenta[m]Hope so! glad I didn't spend more time on it :-)
15:07symbioquine[m]The [default_content module](www.drupal.org/project/default_content) is pretty nice btw! I'm having good results so far using it to capture test data for Asset Link...
15:08mstenta[m]Cool! I have yet to try it out myself
17:29botlfarm[m]I ran into an issue in my production environment and now things are broken. When creating a log I accidentally ended up adding a group to itself.... (full message at libera.ems.host/_matrix/media/r0/downloa)
17:31mstenta[m]Oh there's supposed to be some logic to prevent a circular group membership - maybe you found a way around that. 😅
17:31mstenta[m]Did you try clearing your cache? I wonder if that would fix the Views...
17:32botlfarm[m]Just tried that with no luck.
17:32mstenta[m]Deleting the log should be all that's needed, but it may have cached something odd somewhere.
17:33mstenta[m]Hmm - are you able to get to /admin/reports/dblog?
17:34botlfarm[m]TypeError: Argument 1 passed to Drupal\views\Plugin\views\field\BulkForm::getEntityTranslation() must implement interface Drupal\Core\Entity\EntityInterface, null given, called in /opt/drupal/web/core/modules/views/src/Plugin/views/field/BulkForm.php on line 291 in Drupal\views\Plugin\views\field\BulkForm->... (full message at libera.ems.host/_matrix/media/r0/downloa)
17:35mstenta[m]Did you use `drush cr` to clear the cache?
17:36botlfarm[m]No, I used admin/config/development/performance "clear all caches"
17:36mstenta[m]OK - I wonder if that misses the Views cache or something - are you able to try `drush cr`?
17:38botlfarm[m]Ok, I just tried that still with the same result
17:38mstenta[m]Hmm
17:40botlfarm[m]worst case I have a back up from this morning I can revert to, but I have done a lot of record inputting today.
17:40mstenta[m]Were any other entities created besides that one log? Re-reading your description...
17:41botlfarm[m]just the 1 group and the 1 log
17:41mstenta[m]And the group works? But doesn't have any members?
17:43botlfarm[m]the group works fine. It shows me all the assets I added with that log that hsould have bene deleted
17:43botlfarm[m]hmm
17:43botlfarm[m]it does not show itself at this point, but also has no logs associated with it
17:43mstenta[m]oh... so there may still be a log
17:43mstenta[m]?
17:44mstenta[m]hmm... this is a random thing to try but...
17:44mstenta[m]`drush cron`
17:44mstenta[m](i have a hypothesis, but it feels unlikely)
17:45mstenta[m]and then also do `drush cr` after that again
17:45mstenta[m]just to be sure :-)
17:45botlfarm[m]still the same
17:45mstenta[m]k - not surprised.. hmm
17:46mstenta[m]for what it's worth, i've found some drupal core issues with this same error message
17:46botlfarm[m]looking back at the debug logs I see where the log was deleted "/log/28547/delete"
17:46botlfarm[m]and if I go back to that log directly it cant be found
17:46mstenta[m]ok
17:47mstenta[m]general question: have you made any customizations to the `farm_log` View?
17:49botlfarm[m]no, I don't think I have made and customizations in 2.x yet
17:49mstenta[m]ok - can you try this:
17:49mstenta[m]`drush en config_update_ui`
17:49mstenta[m]then go to /admin/config/development/configuration/report/module/farm_ui_views
17:50mstenta[m]under "Changed configuration items" it should say "None: no active configuration items differ from their current provided versions."
17:50botlfarm[m]yep, thats what I see
17:50mstenta[m]k
17:51mstenta[m]so my hunch is still that this is a caching issue... somehow
17:51botlfarm[m]that is what it seems like
17:52mstenta[m]we could go into the database directly and poke around... not sure how easy that is on your end
17:52mstenta[m]another idea i might try is deleting and re-importing that View - but that could cause other issues (so i would definitely backup first)
17:53botlfarm[m]im not super comfortable with database stuff just because im not real familiar with it.
17:53mstenta[m]ok let's try deleting/recreating that View... can you take a database backup first?
17:53botlfarm[m]yep
17:53mstenta[m]i'll test out the drush commands on my end
17:53mstenta[m](to make sure it doesn't blow anything else up)
17:54botlfarm[m]I also have not updated to the new beta yet. woudl that clear enough of the catch to maybe fix it?
17:55botlfarm[m]if i did the update now
17:55mstenta[m]just to keep things simpler
17:55mstenta[m]hmm i'd say it's safer to fix this first
17:55botlfarm[m]ok
17:57mstenta[m]ok let's try this
17:58mstenta[m]this will delete the View: `drush config:delete views.view.farm_log`
17:58mstenta[m]after that, go back to /admin/config/development/configuration/report/module/farm_ui_views
17:58mstenta[m]the View should be listed under "missing configuration items" with a button to import it
17:59mstenta[m]that will recreate the view
17:59mstenta[m]maybe that will fix the cache?
18:00botlfarm[m]no luck :(
18:00mstenta[m]dang
18:01mstenta[m]well i think the next thing i would want to do is dig through the DB and see if there's something wrong
18:02mstenta[m]if something didn't get deleted properly, perhaps (can't think how that would happen - but running out of ideas)
18:03mstenta[m]> worst case I have a back up from this morning I can revert to, but I have done a lot of record inputting today.
18:03mstenta[m]or you do this... but if it's a lot of records then i'd want to avoid having to re-input
18:04botlfarm[m]Where would starting place for this log be in the db? or is it not that simple
18:04mstenta[m]actually another idea...
18:04mstenta[m]go to /admin/structure/views/view/farm_log
18:06mstenta[m]expand the "Advanced" column on the right, and next to "Caching" click "Tag based" - set it to "None", click "Apply (all displays)", then scroll down and click "Save" for the View as a whole
18:06mstenta[m](you need the `views_ui` module enabled to get to that page - `drush en views_ui`)
18:08botlfarm[m]same error
18:08mstenta[m]wow
18:09mstenta[m]thinking...
18:11mstenta[m]can you run SQL queries?
18:13botlfarm[m]I think I can if i work inside the db container
18:13mstenta[m]ok
18:14mstenta[m]I'll send you a PM - so we don't clutter this room too much
18:50*AnasHaddad[m] has quit (Ping timeout: 248 seconds)
18:50*ThimmZwiener[m] has quit (Ping timeout: 248 seconds)
18:50*eddieironsmith[m has quit (Ping timeout: 248 seconds)
18:51mstenta[m]update in case anyone is curious... we fixed it :-)
19:02*AnasHaddad[m] has joined
19:02*ThimmZwiener[m] has joined
19:03*eddieironsmith[m has joined
20:22mstenta[m]@room I published some ideas (and a draft git repo) with some ideas for documenting "farmOS conventions" farmos.discourse.group/t/documenting-con
20:23mstenta[m]Would love to hear everyone's thoughts!
20:23mstenta[m]And maybe talk about it on the monthly call tomorrow if we have time
20:33FarmerEd[m]Is this workflow conventions?
20:33FarmerEd[m]Won't these vary vastly from farm to farm. Are you looking to document a single standard convention or multiple examples?
20:35mstenta[m]so... yes, yes, and yes.
20:35mstenta[m]the idea is: everyone might start with different conventions for different types of data recording in farmOS, but over time we can share and converge on some standards
20:35mstenta[m]to encourage more comparability
20:36mstenta[m]not a hard requirement by any means - and there will always be the same level of flexibility we have now
20:36mstenta[m]and there are some easy ones we can start with
20:37mstenta[m]but if, for example, you have your own convention, and wanted to document it - you could follow the same pattern and version it yourself in your own repo
20:37FarmerEd[m]Actually just seen your new post on the forum, I like the convention ID idea
20:37mstenta[m]and if you wanted to propose it for inclusion as a standard, it could go through a pull request process to be merged upstream
20:39mstenta[m]basically proposing a more formal process to what we do already, documented in versioned markdown files :-)
20:39FarmerEd[m]Ok, it's interesting, honestly I could probably do with seeing some convention ideas myself, still trying to figure out much of my own
20:40mstenta[m]take a look at the soil test example: github.com/mstenta/farmOS-conventions/bl
20:40mstenta[m](still a work in progress)
20:43FarmerEd[m]Yea, that's pretty cool actually, could be particularly useful for regional stuff too where farms may have to record certain data in a certain way for various quality assurance schemes.
20:43mstenta[m]yea! good idea!
20:43mstenta[m]perhaps that could be part of the ID namespacing potentially
20:43FarmerEd[m]Exactly
20:52mstenta[m]Let's continue the convo in the forum! :-) farmos.discourse.group/t/documenting-con

< 062022-06-07⋏08 >