refactor!: rename role_provider to user_info_provider#40
Merged
Conversation
TDD Red 단계: 테스트를 먼저 변경하여 실패 상태로 만듦 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
파라미터명과 프로토콜명의 의미 불일치 개선: - 변수명: role_provider → user_info_provider - docstring: "role lookup"에서 "user information lookup"으로 변경 - 주석: "No role provider"에서 "No user info provider"로 변경 TDD Green 단계: 모든 테스트가 통과하도록 구현 수정 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
누락된 테스트 파일 파라미터명 업데이트 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
이 PR은 BaseCrudRouter의 파라미터명을 role_provider에서 user_info_provider로 변경하여 프로토콜명(UserInfoProvider)과의 일관성을 확보합니다. PR #39에서 프로토콜명이 변경되었으나 파라미터명이 업데이트되지 않아 발생한 불일치를 해결하는 Breaking Change입니다.
BaseCrudRouter생성자 파라미터 및 인스턴스 속성명 변경- 관련 docstring 및 주석을 "user information lookup"으로 명확화
- 모든 테스트 코드에서 일관되게 파라미터명 업데이트
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| python/aioia_core/fastapi/base_crud_router.py | role_provider 파라미터를 user_info_provider로 변경, 속성명과 모든 참조 업데이트, docstring 개선 |
| python/tests/unit/test_base_crud_router.py | 테스트 코드의 변수명과 파라미터명을 user_info_provider로 일관되게 변경 (4곳) |
| python/tests/unit/test_deprecation.py | deprecation 테스트에서 파라미터명을 user_info_provider로 업데이트 (2곳) |
|
🎉 This PR is included in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Summary
BaseCrudRouter의 파라미터명을role_provider에서user_info_provider로 변경하여 프로토콜명과 일관성을 유지합니다.배경
PR #39에서
UserRoleProvider→UserInfoProvider프로토콜로 변경했으나,BaseCrudRouter의 파라미터명은role_provider로 유지되어 의미 불일치가 발생했습니다.변경사항
role_provider→user_info_providerBaseCrudRouter생성자 파라미터Breaking Changes
Consumer 프로젝트는 다음과 같이 수정 필요:
테스트
🤖 Generated with Claude Code