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

Feature/mcmr 155 hub cleanup #369

Merged
merged 19 commits into from
Feb 11, 2021
Merged

Conversation

OMosimege
Copy link
Contributor

In this PR is the Hub CleanUp

What we are keeping, is the following functionality:

  1. registrations.views.ThirdPartyRegistration. Currently this view uses the new things if the EXTERNAL_REGISTRATIONS_V2 config flag is set. We want to remove all the old functionality for when that flag isn’t set, and just use the new functionality, and remove the flag.

  2. registrations.views.JembiAppRegistration. Here too we want to remove the old functionality, and just keep the EXTERNAL_REGISTRATIONS_V2 functionality, and remove the config flag.

  3. registrations.views.WhatsAppContactCheckViewSet

  4. registrations.views.FacilityCheckView and registrations.views.NCFacilityCheckView

  5. registrations.views.NCSubscriptionView, we want to keep all functionality here

@@ -198,87 +198,10 @@ def baby_switch(self, change):
self.log.info("Starting switch to baby")

self.log.info("Retrieving active subscriptions")
active_subs = sbm_client.get_subscriptions(
{"identity": change.registrant_id, "active": True}
)["results"]
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm a little bit confused as to why we're removing certain lines, changing the functionality, instead of just deleting the whole task.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This task is needed by another validate_implement, I have tried removing it and the entire validate fails, so I opted for removing the part that is not needed in the task

"\u201cSMS\u201d (kusebenza izindleko ezijwayelekile)."
"body": "We see that your MomConnect WhatsApp "
"messages are not being delivered. If you would "
"like to receive your messages over SMS, reply ‘SMS’."
Copy link
Contributor

Choose a reason for hiding this comment

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

These are new things, we definitely don't want to be changing these tests, although I think this functionality is currently switched off, we should keep it in case we want to switch it on again. Ensuring that the message gets translated to the user's message is important.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense, will also revert this change

changes/tasks.py Outdated
"%(optout_ussd)s, for more dial %(popi_ussd)s (Free)."
"Sorry we can't send WhatsApp msgs to this phone. We'll send your "
"MomConnect msgs on SMS. To stop dial *134*550*1#, for more dial "
"*134*550*7#"
Copy link
Contributor

Choose a reason for hiding this comment

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

We probably don't want to change this content, or if we do, we would want to do it in a separate PR, not as part of the cleanup. This is what's creating all the changes in the PO files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ahh I see, okay will reverse this

registrations/tasks.py Show resolved Hide resolved
@OMosimege OMosimege merged commit 1f6b84d into develop Feb 11, 2021
@jerith jerith deleted the feature/MCMR-155-Hub-cleanup branch March 8, 2022 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants