< 212022-12-22⋎23 >

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
16:03*farmBOT has joined
16:55mstenta[m]farmOS dev call in 5 minutes!
16:55mstenta[m]meet.jit.si/farmos-dev
17:00paul121[m]Oops lost track of time be there soon
19:58mstenta[m]paul121 symbioquine: at the risk of beating this dead horse any more... now i'm wondering if we should change the quantity `csv` view mode to `plain`
19:58mstenta[m]and maybe put it in the quantity module itself?
19:59mstenta[m]then we wouldn't need the extra farm_csv module (yet), and it feels like the view mode would better describe what it's actually doing (and be more generalized)
20:07mstenta[m]or plain_text like the Drupal core text formatter
20:12symbioquine[m]I like the idea of putting the whitespace removal code in the quantity module if that doesn't create some sort of circular dependency...
20:13mstenta[m]i think it would be pretty easy to... might give it a quick try and push a single commit to show
20:13mstenta[m](not on the same branch, so it's not cluttered in the PR)
20:14mstenta[m]i can't help but still feel unsatisfied with the PR
20:14symbioquine[m]The name change makes sense too, because the naming still works for a tsv file or similar then too.
20:14symbioquine[m]s/too/also/
20:15mstenta[m]true
20:16mstenta[m]yea, i feel like csv is too misleading
20:16mstenta[m]it's really just creating a plain text view of the quantity
20:16mstenta[m](a one-line plain-text view to be exact... but i think plain_text is sufficient)
20:26mstenta[m]yea actually... I think I like this better now that I see it
20:29mstenta[m]github.com/mstenta/farmOS/commit/a1e21c5
20:30mstenta[m]what this does is, rather than using a hook to add a #post_render callback to quantities, it extends the EntityViewBuilder class in the quantity module itself, so it is a core feature of Quantity entities essentially
20:30mstenta[m]a "plain text" view mode
20:31paul121[m]that's grea!
20:31mstenta[m](full disclosure: i just sketched up the commit... actually testing to see if it works now... 😄)
20:31paul121[m] * that's great!
20:45mstenta[m]It works!
20:46mstenta[m]Oh this feels much better. I think we've resolved the "cruft" issue!
20:46mstenta[m]Even though it's essentially the same thing... just naming it properly and putting it in the right place makes all the difference.
20:56mstenta[m]OK, I made a fresh branch cleaned up to remove all the other commits: github.com/farmOS/farmOS/compare/2.x...m
20:57mstenta[m]OK if I force push this to replace the branch in the current PR and then merge?
22:13paul121[m]<mstenta[m]> "OK if I force push this to..." <- Yes, although I think we need an update hood to create the new view mode
22:13paul121[m]* Yes, although I think we need an update hook to create the new view mode
22:16mstenta[m]Oh yes! Good thing I had that logic in a previous commit (I think) :-)
22:16mstenta[m]Thanks I almost forgot that
22:16mstenta[m]I'll update that and force push when I have a chance

< 212022-12-22⋏23 >