Releases: AfricasVoices/RapidProTools
Releases · AfricasVoices/RapidProTools
0.3.10
- Adds support for Rapid Pro groups (#130):
- Adds new function
get_groups()
- Adds new function
get_contacts()
- Adds new function
create_group()
- Adds new
groups
argument toupdate_contact()
- Adds new function
- Adds
create_contact()
(#133, #134). - Adds
get_flow()
(#136). - Automatically retries request on 500 Internal Server Error from Rapid Pro (#132).
0.3.9
- Adds
urn_type
property (tel, telegram etc.) to traced data inRapidProClient.convert_runs_to_traced_data
(#118). - Adds
RapidProClient.get_workspace_uuid
(#127). - Fixes jsonl exports not having \n terminators between exported records in
RapidProClient.export_all_data
(#129). - Fixes
RapidProClient.update_raw_data_with_latest_modified
not working whenprev_raw_data
arg is None (#128). - Skips downloading archives that are known to contain 0 records, which slightly improves performance when loading data from archives (#123).
- Fixes deprecation warning in
update_raw_runs_with_latest_modified
(#115).
0.3.8
0.3.7
0.3.6
Library updates:
- Add
RapidProClient.export_all_data
(#105). - Add
RapidProClient.get_workspace_name
(#108). - Deprecates
RapidProClient.get_raw_runs_with_flow_id
in favour ofRapidProClient.get_raw_runs
(#105). - Updates documentation to refer to workspaces instead of instances (#110).
Tool updates:
- Removed copy_contacts and synchronise_contacts. Use
synchronise_contacts.py
in https://github.com/AfricasVoices/tools/tree/master/rapid_pro instead (#109). - Updates mno_analysis_tools/compute_window_of_downtime.py to sort by timestamp before exporting (#106).
0.3.5
0.3.4
Library updates:
- Adds
interrupt_urns()
toRapidProClient
for bulk interrupting contacts from flows, and adds an optionalinterrupt
argument tosend_message_to_urn()
(#83).
Tool updates:
- fetch_flow_definitions:
{project}/flow_definitions_upload_url_prefix
now optional. Only projects which contain the fieldflow_definitions_upload_url_prefix
will have their flow definitions archived (#81). - Adds mno_analysis_tools, for analysing patterns of message inbound and downtime (#67, #73, #75, #76, #77, #78, #80).
0.3.3
Changes:
- Updates
rapid_pro_client.get_messages
to automatically fetch from archives where necessary (#66). - Updates get message/runs functions in
rapid_pro_client
to log when about to fetch from the production database, instead of giving no output and therefore appearing to hang (#68). - Uses "production" to refer to the production database, instead of "live" (#69).
New:
- Adds
mno_analysis_tools
. In particular, addscompute_window_of_downtime.py
, which computes the duration between each pair of inbound messages from an instance (#65).
0.3.2
0.3.1
Changes to the core RapidProClient library:
- Adds support for archives with the new functions
list_archives
andget_archive
(#59, #63). - Updates
get_raw_runs_for_flow_id
to automatically fetch from archives where necessary (#60). - Adds support for manipulating contact fields with the new functions
get_fields
,create_field
, andupdate_contact
(#49). - Adds
get_all_flow_ids
(#56).
Changes to the support tools: