hackforla / hackforla/knowledgebase
Sychronize users between people depot and kb
- Ngôn ngữ chính
- Python
- Star
- 2
- Fork
- 5
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### Blockers/Dependencies
None
### Overview
REPLACE THIS TEXT -Text here that clearly states the purpose of this issue in 2 sentences or less.
### Action Items
- [ ] User synch
- [ ] If PEOPLE_DEPOT_URL is defined in kb when user logs in, confirm PEOPLE_DEPOT URL works. If it doesn't work, error message and prevent creation of user.
- [ ] Prevent creation of user in KB ifcannot create in PD
- [ ] Manual tests
- [ ] Sign up for account in kb.
- From sqlite browser
- verify account is created in PD
- verify account is created in BD
- Compare user account in PD and KB
- compare to Cognito
- Log in to kb using new account - verify message no authorization
- Log in to pd using new account- verify message no authorization
- Test API call from kb to pd
- Verify call people depot URL indicates authenticated but not authorized
- Set is_staff to true in PD
- Verify call people depot urlworks
- Document manual tests
- [ ] Sign up for account in pd.
- From sqlite browser
- verify account is created in PD
- sign in to using KB cognito account
- verify account is created in KB
- Compare user account in PD and KB
- compare to Cognito
- Log in to kb using new account - verify message no authorization
- Log in to pd using new account- verify message no authorization
- Test API call from kb to pd
- Verify call people depot URL indicates authenticated but not authorized
- Set is_staff to true in PD
- Verify call people depot urlworks
- Document manual tests
- [ ] Implement and test updating user in kb, see gets changed in pd
- [ ] Decide on strategy on
- what to do if pd is down and new account is created - how to eventually resynch
REPLACE THIS TEXT -If the issue has already been researched, and the course of action is clear, this will describe the steps. However, if the steps can be divided into tasks for more than one person, we recommend dividing it up into separate issues, or assigning it as a pair programming task.
### How to Manually Verify
REPLACE THIS TEXT - Describe how to manually verify either through UI or executing the code and inspecting.
### Automated Tests
Any automated tests?
### Resources/Instructions
REPLACE THIS TEXT -If there is a website which has documentation that helps with this issue provide the link(s) here.
Hướng dẫn đóng góp
Hướng nghiên cứu
Trước tiên, hãy theo dõi các luồng đăng ký và đăng nhập cùng với tích hợp PEOPLE_DEPOT_URL; issue không nêu tên tệp nguồn hoặc kiểm thử tự động nào. Sử dụng các kiểm tra thủ công được liệt kê cho KB, People Depot và Cognito làm kế hoạch xác minh, bao gồm việc xử lý các dịch vụ không khả dụng và cập nhật người dùng. Công việc được xem là hoàn tất khi hành vi đồng bộ hóa và chiến lược đồng bộ hóa lại đã được thống nhất, triển khai, kiểm thử và ghi lại trong tài liệu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python, sqlite
- Lĩnh vực
- api, authentication, backend, databases
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 15/100