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