Skip to content
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

Refactor and optimize filters #1792

Closed
wants to merge 46 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
c4e3262
Initial version of DbGeneric.select()
dsblank Nov 10, 2024
59751dc
Added docstrings and more operators
dsblank Nov 11, 2024
54de88e
Implementation in SQL
dsblank Nov 11, 2024
e129665
Added page, page_size; refactor for better SQL variations
dsblank Nov 11, 2024
87d2c91
Linting
dsblank Nov 11, 2024
4dbed25
Fixed a bug in indexable where clause; change page_size default
dsblank Nov 11, 2024
e21bcc8
((lhs, 'and', rhs), 'or' (lhs, 'and', rhs))
dsblank Nov 12, 2024
0de54ea
Properly replace values with ?
dsblank Nov 14, 2024
8d14dd3
Framework for filter refactor
dsblank Nov 15, 2024
c18b7fd
Walk the filters/rules looking for maps
dsblank Nov 15, 2024
d3cb85d
Working optimization
dsblank Nov 15, 2024
5bcd65b
Working optimization; linted
dsblank Nov 15, 2024
e18fad4
Working optimization on on-memory id_list too
dsblank Nov 15, 2024
296eec1
Working optimization on on-memory id_list too; revised
dsblank Nov 15, 2024
2c0a2ea
Clean up
dsblank Nov 16, 2024
923633a
Change all top-level apply to apply_to_all
dsblank Nov 16, 2024
8d1a4f7
Linting
dsblank Nov 16, 2024
c031cfb
Add protections on loggin
dsblank Nov 15, 2024
dfbbb20
Linting
dsblank Nov 16, 2024
f04ac4e
Linting
dsblank Nov 16, 2024
40322c9
First rough pass at all filters
dsblank Nov 16, 2024
212fe31
Typos
dsblank Nov 16, 2024
139de6a
Fixes from big conversion
dsblank Nov 16, 2024
ad0472c
Fixes from big conversion; linting
dsblank Nov 16, 2024
5481af0
Fixes and tweaks
dsblank Nov 16, 2024
401ed14
Fix
dsblank Nov 16, 2024
f6d5841
Remove all inverted and-maps from handles
dsblank Nov 16, 2024
8feb8c3
Another round of fixes
dsblank Nov 16, 2024
03262be
Clean up; use handles_out to speed-up when no handles_in
dsblank Nov 17, 2024
6094adf
Add table name to each generic filter type; remove list() from hastag
dsblank Nov 17, 2024
ec72673
Fixes for tests; yeah tests!
dsblank Nov 17, 2024
e3f7487
Fix logic bug; add preparation progress; progress matches actual count
dsblank Nov 19, 2024
69366af
No need to rename filter.apply
dsblank Nov 21, 2024
0387e49
Linting
dsblank Nov 21, 2024
eff546b
Fixes from big conversion; linting
dsblank Nov 21, 2024
b869070
Update gramps/gen/db/generic.py
dsblank Nov 16, 2024
10ef843
First pass at new conversion
dsblank Nov 18, 2024
05b936b
Fixes after mass conversion
dsblank Nov 18, 2024
e699af3
Don't eat exception
dsblank Nov 18, 2024
f5c7c0d
Put entire set of changes in one transaction
dsblank Nov 18, 2024
c86a2c2
Added a couple of missing defaults: family.complete, media.thumb
dsblank Nov 18, 2024
99e53c3
A manual test script for validating conversion
dsblank Nov 18, 2024
8462bbe
Rename
dsblank Nov 18, 2024
a124a1a
table -> database
dsblank Nov 18, 2024
6832a43
Moved conversion tools around a bit
dsblank Nov 19, 2024
031c7c4
Moved conversion tools around a bit
dsblank Nov 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions gramps/gen/db/conversion_tools/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2024 Doug Blank <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

from .conversion_21 import convert_21
Loading