-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Producers: filters with multi-select options (as per design) #20
Comments
@JbPasquier can you give me an estimate on how hard this is please? |
No, the way I implemented it here works because there is really only a small amount of data. It's just one producer's data. The main issue here is the complexity of the data: filtering many certifications within many supporting evidence within many producers (within many products on the other list), combined with an 'and/or' filter. Maybe we can think of some data adaptation. @mkllnk would it be complex for you to pre-calculate all of this and add three fields directly on a producer/products with all its relevant Supporting Evidence, Assurance Partners and Certifications filters? The same way you did ofn:Produce_category? |
@JbPasquier Just to be totally sure that we're on the same page before I take up with @mkllnk The 'Custom Implementation' potentially does two things:
Re. 1 - we are NOT proposing to do this on the Producers list. So the Supporting Evidence filter does NOT need to check Certifications. We are cleaning up the confusing label so this becomes super clear SO you are saying it is TOO COMPLEX to just make the Certifications filter multi-select because there would be too much data AND/OR this is too complex in its own right (as one filter), or the complexity as it interacts with the other filters on the page (e.g. supporting evidence) |
Exact.
Both of them. Both Supporting Evidence, Assurance Partners and Certifications filters share the same complexity: "something" that may be multiple times in "something" that may be multiple times in "something", these kind of search criteria are really expensive due to the fact that we have to "translate" every single step with a proper context. From a non-technical perspective, let's simplify this as: Client-side complex filtering are heavy and should be pre-processed by the server/API whenever it's possible. |
Let me know if I'm understanding this:
What kind of endpoints would be best for you? We could add a list of supporting evidence label to the enterprise record, for example. Or when you call the URL of a specific supporting evidence label, we could list all the enterprises in a container there. It's a bit more work for me but possible. But I'm also wondering what will be the most flexible for other people building similar portals with slightly different data models... 🤔 |
Through all producers and all of their supporting evidence and all their certification to match the @id. The best thing you could add to simplify this filtering would be to add something like that:
This way I can directly match de filter against the producer and avoid comparing it with objects in objects in objects. This should be enough to have it on producer for products too.
It's all about optimizations. In our DjangoLDP world we'd be dealing with this with a complete server filtering solution. Browsers, especially mobile or light terminal ones does not like complex data filtering. |
The designs provided showed multi-select in the filters
We are adapting to the styling presented (i.e. happy with the drop-down arrows rather than the + signs, but need multi-select on the filters (as per on the supporting evidence filter)
@mariocarabotta to provide updated design using closer to the styling now presented
The text was updated successfully, but these errors were encountered: