Skip to content
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

breaking(#234): replace users when core supports multiple facility_ids #235

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

kennsippell
Copy link
Member

@kennsippell kennsippell commented Dec 23, 2024

This proposed change makes it so cht-user-management requires CHT Core 4.7 or higher. It is a breaking change which should affect no users because all projects are running 4.9 or above.

Project Core Version
Kenya 4.11 or higher
Uganda 4.9
CIV 4.9
Togo 4.9

Closes #234
Closes #228
Closes #114
Closes #76

Changes:

  1. Logout all users and assert if the Core Version is under 4.7 during login
  2. Remove chtApi.updateContactParent and Uploader.linkContactAndPlace which were only required as workaround for Cannot create user for contacts created via Place Api cht-core#8674
  3. Create new DisableUsers class which handles users with multiple facilities by removing facility_ids during replacement

Testing: I tested on CHT Core 4.6, 4.7, 4.11, and 4.15 (master)

@kennsippell kennsippell changed the title 234 multi facility small breaking(#234): replace users when core supports multiple facility_ids Dec 23, 2024
@binokaryg binokaryg requested a review from Copilot December 23, 2024 19:52

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant