Split the resource views out of ResourceSlotProcessors
- Dominant language
- Python
- Stars
- 670
- Forks
- 183
- Avg merge
- 21h 49m
- Merged PRs (30d)
- 404
Description
ResourceSlotProcessors 한 클래스가 성격이 다른 두 묶음을 함께 들고 있다. 슬롯 종류 표에 대한 CRUD 6건과, 지금 무엇이 얼마나 쓰고 있는지 읽는 7건이다. 뒤쪽은 슬롯 종류에 대한 동작이 아니라 자원 현황 조회다.
BA-7431에서 배선 영역만 갈라두었다. 슬롯 종류는 system, 자원 현황 조회는 resource_group으로 간다. 클래스와 패키지는 그대로라 이름이 내용과 어긋난 상태다.
자원 현황 쪽 7건: get_agent_resource_by_slot, global_search_agent_resources, get_domain_resource_overview, get_project_resource_overview, get_kernel_allocation_by_slot, global_search_resource_allocations, lookup_kernel_owner.
할 일: 자원 현황 조회를 자기 패키지로 떼어내고 그 내용을 말하는 이름을 준다. resource_slot 패키지에는 슬롯 종류 CRUD만 남긴다.
따라오는 곳: 액션 파일 7개, Processors의 필드, api/adapters/resource_slot, api/adapters/scheduling_history, api/rest/resource_slot/handler.py, api/rest/tree.py, services/factory.py, tests/component/scheduling_history/conftest.py.
JIRA Issue: BA-7436
Contributor guide
Research direction
Start with ResourceSlotProcessors and the seven listed resource-status methods, then trace their action files and references in api/adapters/resource_slot, api/adapters/scheduling_history, api/rest/resource_slot/handler.py, api/rest/tree.py, services/factory.py, and tests/component/scheduling_history/conftest.py. Done means the resource-status queries live in a clearly named package and the resource_slot package retains only slot-type CRUD with all references updated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend-api-design
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 62/100