Closed montarion closed 6 days ago
This looks like it should work, so here's what you can try:
System: Reload
commandconsole.log
s in your function's body there to make sure your code is invoked and with what values. These logs will appear on the server in this case (if you're in online mode) or in your browser's JS console (if you're in sync mode).Let me know what you find!
@montarion Were you able to get this to work? I'm seeing the same issue. @zefhemel Tried the steps you suggested - but the attribute extractor does not seem to be getting invoked. I can see it being picked up when spacescript.ts runs but post that, it does not seem to be getting invoked. Tried adding a console.log() inside the function body and tried both online mode and sync mode, but it does not show up in either side. I could very well be missing something obvious - but any more ideas I can try? I don't see any errors in server side logs as well as in JS console. PS: I'm running edge.
I copied the example from here: https://silverbullet.md/Space%20Script#Custom%20attribute%20extractors
I changed it to filter to be custom task for this MVP:
I then create a task:
reindex using the
Space: Reindex
command, wait for it to complete, reload the page, and refresh the query for:Which returns:
I expected 2 new attributes, 'completed' and 'noshadow'. I also expected the 'name' attribute to have changed into "I'm not here..."
What am I missing?