From: Doug B. <dou...@gm...> - 2011-12-11 04:51:23
|
Developers, Looking for some feedback on an issue. Recall that Gramps 3.3 added a new, more complex/sophisticated selection tab on the export assistant. The main reason for this was the following: Assume that you have a grandfather with a daughter who is marked private. Also, assume that she has children. You might want to hide everyone who is private, and then find the descendants of the grandfather---the children would not show. Or, you might want to find the descendants of the grandfather, and then remove the daughter --- the children would show. The only way to handle those two possibilities was to allow a method to order the filters/proxies, which we did on export. If we had picked one ordering, one of those uses would not have been allowed. Now, we are looking to allow the same kind of functionality for reports [1]. I was planning on just adding the same kind of export selection tab on reports, which would have (and save per report) those selections. Jerome suggested that we might just add a couple of filters that mimic the proxies until we get the full selection UI added to all reports. I started thinking that maybe we can actually do the ordering of filters inside the standard Gramps filter system. I think we can. There is now a small patch on [1] that adds a 4th type of logical connection for rules: in addition to "and", "or" and "one" there is now "sequence". The idea is that each rule connected by "All rules must apply sequentially" will create a filter proxy, which is wrapped sequentially around the database. I'm not an expert in the filters, but I think that this works correctly, and is as fast as the proxies allow. If we went this way, it takes care of the sequencing issues for reports (and all other uses of filters). It doesn't support the Privacy or Living proxies that hide or replace sensitive data. But we could even create filters like those based on the same idea. This patch does make it so that you can create a view that shows the same people that the exporter outputs. Does this cover all uses of filters? Anything that I missed? Is this too complicated for users? Feedback appreciated, -Doug [1] http://www.gramps-project.org/bugs/view.php?id=4011 I haven't added "sequence" to all filter types, just people. Also, the UI should disable the invert checkbox... I'm not sure what the meaning would be: invert the last? all? |