Repository navigation
Commit bbd0c2e
committed
Fix cacao gene ID validation bypass and simplify eFP query service
query_efp_database_dynamic() validated cacao gene IDs by species alone,
but cacao is split across three patterns (ccn/sca/tc) with no single
"efp_cacao" entry in the registry, so validation silently passed any
string through. Switch to the per-database lookup, which resolves the
correct pattern.
Also removes an unused EFPDataService class wrapper (nothing called it,
only the plain module-level functions), collapses a multi-engine
candidate loop down to a single lookup now that sqlite-mirror fallback
is gone, and collapses eFP-utils' 8 near-identical per-species gene
validation blocks into one. Trims docstrings on newly-introduced code
to one line each.1 parent d865d41 commit bbd0c2e
9 files changed
Lines changed: 227 additions & 501 deletions
File tree
- api
- models
- resources
- services
- utils
- tests/services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
8 | 2 | | |
9 | 3 | | |
10 | 4 | | |
| |||
18 | 12 | | |
19 | 13 | | |
20 | 14 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 15 | + | |
38 | 16 | | |
39 | 17 | | |
40 | 18 | | |
| |||
50 | 28 | | |
51 | 29 | | |
52 | 30 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 31 | + | |
73 | 32 | | |
74 | 33 | | |
75 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 1 | + | |
11 | 2 | | |
12 | 3 | | |
13 | 4 | | |
| |||
33 | 24 | | |
34 | 25 | | |
35 | 26 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 27 | + | |
43 | 28 | | |
44 | 29 | | |
45 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 1 | + | |
15 | 2 | | |
16 | 3 | | |
17 | 4 | | |
| |||
67 | 54 | | |
68 | 55 | | |
69 | 56 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 57 | + | |
73 | 58 | | |
74 | 59 | | |
75 | 60 | | |
| |||
85 | 70 | | |
86 | 71 | | |
87 | 72 | | |
88 | | - | |
89 | | - | |
| 73 | + | |
90 | 74 | | |
91 | 75 | | |
92 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 70 | + | |
75 | 71 | | |
76 | 72 | | |
77 | 73 | | |
| |||
84 | 80 | | |
85 | 81 | | |
86 | 82 | | |
87 | | - | |
88 | | - | |
89 | | - | |
| 83 | + | |
90 | 84 | | |
91 | 85 | | |
92 | 86 | | |
| |||
103 | 97 | | |
104 | 98 | | |
105 | 99 | | |
106 | | - | |
107 | | - | |
108 | 100 | | |
109 | 101 | | |
110 | 102 | | |
| |||
122 | 114 | | |
123 | 115 | | |
124 | 116 | | |
125 | | - | |
126 | | - | |
| 117 | + | |
127 | 118 | | |
128 | 119 | | |
129 | 120 | | |
| |||
0 commit comments