Commit 5b34cbb
committed
fix: Add project filter to apply_data_source and delete_data_source
Fixes two methods in the shared registry that were matching data sources
by name only, without filtering by project. In multi-project registries
where different projects share the same data source name (e.g. the
default "vals_to_add"), this caused:
- apply_data_source: cross-project overwriting of data sources
- delete_data_source: deleting data sources from the wrong project
Changes:
- apply_data_source: adds and existing_data_source_proto.project == project
check (mirrors the pattern used in apply_entity, apply_feature_service,
apply_feature_view)
- delete_data_source: uses the same project-scoped filter for consistency
- Fix Unicode mojibake in registry.py comments (em dashes and right arrows
were stored as double-encoded Latin-1 bytes)
- apply ruff format - collapse single-line timestamp assignment
Fixes #6206
Signed-off-by: Venkateswarlu Boggavarapu <mailtoboggavarapu@gmail.com>1 parent 835cda8 commit 5b34cbb
1 file changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | | - | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
398 | 401 | | |
399 | 402 | | |
400 | 403 | | |
401 | 404 | | |
402 | 405 | | |
403 | 406 | | |
404 | | - | |
405 | | - | |
406 | | - | |
| 407 | + | |
407 | 408 | | |
408 | 409 | | |
409 | 410 | | |
| |||
423 | 424 | | |
424 | 425 | | |
425 | 426 | | |
426 | | - | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
427 | 431 | | |
428 | 432 | | |
429 | 433 | | |
| |||
688 | 692 | | |
689 | 693 | | |
690 | 694 | | |
691 | | - | |
| 695 | + | |
692 | 696 | | |
693 | 697 | | |
694 | 698 | | |
695 | 699 | | |
696 | 700 | | |
697 | | - | |
| 701 | + | |
698 | 702 | | |
699 | 703 | | |
700 | 704 | | |
| |||
735 | 739 | | |
736 | 740 | | |
737 | 741 | | |
738 | | - | |
| 742 | + | |
739 | 743 | | |
740 | 744 | | |
741 | 745 | | |
| |||
0 commit comments