< 042020-01-05⋎06 >

farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Feature requests and bug reports: github.com/farmOS/farmOS/issuesSet by ChanServ on 2018-08-16 at 14:32
00:01generalredneck[m> Hmm I don't think it will be possible to use VBO on sensor data... :-(
00:01generalredneck[mSo I take it you mstenta don't want to coach paul121 on how to start wring views handlers :p not that I blame ya :p
00:02generalredneck[mBah quote fail
00:02generalredneck[mRiot phone client leaves some things to be desired
00:04generalredneck[mFyi about the form handler @paul121... use the code from the `dblog` module for an example. There is a tab with a form for deleting all log entries that you could copy and past and get the confirm
00:10generalredneck[mI'm thinking Drupal 8 behavior... D7 is super straight forward git.drupalcode.org/project/drupal/blob/7
00:37mstenta[m]@generalredneck:matrix.org: I don't think VBO can be used with Views that are not based on entities
00:38mstenta[m]Unless I'm mistaken. Otherwise I'd love to coach paul121 on writing a custom VBO action! :-)
00:40mstenta[m](we were talking about adding a VBO button to the sensor data View, which shows rows in the {farm_sensor_data} table)
00:40mstenta[m]But yea in general Views handlers are a deep dive for sure ;-)
00:46generalredneck[mYeah I just found the documentation around what you were saying. That said... if toy made the sensor data rows custom entities... it would work... probably more work than it's worth unless you wanna take a advantage of the hook system to be able to do things when sensor data of certain types are recorded.
00:46generalredneck[mThis is obviously me spouting off without having looked at the code
00:47mstenta[m]That's true it would be possible if each row were an entity
00:48generalredneck[mIn d8 there is benifiet (and ease) to making everything either a field type or entity type
00:48mstenta[m]I wonder what the overhead would be
00:48mstenta[m]Any?
00:48mstenta[m]More code to maintain...
00:50generalredneck[mThere is a performance cost if you use the entity system to create the data. From a views perspective... of you are using the field display handler instead of rendering entities there would be no change there
00:50mstenta[m]It is a shame that VBO only works with entity tables
00:51generalredneck[mThe benifiets of displays, bundles, and integration could be a big place though... depending on the outlook
00:51mstenta[m]Oh hmm...
00:51mstenta[m]So... Could the data be stored in a... field??
00:51mstenta[m]🤯
00:51generalredneck[m100%
00:51mstenta[m]Haha why didn't I think of that
00:51generalredneck[mWe do that all the time
00:51mstenta[m](well D7 that's why I guess)
00:52mstenta[m]I'm still a little skeptical...
00:52mstenta[m]Potentially a LOT of data
00:52generalredneck[mBecause it's free views handling... migration handling and integration everywhere
00:52mstenta[m]I know folks storing one data point every minute
00:52generalredneck[mOn one entity correct?
00:53mstenta[m]Fields tables might be too bulky, no?
00:53mstenta[m]Yes per entity
00:53generalredneck[mHow do you store the data? Serilized text blov?
00:53mstenta[m]And multiple entities
00:54mstenta[m]Well... So the sensor asset has a "sensor type"
00:54mstenta[m]So modules can define types, with their own storage
00:54mstenta[m]farmOS comes with a simple one called listener
00:54generalredneck[mIf the data is fixed character limits... "varchar" it will be fast for a long time
00:54mstenta[m]Which has a database table called {farm_sensor_data}
00:54generalredneck[mAh I see... so it really does act like an entity on its own
00:55mstenta[m]Columns: timestamp, sensor_id, name, value
00:55mstenta[m](iirc)
00:56generalredneck[mI think you would have a less performant query with one table like that unless you are heavily indexed than you would with an entity that allowed you to attach fields to it
00:57mstenta[m]Yes agreed. That was a trade-off we made in the beginning to keep the listener relatively flexible
00:57mstenta[m]And also why we made it possible to have other sensor types
00:59mstenta[m]So I think I need to understand what you're proposing a little better. I want to make sure I'm not misunderstanding
00:59generalredneck[mLet me get to a computer and draw something up
00:59mstenta[m]Right now we have an asset type (bundle) called sensor
00:59mstenta[m]Haha ok well no pressure :-)
01:00mstenta[m]You got me thinking now though :-)
01:01mstenta[m]You're proposing making the sensor data table into a field on that bundle, right?
01:02generalredneck[mThe main thing is when a table gets large it has to go into ram at some point and I think farm_sensor_data... if done a certain way would start having issues... but that's only if you used text or blog fields like drupal likes to do
01:04generalredneck[mso what i'm proposing is that the sensor data itself be an entity in addition to the asset... and you use an entity reference to link the 2
01:05generalredneck[mThis would allow you to make bundles of sensor data
01:05mstenta[m]So one idea I proposed (as a next step that can be updated with update.php) is to auto create tables for each sensor+name combination (which certainly adds complexity to maintain)
01:05mstenta[m]Ah ok (sensor data as entity)...
01:06mstenta[m]Interesting
01:06symbioquineWhy not use some sort of time-series database that is optimized for that sort of data?
01:07mstenta[m]symbioquine: yes! That's a good example of where a new sensor type i makes sense
01:07mstenta[m]You could create a type that connects to the time series database
01:07mstenta[m]Or heck, a CSV file
01:08mstenta[m]Point being: you can have different storage systems if you want
01:08generalredneck[mwhich in D8... storage systems on an entity is a thing too
01:09generalredneck[mit doesn't have to be the database, but I've not seen someone take real good advantage of it.
01:09mstenta[m]Oh yea??
01:10mstenta[m]Here's some relevant forum discussions:
01:10generalredneck[mby default it's "sql" storage
01:10mstenta[m]farmos.discourse.group/t/integrating-an-
01:10mstenta[m]farmos.discourse.group/t/sensor-data-sto
01:10mstenta[m]farmos.discourse.group/t/controlling-rem
01:11mstenta[m]Ooh yeah
01:11mstenta[m]I wonder if we could leverage that
01:12generalredneck[mthis was a protype... showcasing such www.drupal.org/project/external_entities
01:13mstenta[m]My thought is: the "listener" type is a simple, flexible, up and running quick type... And other advanced types can fill in more use cases
01:13generalredneck[m * this was a prototype... showcasing such www.drupal.org/project/external_entities
01:13mstenta[m]Oh very neat
01:14generalredneck[mWhen Ron Northcutt demoed it to us at Texas Camp a long time ago... he was getting his external entities from the Wikipedia API
01:14generalredneck[mand so his entities used THAT as the store
01:15generalredneck[mso when you saved an entity it did a Put or Patch against the api... and did a GET to retrieve the entity from the api...
01:16mstenta[m]Wow
01:16generalredneck[mI know that's a little off topic from our original discussion, but theoretically you could do something simular with sensor data in D8
01:16mstenta[m]Oh yea totally
01:17mstenta[m]So writing an integration with a time series database (for example) would be done via standard Drupal sub system
01:18generalredneck[mbut given what symbioquine said... yeah your way of handling it is best... obviously whomever creates intergration would have to account for the "Delete all option" paul was talkign about earlier
01:18mstenta[m]Mmm true
01:19mstenta[m]Maybe we need a delete function that hooks into each sensor type, to handle that
01:19generalredneck[mif you fire hooks for the standard CRUD things and not just make a quick query like we recomended to paul... then that would work out
01:20generalredneck[myou are displaying the sensor data via views right now though
01:20generalredneck[mso you are kinda limited to a sql db anyway
01:21mstenta[m]symbioquine: ps saw your replies on the GitHub issues. Great details! I will respond when soon!
01:21mstenta[m]@generalredneck:matrix.org: yea
01:22mstenta[m]Which is really all we need
01:22mstenta[m]For simple sensor data anyway
01:23mstenta[m]So custom db table + hook_views_data() was a simple first step
01:23mstenta[m]As we head into D8, though, it's an opportunity to reassess
01:23generalredneck[myeah I hear ya. so we can test this.... we can have a script create millions of records and see what happens. I had a client just the other day who had a 2GB dblog table... that was a fun performance thing to find :P
01:23mstenta[m]Haha cool
01:24mstenta[m]Yea stress testing ++ :-)
01:24mstenta[m]Let's do it
01:24mstenta[m]Be good to have some numbers
01:36generalredneck[mso farm_sensor_data is literally 5 fields... all of the fields sized... keep it.
01:37generalredneck[mso sensor data can never be a string... which means you would have to convert values to a numerical representation...
01:37generalredneck[mexample... S == South == 180
01:38mstenta[m]True only numerical data can be stored currently
01:38generalredneck[mbut no... you have a multifield key on this table... so it's indexed by that key
01:39generalredneck[mso you've pretty much did all the performance tuning on that one table you can with the current setup
01:39generalredneck[mand it SHOULD be pretty damn fast... and the only time you will ever have a headache is if you are returning say all the data for one sensor.
01:40mstenta[m]Ok cool
01:40mstenta[m]Yea that makes sense
01:41mstenta[m]And a potential next step, if we hit limits with this approach, is dynamically generate tables for each data name
01:41mstenta[m]So we have separate tables for eg temperature, humidity, etc
01:41generalredneck[mthat would be just like the fields table implementation
01:42generalredneck[mwhich was kinda why I was pitching the idea...
01:42mstenta[m]Gotcha gotcha
01:42mstenta[m]Makes perfect sense
01:43generalredneck[mdrupal's data structure is pretty performant... it's all the other shit to make sure you can be extensible that's not...
01:44generalredneck[mlike as a site developer.. one of the biggest performance favors you can do yourself is use nodes as nodes but if you got other custom objects that isn't specifically "content", create a custom entity type... even if you have to use ECK to do it :P
01:45generalredneck[mfun module if you want to prototype something... or don't want to bother with doing the leg work of hooking up all the wiring... www.drupal.org/project/eck
01:48mstenta[m]Oh yea I've seen that... Haven't tried it though
01:48*is nostalgic for CCK
01:49mstenta[m]Wait no I'm not
01:49generalredneck[mthe Four Kitchens team uses it pretty heavily in conjunction with paragraphs to make content represent "things"
01:50mstenta[m]Ah yes paragraphs
01:50mstenta[m]Another I've yet to try
01:51mstenta[m]I was involved in the issue thread about deprecating Field Collection in favor of Paragraphs
01:51generalredneck[mwell for what you are doing here... you don't have to try a whole lot. as a drupal consulting agency... (and in site support & maitenice no less) I get exposed to a lot
01:51mstenta[m]Yea I can imagine!
01:51mstenta[m]I've tried to keep farmOS as "simple" as possible
01:51generalredneck[m> I was involved in the issue thread about deprecating Field Collection in favor of Paragraphs
01:51generalredneck[mOr... how about this noval idea... a totally different entity because that's all a field collection is...
01:51mstenta[m]To minimize dependencies etc
01:52generalredneck[mcept it went totally wrong somewhere :P
01:52mstenta[m]Yes! Well I'm all in to just create custom field types in farmOS D8 instead of field collections :-)
01:52generalredneck[mI was involved in creating the migration handlers for Field Collections for D7 to D8
01:53generalredneck[mIf you need some help migrating data... I can help you there... I was thinking about that the other day actually
01:53mstenta[m]Oh wow!
01:53generalredneck[myou are going to have to write handlers to go from d7 to d8 entities
01:53generalredneck[massuming you want people to have an upgrade path
01:54mstenta[m]Yes yes
01:54mstenta[m]Migration is a huge part of the upgrade
01:55generalredneck[mthank god MIgrate is so much more intuitive in D8 IMO... since it's mostly configuration now
01:55mstenta[m]Oh man I'm excited
01:56mstenta[m]As excited as you can be for data migration :-)
01:57generalredneck[mWell take a look at this!
01:57generalredneck[mgithub.com/NCAR/drupal_8_migration_examp
01:57generalredneck[mthis is a whole migration...
01:57generalredneck[mthis one does a d7 file to a d8 file entity
01:58generalredneck[mit's using all built in functionality
01:58mstenta[m]😍
01:59generalredneck[mlike process plugins do 1 thing... they take an input and change it so that it achives what you want
01:59generalredneck[mand that's the real meat of the action
01:59generalredneck[mhere's the full list of core ones... www.drupal.org/docs/8/api/migrate-api/mi
02:00generalredneck[mso example... you have 2 fields you want to stick together to make the title you are migrating into... you used to have to like putz around with prepare_row() and all that jazz... now you have
02:02*sent a long message: < matrix.org/_matrix/media/r0/download/mat >
02:02generalredneck[mtada... title = field1 + field2
02:04generalredneck[mthat's a basic thing but... there are some that are not so basic such as migration_lookup and flatten...
02:04generalredneck[mand it's super simple to add your own bits of reusible functionality...
02:12mstenta[m]Cool!
02:12mstenta[m]I'm curious about using Migrate instead of Feeds for CSV importers
02:13generalredneck[mDo it
02:14generalredneck[mI use migrate instead of feeds to pull in json data from cron jobs. It's much more performat
02:16mstenta[m]Is it end user friendly?
02:16mstenta[m]Eg a rancher importing animal birth/weight logs
02:19generalredneck[mNaw... totally still a use case for that
02:20generalredneck[mTheres no user interface that I know of currently that allows you to manipulate a migration via the ui
02:21mstenta[m]Womp :-(
02:22generalredneck[mPulling information from a fix api is pretty easy though. Example this is part of evercurrent
02:23*posted a file: migrate_plus.migration.evercurrent_server_sa_json.txt (3KB) < matrix.org/_matrix/media/r0/download/mat >
03:11generalredneck[mSo question... I see you last did anything for d8 7 months ago... are you looking for pretty much a straight translation of entities and data to start with? Or do you have the grand plan somewhere?
03:21mstenta[m]A mix of those two :-)
03:25mstenta[m]For the most part, the entities will be a straight translation
03:26mstenta[m]With some exceptions like field collections
03:26mstenta[m]And some things moving out to other places
03:27mstenta[m]Like the map stuff to farmOS-map (my current endeavor)
03:27mstenta[m]And quick forms to field modules
03:36generalredneck[mWell if we get the data model down first (regardless of what the field widgets look like) we can start doing the migration work and massage it out as things change. Quick forms for example wouldn't have any bearing on migration except for some configuration settings.
03:36generalredneck[mSomething to keep in mind... configuration is now entitles too and thus migratable. In fact you can migrate a core D7 site (configuration and all) using the core migrate_updaye module... and you can hook into that with your own modules to help migrate over your own configuration and data.
03:38mstenta[m]Yes very true! And the quick form stuff can happen in parallel in Field Kit
03:39mstenta[m]I need to familiarize myself with all the possibilities in migrate
03:40mstenta[m]I've used the contrib migrate long ago
03:40mstenta[m]And have seen some details of the core d8 migrate. Very exciting to see how far it has come
03:41mstenta[m]I'm hoping we can make the process pretty painless
03:41mstenta[m]And then hit the ground running in d8 :-)
03:42mstenta[m]I have a draft roadmap coming together, hoping to publish soon
03:42mstenta[m]The broad strokes are there
03:42mstenta[m]But the devil is in the details always
03:43mstenta[m]First steps are underway
03:44mstenta[m]The Openlayers module was the biggest dependency without an upgrade path
03:45mstenta[m]The new farmOS-map library will replace that in D7 and be reusable in D8 as well
03:46mstenta[m]Almost done. Planning on including it in 7.x-1.3
04:08generalredneck[mFor migration we will likely have to start here www.drupal.org/docs/8/api/migrate-api/wr
04:10generalredneck[mBecause we have to do like nodes and create a migration for every asset and log type.
06:29symbioquineAwesome, mstenta[m] no rush on the issues, but it's cool to get to the bottom of them :)
06:35symbioquineI might be stating the obvious, but the big "selling point" of time series databases is how they can perform special kinds of rolling aggregations and do things like age-out the fine-granularity datapoints while keeping the aggregations. e.g. feed in per-minute/second temperatures, but query average/percentiles/etc at the hour or day level. I don't think dropping subsets of the datapoints tends to be one of their strengths
06:35symbioquineactually.
11:16*symbioquine_ has joined
11:19*symbioquine has quit (Ping timeout: 258 seconds)
11:29*symbioquine__ has joined
11:32*symbioquine_ has quit (Ping timeout: 240 seconds)
12:26*JustTB has quit (Quit: Leaving.)
13:59*JustTB has joined
14:37mstenta[m]generalredneck (@generalredneck:matrix.org): interesting
16:57paul121[m]It would be fairly easy to add a time series DB container to the docker-compose file, yea?
16:57paul121[m]That's probably not the best for production though?
17:29*JustTB has quit (Ping timeout: 240 seconds)
17:31mstenta[m]Definitely!
17:31mstenta[m]Prod would work
17:43*JustTB has joined
20:28mstenta[m]Question for all: is there ever a need for a log to have BOTH a "movement geometry" and a more general "log geometry"? Or is it redundant?
20:29mstenta[m]Currently it's possible to have two geometries on some logs, and I'm considering simplifying to one geometry in the future.
20:30mstenta[m]Can you think of cases where it would be useful to have both? Imagine you are recording the movement of an asset (animal, planting, equipment, etc). Is there ever a time when you might want to have an additional (non-movement) geometry on the same log?
20:38symbioquine__From the verbiage in FarmOS, it sounds like they were intended to be mutually exclusive, but it looks like one could use the current implementation to describe their garden/farm in terms of coarse-grained areas, then use the geometry to track specific locations within those areas...
20:41symbioquine__I would imagine that would tend to make more sense for larger perennials.
20:45symbioquine__It would also be useful for small trial plantings where you might only have a few rows of something in a larger bed.
20:56mstenta[m]Yes that's correct - the "movement geometry" field allows you to define a more precise movement geometry.
20:56mstenta[m]farmos.org/guide/location/#movement-fiel
20:57mstenta[m]The question is: many logs have a "Movement Geometry" field (for defining asset location) AND a general purpose "Geometry" field. Do we need both?
20:57mstenta[m]Or, could we just have a single "Geometry" field on logs, and a simple checkbox that says "This log is a movement" - which then tells farmOS to use that geometry field for asset location.
20:58mstenta[m]Or are there cases where you need BOTH a movement geometry AND a general geometry on a log?
20:58mstenta[m](This is a very nuanced question I admit - I think most users don't even realize there are two fields - and I think that can also cause confusion)
20:58symbioquine__So this is separate from the association of an asset with an area?
20:59mstenta[m]If you want to see what I mean, go to Logs > Activities and create a new activity log
21:00mstenta[m]You'll see there is a "Location" group on the left, with a "Geometry" field in it.
21:00mstenta[m]And there is ANOTHER separate Geometry field in the Assets > Movement group.
21:01mstenta[m]I'm thinking about simplifying to just one.
21:01symbioquine__I see
21:01mstenta[m]With a simple checkbox to say "Treat this log as a movement"
21:01paul121[m]> Currently it's possible to have two geometries on some logs, and I'm considering simplifying to one geometry in the future.
21:01paul121[m]For an observation log, you might want to simply record multiple points on a map for that observation. i.e Weeds in field, or rocks in field
21:02mstenta[m]paul121: Right. So in that case you would leave "This is a movement" unchecked.
21:02mstenta[m]Question is: are there cases where you need/want both?
21:02mstenta[m]Both a movement AND just a regular area reference
21:03paul121[m]Hmm
21:04paul121[m]For a movement, the `activity` log would have to have an `asset` associated with it, correct?
21:04mstenta[m]Correct
21:04paul121[m](or an `observation` log)
21:04mstenta[m]Yea, or any log type that's defining a movement
21:07paul121[m]And if, in the `geometry` group you selected an area instead of custom geometry, that would auto check "treat this as a movement"
21:07mstenta[m]No I think you would need to manually click "treat this as a movement" no matter what... that should be an intentional choice IMO
21:07paul121[m]Seems like if you ever did a movement and needed to reference a custom geometry, the custom geometry reference would be better off in a separate log
21:08mstenta[m]Yea that's sort of my thinking as well
21:08mstenta[m]I'm trying to remember my thinking from a long time ago :-)
21:08paul121[m]Otherwise you're doing a movement and observation in the the same log
21:08mstenta[m]I feel like I had some use-cases in mind where having both would be useful
21:08mstenta[m]But now I can't think of them
21:08mstenta[m]And even if I did have ideas... it might be better to be more explicit and force the user to create separate logs
21:09paul121[m]Question: what was the intention of allowing movements in other `log` types?
21:09paul121[m]Why not force people to use `movement` logs?
21:09mstenta[m]There is no `movement` log by itself
21:10mstenta[m]Movements are really just a field on a log
21:10paul121[m]Got it
21:10paul121[m]Similar to `inventory` and `group`
21:10mstenta[m]This allows you to define asset location with an `activity`, `observation`, `seeding`, `transplanting`, etc
21:10mstenta[m]Yea exactly
21:11mstenta[m](although little known fact: movement logs USED to be their own type :-) )
21:11mstenta[m]www.drupal.org/project/farm/issues/28711
21:12paul121[m]Ohh so it's a "Field Collection" ?!
21:12paul121[m](starting to figure this out)
21:12mstenta[m]Yea... and I want to move away from Field Collections entirely
21:12mstenta[m]They are unneeded complexity
21:13mstenta[m]And deprecated in D8
21:13paul121[m]Ah ok. What does D8 use?
21:14paul121[m]Is there a visual map of the hierarchy of nodes/entities in Drupal? Something that expands to include Views + VBO + Fields + Field Collections?
21:14mstenta[m]The Paragraphs module has taken over... both are contrib modules... not in Drupal core. So the Field Collection maintainers are saying to use Paragraphs instead. But Paragraphs is not a great fit for us, nor do we really need the complixity of either.
21:14paul121[m](I'm thinking similar to that JS Function Pyramid - staltz.com/javascript-getter-setter-pyra)
21:14mstenta[m]We should make one for farmOS
21:15paul121[m]Especially going into D8.. that would help a lot
21:16paul121[m]Then I wouldn't ask if Movements were a log type :-)
21:16mstenta[m]Yea it would be nice to have a visual
21:16mstenta[m]But for the sake of simplicity, just think of "movements" as a field on logs
21:17mstenta[m](Technically they are a Field Collection right now... which is a type of field... but I want to make them just a plain field type)
21:17mstenta[m]www.drupal.org/project/farm/issues/29913
21:18paul121[m]So back to the original question..
21:18paul121[m]Is the current `Location` a field?
21:18mstenta[m]In that issue you can see "Potential hurdles" where I describe part of the reason why I'm asking the original question
21:19paul121[m]Or is Location -> Geometry a `field` ?
21:19mstenta[m]> The two fields contained in the Movement Field Collection already exist on many of the Log entities, so there would be a conflict moving them there. They would need to be renamed.
21:19mstenta[m]Yea, "Location" is a "field group" with two fields in it: "Areas" and "Geometry"
21:19mstenta[m]Areas is an area reference field
21:19mstenta[m]Geometry is a geofield
21:19mstenta[m]The "Movement" Field Collection has those same two fields in it
21:20paul121[m]Gotcha
21:23mstenta[m]The biggest consideration is: if there ARE folks using both sets of fields on the same log, and we remove one of the fields in future version, we need to decide how the automatic migration code should handle that
21:23mstenta[m]I wouldn't want to discard that data
21:23mstenta[m]So maybe it would split the log into two
21:24mstenta[m]One movement, and one non movement
21:24mstenta[m]But... there may NOT be any cases where both are used in the wild... I don't know!
21:25mstenta[m]Because in simplifying, we would essentially be taking away existing functionality
21:26mstenta[m](oh just had an idea... this could be an interesting use-case for the aggregator... as a way to report usage of certain features in a way we could use for development decisions) :-)
21:38mstenta[m]Get ready for a lot of nitty gritty questions like these as we work towards farmOS 2.x :-)
21:38mstenta[m]It's my chance to refactor things that have been on my mind for a while
21:45paul121[m]> (oh just had an idea... this could be an interesting use-case for the aggregator... as a way to report usage of certain features in a way we could use for development decisions) :-)
21:45paul121[m]haha yea just thought about that!
21:46paul121[m]mstenta: did you get a chance to read my thoughts here? github.com/farmOS/farmOS-aggregator/issu
21:46paul121[m]No worries, its kinda a lot
21:46mstenta[m]no sorry! i'm meaning to!
21:46mstenta[m]i have it in my inbox, so i will i promise...
21:47paul121[m]*but* .... I think tracking something like "are there any logs that define a movement and additional geometries?" would be pretty easy to implement!
21:49symbioquine__Hard to retroactively query older versions for new kinds of information though right?
21:50mstenta[m]Right - it would have to be something we do in advance
21:50mstenta[m]But I don't think that will be necessary...
21:50mstenta[m]We can just write migration code to handle those cases if they exist
21:50mstenta[m]I think that's the right approach
21:50mstenta[m]So we don't really need to know if it's used or not... we just need to provide a migration
21:51paul121[m]Makes me curious if we could start collecting some of this kind of use data
21:51paul121[m]And the migration to D8 would be a good time, in a way
21:52paul121[m]re: the aggregator collecting that info - it would require getting all `logs` and checking if they define a `movement` and `geometries`
21:52mstenta[m]This particular one is very very edge-case I think - I don't know if it's worth going out of our way for something like this
21:52paul121[m]which requires a permission of "reading all logs"
21:53paul121[m]BUT the farmOS server "metrics module" could have something that checks if anyone has a movement + geometry, and could provide a `yes` or `no` to the aggregator, without providing the data in all those logs
21:54mstenta[m]true
21:54paul121[m]> This particular one is very very edge-case I think - I don't know if it's worth going out of our way for something like this
21:54paul121[m]probably not! haha but in general, it would be good to proactively collect some kinds of info?
21:54mstenta[m]yea the metrics approach is a good idea
21:54paul121[m]If people opt in :-)
21:54mstenta[m]yes - this ^
21:55paul121[m]Having a `metrics` module would make it a lot easier. "Calculating" metrics on the farmOS server makes more sense than from the Aggregator backend
21:56mstenta[m]Yea agreed
21:56mstenta[m]And it's like a pre-anonymization step
21:56paul121[m]exactly
21:56mstenta[m]It would be really easy to expose the existing dashboard metrics
21:56paul121[m]and in the module certain metrics could be disabled, even
21:57mstenta[m]oh yea that's a good idea
21:57paul121[m]> It would be really easy to expose the existing dashboard metrics
21:57mstenta[m]gotta run! dinner time
21:58paul121[m]^^ The community aggregator needs a running count of `Acres managed` :D
21:58mstenta[m]that would be awesome
21:58mstenta[m]although easy to exploit... i could just make a polyon in test.farmos.net that encompasses the whole US ;-)
21:59paul121[m]ugh true
21:59mstenta[m](and then you could block me) ;-)
21:59paul121[m]we could put a max size limit in the calculation
21:59paul121[m]it'll never be perfect
22:00mstenta[m]nope - and it doesn't have to be
22:00mstenta[m]ttyl!
22:06symbioquine__Yeah, would be pretty easy to ignore unreasonably large acreage values (Maybe > 1000 acres) unless the FarmOS install in question is whitelisted. Of course the advantage of doing the calculation on the aggregator-side would be that the logic could eventually be even smarter and detect likely bogus data e.g. Separate installations with overlapping areas, intersections with open ocean, etc
22:12paul121[m]Good points. especially ocean
22:31mstenta[m]Haha true
22:31mstenta[m]Unless you're a floating farm ;-)
22:51symbioquine__Well, in that case you could be whitelisted :)

< 042020-01-05⋏06 >