Repository navigation
Commit bb79c08
authored
fix(dashboard): drop stale exclude_ids hardcode hiding conversations (#10129)
The dashboard conversation pages hardcoded exclude_ids="astrbot", and
the backend expanded each entry into `user_id NOT LIKE '<id>%'`. Since
user_id is the UMO "<platform_id>:<message_type>:<session_id>", every
conversation of a platform whose adapter id is "astrbot" (or any id
starting with it) was filtered out and the list showed 0 items (#10126).
The parameter never matched the built-in WebChat sessions it presumably
targeted (their UMO starts with "webchat:"), so it has had no functional
effect since it was introduced; remove it instead of replacing it.
Tighten the remaining exclude_ids semantics for API callers: match only
the exact user_id or its platform segment ("id:...") and escape LIKE
wildcards, so "astrbot" no longer swallows "astrbotweb".
Fixes #101261 parent f99c76e commit bb79c08
4 files changed
Lines changed: 67 additions & 9 deletions
File tree
- astrbot/core/db
- dashboard/src/views
- conversation
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
436 | 444 | | |
437 | | - | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
438 | 453 | | |
439 | 454 | | |
440 | 455 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
805 | | - | |
806 | 805 | | |
807 | 806 | | |
808 | 807 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
| 358 | + | |
363 | 359 | | |
364 | 360 | | |
365 | 361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
63 | 79 | | |
64 | 80 | | |
65 | 81 | | |
| |||
74 | 90 | | |
75 | 91 | | |
76 | 92 | | |
77 | | - | |
| 93 | + | |
78 | 94 | | |
79 | 95 | | |
80 | 96 | | |
| 97 | + | |
81 | 98 | | |
82 | 99 | | |
83 | 100 | | |
| |||
96 | 113 | | |
97 | 114 | | |
98 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
99 | 143 | | |
100 | 144 | | |
101 | 145 | | |
| |||
119 | 163 | | |
120 | 164 | | |
121 | 165 | | |
122 | | - | |
| 166 | + | |
123 | 167 | | |
124 | 168 | | |
125 | 169 | | |
| |||
135 | 179 | | |
136 | 180 | | |
137 | 181 | | |
| 182 | + | |
138 | 183 | | |
139 | 184 | | |
140 | 185 | | |
| 186 | + | |
141 | 187 | | |
142 | 188 | | |
143 | 189 | | |
144 | 190 | | |
145 | 191 | | |
| 192 | + | |
| 193 | + | |
146 | 194 | | |
147 | 195 | | |
148 | 196 | | |
| |||
0 commit comments