| 04:29 | * | DanielAshcraft[m has quit (*.net *.split) |
| 04:29 | * | Cata[m]1 has quit (*.net *.split) |
| 04:29 | * | jgaehring[m] has quit (*.net *.split) |
| 04:29 | * | shane_aldrich[m] has quit (*.net *.split) |
| 04:29 | * | MatrixTravelerbo has quit (*.net *.split) |
| 04:33 | * | jgaehring[m] has joined |
| 04:37 | * | DanielAshcraft[m has joined |
| 04:38 | * | Cata[m]1 has joined |
| 04:38 | * | shane_aldrich[m] has joined |
| 04:41 | * | JulianF[m] has quit (*.net *.split) |
| 04:41 | * | paul121[m] has quit (*.net *.split) |
| 04:41 | * | farmtech[m] has quit (*.net *.split) |
| 04:43 | * | MatrixTravelerbo has joined |
| 04:46 | * | paul121[m] has joined |
| 04:46 | * | farmtech[m] has joined |
| 04:47 | * | JulianF[m] has joined |
| 12:24 | botlfarm[m] | thanks mstenta. I attempted to open the edit page directly "/taxonomy/term/97/edit" and get the same error. Unless there is another way to get to the edit form I don't think this will work. |
| 12:24 | botlfarm[m] | Any clue where I should be looking in the database itself for this? |
| 12:24 | mstenta[m] | ah ok - well then... to the database! :-P |
| 12:25 | mstenta[m] | yes... |
| 12:26 | mstenta[m] | in 1.x, area geometry is stored in the `field_data_field_farm_geofield` table |
| 12:26 | mstenta[m] | (as well as the `field_revision_field_farm_geofield` so we'll need to update both) |
| 12:28 | mstenta[m] | probably what we want to do is pinpoint the area that has an issue and then just delete the record from each table |
| 12:28 | mstenta[m] | this will essentially clear out the geometry for that area |
| 12:28 | mstenta[m] | then you should be able to get into the `/edit` page and redraw it |
| 12:28 | mstenta[m] | (always a good idea to take a quick database snapshot first) ;-) |
| 12:29 | mstenta[m] | `SELECT * FROM field_data_field_farm_geofield WHERE entity_type = 'taxonomy_term' AND bundle = 'farm_areas';` |
| 12:29 | botlfarm[m] | Im actually working in an entire backed up copy right now to make sure I'm doing it right before moving on to production. but will defiantly get another backup first. |
| 12:29 | mstenta[m] | that query will filter down to just areas |
| 12:30 | mstenta[m] | i think what you want is: `SELECT * FROM field_data_field_farm_geofield WHERE entity_type = 'taxonomy_term' AND bundle = 'farm_areas' AND entity_id = 97;` |
| 12:30 | mstenta[m] | that should give you the exact geom |
| 12:30 | mstenta[m] | it's stored in Well-Known Binary in the db, so you won't be able to easily read it... i think there's a way to get WKT in a query... i forget |
| 12:31 | mstenta[m] | but if you're OK with just deleting and redrawing then you don't need to read it |
| 12:31 | botlfarm[m] | perfect. Yeah im fine deleting this altogether |
| 12:31 | mstenta[m] | If you feel confident that this is the correct geometry, these two queries will delete it from both tables:... (full message at libera.ems.host/_matrix/media/r0/downloa) |
| 12:32 | botlfarm[m] | the odd thing is there are only 9 logs that reference this geometry and they all have closed polygons |
| 12:32 | mstenta[m] | then try going to `/taxonomy/term/97/edit` again |
| 12:32 | mstenta[m] | that is odd |
| 12:32 | mstenta[m] | maybe this one was edited/corrupted after the logs were created? |
| 12:33 | mstenta[m] | (that's one of the benefits of cloning area geometry to logs! backups :-) ) |
| 12:36 | botlfarm[m] | perfect. deleting that worked. now I can get in and edit it. Thanks! |
| 12:37 | botlfarm[m] | or more importantly continue the 2.x migration |
| 12:38 | mstenta[m] | woo! |
| 12:39 | mstenta[m] | botlfarm: i am days away from releasing alpha3 FYI! |
| 12:39 | mstenta[m] | so maybe plan accordingly ;-) |
| 12:40 | mstenta[m] | still worthwhile to practice migrating right now - but plan to reinstall and re-migrate once that is released too |
| 12:40 | botlfarm[m] | Excellent. I mainly just wanted to see how the migration would work now that im in a linode server. |
| 12:40 | mstenta[m] | alpha3 will probably be the last alpha before beta1 - and *may* end up being "stable" in that regard |
| 12:40 | mstenta[m] | a lot of the major changes are done, or will be for alpha3 |
| 12:40 | botlfarm[m] | cool |
| 12:41 | mstenta[m] | oh are you using sensors? |
| 12:41 | botlfarm[m] | I do have a handful of temp sensors |
| 12:42 | mstenta[m] | if so, i might recommend waiting to test the sensor data migration until after alpha3 |
| 12:42 | mstenta[m] | paul121 refactored the migration to be MUUUUUUCH faster |
| 12:42 | mstenta[m] | (a big db with lots of data would take 8+ hours to migrate before - now it's minutes) |
| 12:42 | botlfarm[m] | good call |
| 12:43 | mstenta[m] | if you just leave the `farm_sensor` module turned off then the migration won't run |
| 12:43 | mstenta[m] | (more specifically the `farm_sensor_listener` module... you can actually leave `farm_sensor` on and migrate the `sensor` assets without the data) |
| 12:44 | mstenta[m] | (`farm_sensor_listener` will enable the data migration) |
| 12:44 | mstenta[m] | on a related note... i'm adding some documentation right now about migrating sensor data specifically to the migration docs |
| 12:45 | mstenta[m] | and how to limit "downtime" of your sensor data streaming, during migration, if that's important |
| 12:45 | mstenta[m] | in either case, be sure to follow the updated migration docs once alpha3 is released... there are a few minor differences |
| 12:46 | mstenta[m] | notably, we are adding a single `farm_migrate:import` drush command, which will run all the migration groups for you, so you don't have to do them individually |
| 12:46 | botlfarm[m] | I honestly just added sensors to farmos for the fun of it. I never actually look at them. Looking now it looks like they stopped updating about a month ago. oops. I will probably just start fresh in 2.x |
| 12:46 | mstenta[m] | ah well that makes things simpler haha :-) |
| 14:18 | symbioquine[m] | <mstenta[m]> "paul121 refactored the migration..." <- Is that just for the sensors part of the migration? |
| 14:18 | mstenta[m] | yes |
| 14:19 | mstenta[m] | oh but that reminds me symbioquine i know you had some automated migration testing code... you will need to make a few small changes for alpha3 |
| 14:20 | symbioquine[m] | I=[👂️👂️] |
| 14:21 | symbioquine[m] | I plan to retest that migration/automation soon... |
| 14:21 | mstenta[m] | well for one... maybe you can just simplify completely... we added a `drush farm_migrate:import` command |
| 14:21 | mstenta[m] | this automatically runs all migration groups in the correct order |
| 14:21 | mstenta[m] | also there is `drush farm_migrate:rollback` |
| 14:21 | symbioquine[m] | ah, nice! |
| 14:22 | mstenta[m] | you *may* need to increase the `memory_limit` of Drush... i am documenting how to do that in the migration docs right now |
| 14:22 | mstenta[m] | i only ran into an issue with sensor data though, so maybe you won't need to - but it's kinda nice to give php cli a bit more memory anyway |
| 14:22 | mstenta[m] | other than that, i renamed `farm_migrate_reference` group to `farm_migrate_asset_parent` |
| 14:22 | mstenta[m] | and resolved the rollback issues |
| 14:24 | mstenta[m] | there are two other migration changes happening before alpha3 (almost merged): material type terms + quantities, and data stream migration improvement |
| 14:28 | mstenta[m] | > other than that, i renamed `farm_migrate_reference` group to `farm_migrate_asset_parent` |
| 14:28 | mstenta[m] | (i also changed WHEN this group runs... after asset/area migrations, instead of the very end, but it doesn't really matter) |