-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Code refactoring: Remove RestService #5041
Code refactoring: Remove RestService #5041
Conversation
- Remove logger.XForm `has_kpi_hook` field - Remove logger.Instance `posted_to_kpi` field - Remove openrosa.rest_service django app - Remove hook signal viewset
c64c89f
to
2abd5ec
Compare
2abd5ec
to
5943b24
Compare
0f84555
to
c8996f4
Compare
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.
i've left some questions to discuss. not sure anything actually needs to be changed, though
kobo/apps/openrosa/apps/main/migrations/0015_drop_old_restservice_tables.py
Show resolved
Hide resolved
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.
The mock IP address change thing does not need to block merging :)
…-2-remove-kobocat-rest-service
Description
ATTENTION RELEASE NOTES WRITER: the changes listed in kobotoolbox/docs#374 need to be called out in the release notes. —jnm
Part IV of #5036.
Remove Rest RestService openrosa sub app
(KPI) hooks are triggered directly when a submission comes in.
Notes
logger_xform
andlogger_instance
.Before KPI was sending a PATCH request to KoboCAT to make KoboCAT know about existence of an active Rest Service (thanks to
has_kpi_hook
). When a submission came in, KoboCAT sent a request to/api/v2/hook-signal
endpoint to let KPI know a new submission has been added.logger_instance.posted_to_kpi
was updated according to the success of the response of KPI endpoint. (but we never used it kobotoolbox/kobocat#580)All this back and worth is useless now since everything is under the same roof.
has_kpi_hook
fieldposted_to_kpi
fieldImprovements:
Use
retry_backoff
andautoretry_for
instead ofself.retry
for Celery task.Related issues
Related to #5036
kobotoolbox/kobocat#580 (to be closed when #5036 is merged)