refactor(pbn): usuń martwy kod integracji słownika dyscyplin#600
Merged
Conversation
`integruj_dyscypliny` + helpery (`_ensure_discipline_groups`, `_parent_group_id_from_dict`, `_discipline_fields`, `_upsert_discipline`) w pbn_integrator/utils/dictionaries.py były martwym kodem: wołały nieistniejącą metodę klienta `get_discipline_groups()` i zakładały nieaktualny (płaski) kształt payloadu PBN. Brak produkcyjnego call-site — tylko testy pinujące zepsuty kontrakt (mock nieistniejącej metody). Realny sync dyscyplin idzie przez `download_disciplines()`/`sync_disciplines()` (pbn_api.client.disciplines). Usunięto: funkcje, eksport z utils/__init__, oraz sekcje testów charakteryzujących (test_c901_dict_transforms, test_utils_system_data) — żywe testy jezyki/kraje/zrodla zostają. manage.py check: OK; testy dotknięte: 21 passed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
integruj_dyscyplinyi jego helpery (pbn_integrator/utils/dictionaries.py) to martwy kod:get_discipline_groups()(nigdzie niezdefiniowaną),Realny sync dyscyplin działa przez
download_disciplines()/sync_disciplines()(pbn_api/client/disciplines.py) na poprawnym, zagnieżdżonym payloadzie grupowym.Zmiana
Usunięto martwe funkcje + ich eksport z
utils/__init__.py+ sekcje testów charakteryzujących (test_c901_dict_transforms.py,test_utils_system_data.py). Żywe testyintegruj_jezyki/integruj_kraje/integruj_zrodlapozostają.Weryfikacja
ruffclean,manage.py checkOK, dotknięte testy 21 passed.integruj_dyscyplinyjako nazwa opcji CLI wfix_pbn_import_oswiadczen_ksiazkito inny byt — nietknięte.B0c z planu ekstrakcji PBN (#595). Odblokowuje D3 (sync słowników na aktualnym payloadzie).
🤖 Generated with Claude Code