Closed phabegger closed 10 years ago
Yes thats right the task_type
is not included in the SearchableText at the moment.
But the searchableText could be easy extended.
The only problem I've see is that we save an identifier for the type and not the translated string, but we would need the translated string to filter reasonable on task_type.
We could extend the searchable Text with all languages (german, french at the moment). @lukasgraf what do you think?
@phgross sounds like a pragmatic approach, :+1:. It would be nice if we could determine all supported languages ('de', fr')
programmatically instead of hard-coding them, but other than that it's the right thing to do I think.
Edit: portal_languages.getSupportedLanguages()
seems to do the trick. Returns ['fr', 'de']
for a PHVS installation and ['de-ch']
for a regular installation. So the difference between de
and de-ch
would have to be dealt with (or PHVS setup would have to be fixed to use de-ch
, which would be the correct language code).
I Just implemented this for task_type
in #357, but at the moment not all table columns displayed for Task
are searchable (same goes for Dossier
and probably for other types). I have opened an new issue #358.
Update, we changed tasks-source for almost all tabs to globalindex, i.e. SQL. Updating SearchableText does not help here. Instead we should modify tabbedview.browser.extend_query_with_textfilter
. But at the moment we do not store task-state labels. This raises the following questions:
The filter problem will be adressed as soon as a global-task-service is implemented. Correct solution is to use Fulltext-Index but we won't do this in oralce :disappointed:
This won't work:
Seems like "Auftragstyp" + "Weiterleitung" are not in SearchableText...