-
Notifications
You must be signed in to change notification settings - Fork 6
Add domain-related tool #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Change response/keystone.py -> response/identity - Add get-domain, get-domains tool
- Add create_domain tool - Tests are updated and passing
- Add create, delete, update domain tool - Test codes are updated and passing
- Add id field in update_domain tool - Tests are updated and passing
- Add id field in update_domain tool - Tests are updated and passing - Resolve conlfict
- Resolve conflict
- Delete unnecessary variable in test code.
halucinor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dostring에 required, optional을 명시할 필요는 없어보입니다. 이미 args 주석을 통해 명시된 내용이라서요
| def create_domain( | ||
| self, | ||
| name: str, | ||
| description: str = "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docstring에서 명시된 optional 이랑 실제 인자정보가 다른것 같습니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
주석이랑 함께 수정하겠습니다!
halucinor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* feat(identity): Add get-domain, get-domains(#31) - Change response/keystone.py -> response/identity - Add get-domain, get-domains tool * feat(identity): Register tool(#31) * feat(identity): Add create domain tool(#31) - Add create_domain tool - Tests are updated and passing * feat(identity): Add create, delete, update domain(#31) - Add create, delete, update domain tool - Test codes are updated and passing * feat(identity): Add id field in update domain tool(#31) - Add id field in update_domain tool - Tests are updated and passing * feat(identity): Add id field in update domain tool(#31) * fix(identity): Fix linter problem(#31)
* feat(identity): Add get-domain, get-domains(#31) - Change response/keystone.py -> response/identity - Add get-domain, get-domains tool * feat(identity): Register tool(#31) * feat(identity): Add create domain tool(#31) - Add create_domain tool - Tests are updated and passing * feat(identity): Add create, delete, update domain(#31) - Add create, delete, update domain tool - Test codes are updated and passing * feat(identity): Add id field in update domain tool(#31) - Add id field in update_domain tool - Tests are updated and passing * feat(identity): Add id field in update domain tool(#31) * fix(identity): Fix linter problem(#31)
Overview
Key Changes
domain 생성 요청할 경우

domain 업데이트 요청할 경우

Related Issues
Additional context
Domain에서 id는 16진수로 이뤄진 랜덤의 문자열로 구성되어 있습니다.
get_domain은 id 대신에 name으로 필드를 수정하고,delete_domain수행 시 name을 입력 받도록 구현했습니다.update_domain의 경우 name 필드가 변경되는 것을 감안하여 id를 입력받도록 구현했습니다.