< 162022-09-17⋎18 >

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
05:36*polo has joined
05:51*polo has quit (Ping timeout: 265 seconds)
06:01*Guest9599 has joined
06:01*Guest9599 has quit (Changing host)
06:01*Guest9599 has joined
06:01*Guest9599 is now known as Guest9599
06:03*polo has quit (Remote host closed the connection)
06:04*polo has joined
06:09*polo has quit (Ping timeout: 264 seconds)
06:10*polo has joined
06:10*polo has quit (Changing host)
06:10*polo has joined
06:17*farmBOT has joined
07:02*polo has quit (Quit: Textual IRC Client: www.textualapp.com)
07:03*owsley_ has joined
07:04*owsley_ has quit (Client Quit)
07:05*polo has joined
07:11*owsley_ has joined
07:37*polo has quit (Ping timeout: 244 seconds)
07:38*owsley_ has quit (Ping timeout: 244 seconds)
07:40*polo has joined
07:40*polo has quit (Changing host)
07:40*polo has joined
07:49*polo has quit (Ping timeout: 265 seconds)
07:49*Guest4002 has joined
07:49*Guest4002 has quit (Changing host)
07:49*Guest4002 has joined
07:49*Guest4002 is now known as Guest4002
07:53*polo has quit (Client Quit)
07:54*polo has joined
08:10*polo has quit (Quit: Textual IRC Client: www.textualapp.com)
08:11*Guest9691 has joined
08:11*Guest9691 has quit (Changing host)
08:11*Guest9691 has joined
08:12*Guest9691 is now known as Guest9691
08:12*polo has quit (Client Quit)
08:12*polo has joined
08:12*polo has quit (Changing host)
08:12*polo has joined
08:14*polo has quit (Client Quit)
09:00*perfectinfoseeke has quit (Quit: You have been kicked for being idle)
12:36*Guest7284 has joined
12:37*Guest7284 has quit (Changing host)
12:37*Guest7284 has joined
12:37*Guest7284 is now known as Guest7284
12:53*polo has quit (Quit: Textual IRC Client: www.textualapp.com)
12:53*polo has joined
13:28*polo is now known as polo
13:29*money is now known as money
13:29*polo is now known as polo
13:29*money is now known as money
13:29*polo is now known as polo
13:30*money is now known as money
13:30*polo has quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
13:31*Guest8711 has joined
13:36*Guest8711 has quit (Ping timeout: 250 seconds)
14:31symbioquine[m]woot! www.drupal.org/project/subrequests/issue
15:46mstenta[m]awesome!!
15:48mstenta[m]and a new release!
15:49mstenta[m]symbioquine paul121 PR for preventing circular asset location, per our earlier discussion: github.com/farmOS/farmOS/pull/568
15:53paul121[m]You've been busy this morning :D
15:59mstenta[m]In thinking about these circular reference validators... I think I can imagine another situation that could lead to them... which might warrant a follow up
16:00mstenta[m]Is it possible to save a "valid" log (that does not create a circular relationship), and then delete or revert another log that passively "invalidates" it?
16:01mstenta[m]> delete or revert another log
16:01mstenta[m]actually edit/delete/revert
16:01mstenta[m]this is an edge case, and I think we can at least start with this PR... but it got me thinking
16:02mstenta[m]writing some tests would be a good way to understand this better
16:04mstenta[m]this started with the question: does "reverting" an entity revision run entity validation on it? otherwise it might be possible to "revert" to a state that would be considered "invalid" were it to be manually saved now
16:06paul121[m]Ah interesting
16:06mstenta[m]I think what's unique about these validators is they aren't just looking at data on the entity that's being saved... they are also looking at the state of current relationships between other entities
16:07symbioquine[m]Did you figure out whether those possible race conditions I pointed out are real?
16:08mstenta[m]No we should investigate that too... I still have the @todo
16:08mstenta[m]I figure we get these initial PRs in which provide "basic" protection, which is better than none... then investigate the edgier cases
16:09symbioquine[m]Yeah, some of the race conditions may not be completely preventable.
16:09mstenta[m]Yea :-/
16:09mstenta[m]Some of these circular relationships may be hard to prevent too
16:09symbioquine[m]Might be best to also have "query side" protections against - and or UX for - circular references...
16:09mstenta[m]But the most basic ones are easy enough to defend against
16:10mstenta[m]The tricky part is thinking through all the possible things that can change to cause them to become invalid
16:10symbioquine[m]yeah
16:10mstenta[m]eg: what if you shuffle around the timestamps of a bunch of movement logs
16:10symbioquine[m]Do migrations honor those integrity checks?
16:10mstenta[m]Yes
16:10symbioquine[m]cool
16:11mstenta[m]that's something we worked on before beta... glad we did
16:11mstenta[m](led to some headaches cleaning up old data... but better to clean it up!)
16:13mstenta[m]> eg: what if you shuffle around the timestamps of a bunch of movement logs
16:13mstenta[m]hmm 🤔 this makes me think that these validation checks need to be taking the timestamp of the log they are validating into account
16:14mstenta[m]otherwise if you edit an older log, it will be validated against the current state of things, which is not what you want
16:16mstenta[m]this would require adding a `$timestamp` parameter to all the location (and group) service methods
16:17mstenta[m]which would be great

< 162022-09-17⋏18 >