Closed (fixed)
Project:
Flag Search API
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2017 at 17:45 UTC
Updated:
26 Mar 2019 at 12:03 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
johnny5th commentedI noticed this issue as well. For some reason there's not any output on the field, but filters work on it. I'd imagine, even if it did work the way it's set up, it would just output user IDs. We probably need to make a special formatter to show the flag link.
Comment #3
johnny5th commentedI took a stab at fixing this. TBH I'm not 100% sure why it works, but I just followed the documentation for creating a custom processor.
Switched from preprocessIndexItems to addFieldValues to inject the flag values into the index. Can anyone confirm that this is a proper way of fixing the issue?
Comment #4
johnny5th commentedTo build on the last patch, I also added a rudimentary view field handler to expose a flagging link.
I spent a few days trying to figure out how to avoid making extra DB calls, but I came up short. This just overrides the field output with a flag lazy builder. Ideally, I'd like to figure out how to create a relationship on the view to get better performance.
Comment #5
xsdx commentedReviewed and tested.
Comment #6
xsdx commentedComment #8
xsdx commentedComment #9
xsdx commented