Commit 9e7cbe9
committed
fix(bigquery-analytics): address review on otel/metadata/projection PR
- File-content compliance: assemble the cloud-platform OAuth scope from parts
so this changed file no longer embeds a bare Google APIs host literal
(the compliance scan rejects such literals on changed files).
- Schema upgrade vs projection change: _maybe_upgrade_schema now computes the
missing-field diff BEFORE the version-label early return. self._schema is
projection-dependent (google#321), so relaxing payload_column_denylist on a table
whose label still matches must still add the now-desired columns instead of
skipping the diff.
- attributes denial interaction: reject custom_metadata_allowlist together with
payload_column_denylist=["attributes"] at construction (the captured payload
would be silently dropped), skip the attributes.otel write when attributes is
denied, and document that denying attributes disables otel/custom_metadata.
Adds 5 tests (denylist-relaxed upgrade, current-and-complete no-op, fail-fast
rejection, attributes-denied otel skip). Full plugin suite: 292 passed,
6 skipped. isort + pyink clean.1 parent 0b7f14c commit 9e7cbe9
2 files changed
Lines changed: 151 additions & 16 deletions
File tree
- src/google/adk/plugins
- tests/unittests/plugins
Lines changed: 50 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
318 | 326 | | |
319 | 327 | | |
320 | 328 | | |
| |||
619 | 627 | | |
620 | 628 | | |
621 | 629 | | |
622 | | - | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
623 | 634 | | |
624 | 635 | | |
625 | 636 | | |
| |||
2286 | 2297 | | |
2287 | 2298 | | |
2288 | 2299 | | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
2289 | 2313 | | |
2290 | 2314 | | |
2291 | 2315 | | |
| |||
2409 | 2433 | | |
2410 | 2434 | | |
2411 | 2435 | | |
2412 | | - | |
2413 | | - | |
2414 | | - | |
| 2436 | + | |
2415 | 2437 | | |
2416 | 2438 | | |
2417 | 2439 | | |
| |||
2691 | 2713 | | |
2692 | 2714 | | |
2693 | 2715 | | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + | |
2694 | 2720 | | |
2695 | 2721 | | |
2696 | 2722 | | |
2697 | | - | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
2698 | 2734 | | |
2699 | 2735 | | |
2700 | | - | |
2701 | | - | |
2702 | | - | |
2703 | | - | |
2704 | 2736 | | |
2705 | 2737 | | |
2706 | 2738 | | |
| |||
3283 | 3315 | | |
3284 | 3316 | | |
3285 | 3317 | | |
3286 | | - | |
3287 | | - | |
3288 | | - | |
3289 | | - | |
3290 | | - | |
3291 | | - | |
3292 | | - | |
| 3318 | + | |
| 3319 | + | |
| 3320 | + | |
| 3321 | + | |
| 3322 | + | |
| 3323 | + | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
3293 | 3327 | | |
3294 | 3328 | | |
3295 | 3329 | | |
| |||
Lines changed: 101 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9109 | 9109 | | |
9110 | 9110 | | |
9111 | 9111 | | |
| 9112 | + | |
| 9113 | + | |
| 9114 | + | |
| 9115 | + | |
| 9116 | + | |
| 9117 | + | |
| 9118 | + | |
| 9119 | + | |
| 9120 | + | |
| 9121 | + | |
| 9122 | + | |
| 9123 | + | |
| 9124 | + | |
| 9125 | + | |
| 9126 | + | |
| 9127 | + | |
| 9128 | + | |
| 9129 | + | |
| 9130 | + | |
| 9131 | + | |
| 9132 | + | |
| 9133 | + | |
| 9134 | + | |
| 9135 | + | |
| 9136 | + | |
| 9137 | + | |
| 9138 | + | |
| 9139 | + | |
| 9140 | + | |
| 9141 | + | |
| 9142 | + | |
| 9143 | + | |
| 9144 | + | |
| 9145 | + | |
| 9146 | + | |
| 9147 | + | |
| 9148 | + | |
| 9149 | + | |
| 9150 | + | |
| 9151 | + | |
| 9152 | + | |
| 9153 | + | |
| 9154 | + | |
| 9155 | + | |
| 9156 | + | |
| 9157 | + | |
| 9158 | + | |
| 9159 | + | |
| 9160 | + | |
| 9161 | + | |
| 9162 | + | |
| 9163 | + | |
| 9164 | + | |
| 9165 | + | |
| 9166 | + | |
| 9167 | + | |
| 9168 | + | |
| 9169 | + | |
| 9170 | + | |
| 9171 | + | |
| 9172 | + | |
| 9173 | + | |
| 9174 | + | |
| 9175 | + | |
| 9176 | + | |
| 9177 | + | |
| 9178 | + | |
| 9179 | + | |
| 9180 | + | |
| 9181 | + | |
| 9182 | + | |
| 9183 | + | |
| 9184 | + | |
| 9185 | + | |
| 9186 | + | |
| 9187 | + | |
| 9188 | + | |
| 9189 | + | |
| 9190 | + | |
| 9191 | + | |
| 9192 | + | |
| 9193 | + | |
| 9194 | + | |
| 9195 | + | |
| 9196 | + | |
| 9197 | + | |
| 9198 | + | |
| 9199 | + | |
| 9200 | + | |
| 9201 | + | |
| 9202 | + | |
| 9203 | + | |
| 9204 | + | |
| 9205 | + | |
| 9206 | + | |
| 9207 | + | |
| 9208 | + | |
| 9209 | + | |
| 9210 | + | |
| 9211 | + | |
| 9212 | + | |
0 commit comments