| [19:24:26] | <symbioquine[m]> | <paul121[m]> "symbioquine: are you able to..." <- Yeah, that works correctly :) |
| [21:22:26] | <symbioquine[m]> | What's really cool is that even without being able to query against the computed geometry field, we could perform an asset proximity search just a few requests using a strategy like this... |
| [21:24:48] | <symbioquine[m]> | A query like `/api/asset/land?filter[geohash-filter][condition][path]=intrinsic_geometry.geohash&filter[geohash-filter][condition][operator]=CONTAINS&filter[geohash-filter][condition][value]=1234567` can be used to find all the assets with intrinsic geometry having the common geohash prefix "1234567" (application layer filtering is needed to double-check that those hash characters are at the beginning of the geohash since the Drupal |
| [21:24:48] | <symbioquine[m]> | JSON:API implementation doesn't support prefix filters) |
| [21:26:59] | <symbioquine[m]> | Similarly, a query like `/api/log/{log type}?filter[geohash-filter][condition][path]=intrinsic_geometry.geohash&filter[geohash-filter][condition][operator]=CONTAINS&filter[geohash-filter][condition][value]=1234567&filter[is_movement]=1` (executed for each log type in parallel via Subrequests) can be used to find all the movements in the same area. |
| [21:28:43] | <symbioquine[m]> | With 7 or 8 digits of Geohash prefix one could search for assets within the same 250 ft or 60 ft proximity as a given search coordinate. |
| [21:29:57] | <symbioquine[m]> | Obviously, a little more application layer filtering is needed to filter out those logs which have moved since the log which places them in proximity. |
| [21:31:11] | <symbioquine[m]> | And further, some recursive querying would be needed if one wanted to find assets which are within the area-of-interest by way of being "located at" another asset which is there. |
| [21:34:04] | <symbioquine[m]> | It's a little complicated, but would probably be performant enough for a lot of use-cases - especially if only a few matches are required in which case the code can start with 9 digits of geohash, then repeat with iteratively fewer digits until enough matches have been found. |
| [22:38:02] | <symbioquine[m]> | * proximity search with just a |
| [00:17:08] | <paul121[m]> | Geohash is cool!!! Maybe a good candidate for the field kit proximity search? I know it had the "find areas near me" functionality, but not sure how that worked |
| [11:39:18] | <mstenta[m]> | symbioquine: FYI issue queues seem to be disabled in both https://www.drupal.org/project/farm_map_google and https://github.com/symbioquine/farm_map_google - would it make sense to enable them in the drupal.org one? |
| [11:40:29] | <symbioquine[m]> | Yeah |
| [11:40:57] | <symbioquine[m]> | I personally prefer GitHub issues, but acknowledge the benefits of being able to move issues around within the Drupal system... |
| [11:41:40] | <symbioquine[m]> | Done |
| [11:41:42] | <mstenta[m]> | Yea I go back and forth a lot :-) |
| [11:41:44] | <mstenta[m]> | Thanks! |
| [11:41:49] | <symbioquine[m]> | np |
| [11:41:56] | <mstenta[m]> | The only reason I ask is I was looking for an open issue on the map rotation bug |
| [11:42:01] | <mstenta[m]> | Couldn't remember where that was documented |
| [11:42:18] | <symbioquine[m]> | Hmmm... |
| [11:42:40] | <symbioquine[m]> | https://github.com/farmOS/farmOS-map/issues/59 |
| [11:43:44] | <mstenta[m]> | bingo! thanks! :-D |
| [11:43:45] | <symbioquine[m]> | I'm going to enable the GitHub issue queue too and move that issue over if that still sounds right...? |
| [11:44:15] | <mstenta[m]> | I was just going to say... maybe we should close this issue, but open a new one in one of those other queues |
| [11:44:21] | <mstenta[m]> | Because it's easier to find this one IMO |
| [11:44:35] | <symbioquine[m]> | Yeah, that makes sense too. |
| [11:44:56] | <mstenta[m]> | Let's do that... I'll comment/close it - if you want to open a new issue (but maybe not even necessary) |
| [12:03:08] | <symbioquine[m]> | Sounds good. I'll hold off on creating a new issue for now. The underlying library ol3-google-maps basically recommends disallowing rotation since it's known to be buggy: https://github.com/mapgears/ol3-google-maps/blob/1b92013c8983bee0e5f641e... |
| [12:04:24] | <symbioquine[m]> | I might put in a fix to disable the rotation interaction when Google maps layers are active, but it's not my focus right now. |
| [12:05:04] | <mstenta[m]> | oh yea that would be nice... |
| [12:05:28] | <mstenta[m]> | i think that idea came up a while back... forget why we didn't. there might be a challenge there |
| [13:19:55] | * EvanKelley[m] has joined #farmos |
| [13:23:16] | <EvanKelley[m]> | Hi everybody, I'm Evan Kelley from the CIG-CPDI project and Marcos pointed me here hoping that you might be able to answer a question for me. I've been working with FarmOS and we wanted to change some of the fields for an asset we've created; however that asset was generated with some PHP code and unfortunately it looks like we are unable to edit the fields that were generated with that code using the Filed UI module. I was just |
| [13:23:16] | <EvanKelley[m]> | wondering if anyone might have some suggestions as to what we could do to manipulate those fields on our generated asset. |
| [13:23:25] | <EvanKelley[m]> | * Hi everybody, I'm Evan Kelley from the CIG-CPDI project and Marcos pointed me here hoping that you might be able to answer a question for me. I've been working with FarmOS and we wanted to change some of the fields for an asset we've created; however that asset was generated with some PHP code and unfortunately it looks like we are unable to edit the fields that were generated with that code using the Filed UI module. I was just |
| [13:23:25] | <EvanKelley[m]> | wondering if anyone might have some suggestions as to what we could do to manipulate those fields on our generated asset. |
| [13:24:40] | <mstenta[m]> | Hi Evan Kelley welcome! |
| [13:25:30] | <mstenta[m]> | This is a custom asset type? Did you use this guide to create/add bundle fields to it? https://farmos.org/development/module/fields/#bundle-fields |
| [13:26:26] | <mstenta[m]> | What changes do you need to make? |
| [13:27:15] | <mstenta[m]> | Depending on your needs, you may be better off adding fields to your asset type the more "traditional" Drupal way... by creating them in the UI via the Field UI module and then exporting the YML config to your modules `config/install` directory. |
| [13:27:53] | <mstenta[m]> | If you have Drupal devs on your team they may be more comfortable with that approach. |
| [13:28:01] | <mstenta[m]> | But really depends on what you need specifically... :-) |
| [13:29:25] | <EvanKelley[m]> | It is a custom asset, and I believe we added them in the way you linked I need to check again. Really what we need to do is change some of the fields type references to just standard text varchar's to taxonomies and integers. |
| [13:31:04] | <EvanKelley[m]> | s/to/from/ |
| [13:31:42] | <mstenta[m]> | OK - well if you are familiar with Drupal's Field UI module, then you may want to simply delete the PHP code you have for adding fields and go with the UI-based approach instead. |
| [13:32:14] | <mstenta[m]> | You will need to reinstall the module from scratch - updating an existing instance to make the necessary database changes is not automatic. |
| [13:33:14] | <EvanKelley[m]> | Gotcha okay we thought that might be the case but wanted to reach out just to make sure we had all the information. I did check again and it appears the PHP code is written in the way you linked so looks like we should scrap it and start again. |
| [13:33:23] | <mstenta[m]> | One small tip: if you use Field UI, by default Drupal prefixes the field names with `field_` - which I find annoying. If you don't want those prefixes I can tell you how to disable that, if that's helpful. :-) |
| [13:34:38] | <mstenta[m]> | Great - yea the PHP way of adding fields is useful for "contrib" modules - but often when you're working on "custom" modules it makes more sense to take full control via Field UI. |
| [13:35:12] | <mstenta[m]> | ("contrib" meaning "modules that will be shared with the rest of the farmOS community") |
| [13:35:27] | <EvanKelley[m]> | Oh yeah that might help cause the machine name can only have so many characters and it ends up cutting some of the actual name off. Looks like we need to keep that in mind for the future oh well live and learn. |
| [13:36:04] | <mstenta[m]> | Ah yea - I have wondered if we should just disable the `field_` prefix in farmOS entirely by default... |
| [13:36:06] | <mstenta[m]> | (cc paul121 ) :-) |
| [13:36:51] | <mstenta[m]> | I feel like it's a "gotcha" that too many people will get annoyed by |
| [13:37:27] | <mstenta[m]> | (although to be fair, if you're developing a module you can make those decisions yourself) |
| [13:38:14] | <EvanKelley[m]> | It might make sense if we are trying to differentiate a field in the machine code from the name of a table but I'm not sure if that matters |
| [13:38:28] | <EvanKelley[m]> | * a table in the machine code but I'm |
| [13:41:27] | <mstenta[m]> | Oh looks like there's a very simple module that will do it for you: https://www.drupal.org/project/field_name_prefix_remove |
| [13:42:36] | <mstenta[m]> | (it's possible to do it without that module too, but this might be simpler) |
| [13:43:35] | <EvanKelley[m]> | Alrighty cool thanks for that! |
| [14:37:52] | * sgoodall[m] has quit (*.net *.split) |
| [14:37:52] | * symbioquine[m] has quit (*.net *.split) |
| [14:42:24] | * sgoodall[m] has joined #farmos |
| [14:42:24] | * symbioquine[m] has joined #farmos |
| [14:46:02] | * jgaehring[m] has quit (Ping timeout: 240 seconds) |
| [14:46:14] | * MarcosCarballal[ has quit (Ping timeout: 240 seconds) |
| [14:46:14] | * qoyyuum[m] has quit (Ping timeout: 240 seconds) |
| [14:46:26] | * ludwa6[m] has quit (Ping timeout: 250 seconds) |
| [14:46:26] | * m035[m] has quit (Ping timeout: 250 seconds) |
| [14:46:32] | * justgav1976[m]1 has quit (Ping timeout: 240 seconds) |
| [14:46:32] | * justgav[m] has quit (Ping timeout: 240 seconds) |
| [14:46:36] | * skipper_is[m] has quit (Ping timeout: 256 seconds) |
| [14:46:39] | * matrixtrix[m] has quit (Ping timeout: 252 seconds) |
| [14:46:39] | * paul121[m] has quit (Ping timeout: 252 seconds) |
| [14:46:39] | * Noaht[m] has quit (Ping timeout: 252 seconds) |
| [14:46:39] | * mstenta[m] has quit (Ping timeout: 252 seconds) |
| [14:46:39] | * shane_aldrich[m] has quit (Ping timeout: 252 seconds) |
| [14:46:39] | * EvanKelley[m] has quit (Ping timeout: 250 seconds) |
| [14:47:04] | * FreshiesFarmsLLC has quit (Ping timeout: 268 seconds) |
| [14:49:02] | * sgoodall[m] has quit (Ping timeout: 260 seconds) |
| [14:49:58] | * symbioquine[m] has quit (Ping timeout: 260 seconds) |
| [14:50:59] | * ChuckWinter[m] has quit (Ping timeout: 250 seconds) |
| [15:15:16] | * jgaehring[m] has joined #farmos |
| [15:15:16] | * justgav1976[m]1 has joined #farmos |
| [15:15:17] | * justgav[m] has joined #farmos |
| [15:15:17] | * FreshiesFarmsLLC has joined #farmos |
| [15:15:24] | * qoyyuum[m] has joined #farmos |
| [15:15:26] | * MarcosCarballal[ has joined #farmos |
| [15:15:29] | * EvanKelley[m] has joined #farmos |
| [15:15:38] | * skipper_is[m] has joined #farmos |
| [15:15:38] | * ludwa6[m] has joined #farmos |
| [15:15:40] | * m035[m] has joined #farmos |
| [15:15:41] | * shane_aldrich[m] has joined #farmos |
| [15:15:42] | * paul121[m] has joined #farmos |
| [15:15:42] | * Noaht[m] has joined #farmos |
| [15:15:42] | * mstenta[m] has joined #farmos |
| [15:39:51] | * sgoodall[m] has joined #farmos |
| [15:43:23] | * symbioquine[m] has joined #farmos |
| [15:45:46] | * ChuckWinter[m] has joined #farmos |
| [16:31:34] | * matrixtrix[m] has joined #farmos |
| [16:35:23] | * matrixtrix[m] has quit (Read error: Connection reset by peer) |
| [16:35:26] | * ChuckWinter[m] has quit (Read error: Connection reset by peer) |
| [16:35:26] | * ludwa6[m] has quit (Read error: Connection reset by peer) |
| [16:35:26] | * paul121[m] has quit (Read error: Connection reset by peer) |
| [16:35:26] | * shane_aldrich[m] has quit (Read error: Connection reset by peer) |
| [16:35:26] | * FreshiesFarmsLLC has quit (Read error: Connection reset by peer) |
| [16:35:26] | * jgaehring[m] has quit (Write error: Connection reset by peer) |
| [16:35:26] | * qoyyuum[m] has quit (Read error: Connection reset by peer) |
| [16:35:26] | * Noaht[m] has quit (Read error: Connection reset by peer) |
| [16:35:26] | * justgav1976[m]1 has quit (Read error: Connection reset by peer) |
| [16:35:26] | * mstenta[m] has quit (Read error: Connection reset by peer) |
| [16:35:26] | * sgoodall[m] has quit (Read error: Connection reset by peer) |
| [16:35:26] | * m035[m] has quit (Write error: Connection reset by peer) |
| [16:35:26] | * justgav[m] has quit (Write error: Connection reset by peer) |
| [16:35:26] | * skipper_is[m] has quit (Write error: Connection reset by peer) |
| [16:35:26] | * EvanKelley[m] has quit (Read error: Connection reset by peer) |
| [16:35:27] | * symbioquine[m] has quit (Read error: Connection reset by peer) |
| [16:35:27] | * MarcosCarballal[ has quit (Read error: Connection reset by peer) |
| [16:37:39] | * calbasi[m] has joined #farmos |
| [16:57:34] | * spitz234[m] has joined #farmos |
| [16:57:34] | * raul[m] has joined #farmos |
| [16:57:34] | * scrdcow[m] has joined #farmos |
| [16:57:34] | * ChuckWinter[m] has joined #farmos |
| [16:57:46] | * IyarkaiTechLab[m has joined #farmos |
| [16:57:46] | * qoyyuum[m] has joined #farmos |
| [16:57:46] | * lordeddi[m] has joined #farmos |
| [16:57:46] | * OmkarEkbote[m] has joined #farmos |
| [16:57:46] | * gretel[m] has joined #farmos |
| [16:57:46] | * ludwa6[m] has joined #farmos |
| [16:57:46] | * phantomse[m] has joined #farmos |
| [16:57:46] | * munjoma[m] has joined #farmos |
| [16:57:46] | * mstenta[m] has joined #farmos |
| [16:57:46] | * farmtech[m] has joined #farmos |
| [16:57:46] | * justgav[m] has joined #farmos |
| [16:57:46] | * iuresearcherpw[m has joined #farmos |
| [16:57:46] | * gunter[m] has joined #farmos |
| [16:57:46] | * shane_aldrich[m] has joined #farmos |
| [16:57:46] | * Noaht[m] has joined #farmos |
| [16:57:46] | * oliverp44[m] has joined #farmos |
| [16:57:46] | * EvanKelley[m] has joined #farmos |
| [16:57:46] | * mindcls[m] has joined #farmos |
| [16:57:46] | * goldi[m] has joined #farmos |
| [16:57:46] | * FreshiesFarmsLLC has joined #farmos |
| [16:57:46] | * symbioquine[m] has joined #farmos |
| [16:57:46] | * frederike[m] has joined #farmos |
| [16:57:46] | * olaf[m] has joined #farmos |
| [16:57:46] | * sgoodall[m] has joined #farmos |
| [16:57:46] | * m035[m] has joined #farmos |
| [16:57:46] | * kunigunde[m] has joined #farmos |
| [16:57:46] | * and712[m] has joined #farmos |
| [16:57:46] | * matrixtrix[m] has joined #farmos |
| [16:57:46] | * aislinnpearson[m has joined #farmos |
| [16:57:46] | * MarcosCarballal[ has joined #farmos |
| [16:57:47] | * davd[m] has joined #farmos |
| [16:57:47] | * harry[m]12 has joined #farmos |
| [16:57:47] | * ChristophWolfes[ has joined #farmos |
| [16:57:47] | * AllanMacGregor[m has joined #farmos |
| [16:57:47] | * hra38192639[m] has joined #farmos |
| [16:57:47] | * skipper_is[m] has joined #farmos |
| [16:57:47] | * steinfarm[m] has joined #farmos |
| [16:57:47] | * paul121[m] has joined #farmos |
| [16:57:47] | * jgaehring[m] has joined #farmos |
| [16:57:47] | * postmanpat[m] has joined #farmos |
| [16:57:47] | * JustGav[m]1 has joined #farmos |
| [16:57:47] | * Anonymous[m]1234 has joined #farmos |
| [16:57:48] | * JanSonntag[m] has joined #farmos |
| [16:57:48] | * SpencerOnazi[m] has joined #farmos |
| [17:19:45] | * raul[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * kunigunde[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * farmtech[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * IyarkaiTechLab[m has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * postmanpat[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * SpencerOnazi[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * davd[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * frederike[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * gretel[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * and712[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * OmkarEkbote[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * Anonymous[m]1234 has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * goldi[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * gunter[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * harry[m]12 has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * hra38192639[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * mindcls[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * iuresearcherpw[m has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * phantomse[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * steinfarm[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * olaf[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * AllanMacGregor[m has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * aislinnpearson[m has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * JanSonntag[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * ChristophWolfes[ has quit (Quit: You have been kicked for being idle) |
| [17:29:56] | * lordeddi[m] has quit (Quit: You have been kicked for being idle) |
| [17:29:57] | * oliverp44[m] has quit (Quit: You have been kicked for being idle) |