12 Apr 2024 |
symbioquine | It does bake-in some of our conventions and I'm not sure if I ever plan to vend it as a default Asset Link plugin, but I'm open to the idea of converging on some version that could be included in Asset Link by default. | 17:37:03 |
mstenta | Yea makes me wonder: is it possible for an asset link plugin to alter another asset link plugin? | 17:37:38 |
mstenta | eg: if a "generic" plugin were provided, but you wanted to add some customizations on top | 17:37:54 |
symbioquine | Yes, there are two main ways that can occur... | 17:47:48 |
symbioquine | https://symbioquine.github.io/farmOS_asset_link/tutorial-extension-model.html | 17:48:36 |
mstenta | Wow this documentation has come a long way! | 17:49:27 |
symbioquine | Yeah | 17:49:41 |
mstenta | As a non-Vue.js dev, would you recommend learning some basics before diving into this? | 17:52:19 |
symbioquine | In reply to symbioquine Yes, there are two main ways that can occur... The most common way this happens is that pugins can consume "slots" from other plugins. | 17:52:55 |
symbioquine | The less common way is that some plugins can be interpreted as data by other plugins. | 17:53:29 |
symbioquine | So you could have a yml file defining a convention and another plugin could use that to do useful stuff on its behalf. | 17:54:22 |
symbioquine | In reply to mstenta As a non-Vue.js dev, would you recommend learning some basics before diving into this? Not much. But a quick tutorial or two couldn't hurt. | 17:59:52 |
symbioquine | I'm also happy to answer questions or make quick demos showing how to accomplish stuff in Asset Link. | 18:01:10 |
symbioquine | There's already quite a few of those in the forum too. | 18:01:41 |
farmBOT | @farmOS@fosstodon.org => #farmOS 3.2.1 has been released! https://github.com/farmOS/farmOS/releases/3.2.1 => https://fosstodon.org/@farmOS/112259239065254835 | 18:54:16 |
13 Apr 2024 |
symbioquine | Just ran into https://www.drupal.org/project/drupal/issues/3066202#comment-13181270 again 😮💨 | 14:54:02 |
symbioquine | const childrenFilter = computed(() => {
if (!selectedParents.value.length) {
return [];
}
return [{
kind: 'group',
op: 'AND',
filter: selectedParents.value.map(selectedParent => ({
// This inner OR group shouldn't be needed, but there is a bug in how
// multiple conditions against the same field are handled in Drupal Core
// https://www.drupal.org/project/drupal/issues/3066202#comment-13181270
kind: 'group',
op: 'OR',
filter: [{
kind: 'attribute',
attribute: 'parent.id',
op: '=',
value: selectedParent.id
}]
}))
}];
});
| 14:54:57 |
symbioquine | or in raw JSON:API;
https://example.farm/api/asset/animal
?filter%5Bclient-group-0%5D%5Bgroup%5D%5Bconjunction%5D=AND
&filter%5Bclient-group-1%5D%5Bgroup%5D%5Bconjunction%5D=AND
&filter%5Bclient-group-1%5D%5Bgroup%5D%5BmemberOf%5D=client-group-0
&filter%5Bclient-group-2%5D%5Bgroup%5D%5Bconjunction%5D=OR
&filter%5Bclient-group-2%5D%5Bgroup%5D%5BmemberOf%5D=client-group-0
&filter%5Bclient-parent-id-1%5D%5Bcondition%5D%5Bpath%5D=parent.id
&filter%5Bclient-parent-id-1%5D%5Bcondition%5D%5Boperator%5D=%3D
&filter%5Bclient-parent-id-1%5D%5Bcondition%5D%5Bvalue%5D=54102a3b-1f90-4e39-b36b-841ba601c68a
&filter%5Bclient-parent-id-1%5D%5Bcondition%5D%5BmemberOf%5D=client-group-1
&filter%5Bclient-parent-id-2%5D%5Bcondition%5D%5Bpath%5D=parent.id
&filter%5Bclient-parent-id-2%5D%5Bcondition%5D%5Boperator%5D=%3D
&filter%5Bclient-parent-id-2%5D%5Bcondition%5D%5Bvalue%5D=963b94fb-c64e-4164-b61d-cb729751fb89
&filter%5Bclient-parent-id-2%5D%5Bcondition%5D%5BmemberOf%5D=client-group-2
&sort=drupal_internal__id
| 14:56:11 |
14 Apr 2024 |
| farmBOT left the room. | 01:53:13 |
| farmBOT joined the room. | 01:54:16 |
15 Apr 2024 |
aislinnpearson | symbioquine: I’d love a demo. That looks very similar to what we do with our experiment plots… but I have no idea what AssetLink is | 11:26:46 |
symbioquine | In reply to @symbioquine:matrix.org sent a video. aislinnpearson: Are you talking about what I showed in this screen capture? | 11:27:48 |
aislinnpearson | Yes. I am. Sorry, following the conversation in the app, and I can’t figure out how to quote previous comments | 11:28:50 |
symbioquine | In reply to @aislinnpearson:matrix.org Yes. I am. Sorry, following the conversation in the app, and I can’t figure out how to quote previous comments Cool. | 11:29:31 |
symbioquine | Download Screenshot_20240415-043122_Firefox Nightly.png | 11:31:49 |
symbioquine |
Sorry, following the conversation in the app, and I can’t figure out how to quote previous comments
For me it's either a long press in one app or in the other it's a tap then clicking three very small dots on the right side of the message.
| 11:32:09 |
symbioquine | I'm more than happy to chat about Asset Link and/or our custom tools | 11:34:28 |
symbioquine | There are definitely some rough edges still though - of course 🧪🔥 | 11:35:41 |
aislinnpearson | In reply to @symbioquine:matrix.org
Sorry, following the conversation in the app, and I can’t figure out how to quote previous comments
For me it's either a long press in one app or in the other it's a tap then clicking three very small dots on the right side of the message.
One long press! Thank you! I would not have figured that out. | 12:23:36 |
aislinnpearson | In reply to @symbioquine:matrix.org I'm more than happy to chat about Asset Link and/or our custom tools This would be great | 12:23:50 |