Skip to content

Releases: AfricasVoices/RapidProTools

0.3.10

23 Aug 12:25
Compare
Choose a tag to compare
  • 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 to update_contact()
  • Adds create_contact() (#133, #134).
  • Adds get_flow() (#136).
  • Automatically retries request on 500 Internal Server Error from Rapid Pro (#132).

0.3.9

12 Jul 09:44
Compare
Choose a tag to compare
  • Adds urn_type property (tel, telegram etc.) to traced data in RapidProClient.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 when prev_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

13 Oct 15:06
Compare
Choose a tag to compare
  • Automatically handle 504s from Rapid Pro by retrying for non-paged requests (#113).
  • Add an optional field_id argument to RapidProClient.create_field (#114).

0.3.7

01 Oct 13:16
Compare
Choose a tag to compare

Bug fixes:

  • Reverts accidental rename of RapidProClient.get_raw_runs_with_flow_id to RapidProClient.get_raw_runs_with_flow_id in v0.3.6 (#111).
  • Fixes deprecation warning not showing (#112).

0.3.6

28 Sep 09:42
Compare
Choose a tag to compare

Library updates:

  • Add RapidProClient.export_all_data (#105).
  • Add RapidProClient.get_workspace_name (#108).
  • Deprecates RapidProClient.get_raw_runs_with_flow_id in favour of RapidProClient.get_raw_runs (#105).
  • Updates documentation to refer to workspaces instead of instances (#110).

Tool updates:

0.3.5

01 Sep 11:42
Compare
Choose a tag to compare

Library updates:

  • Adds RapidProClient.send_message_to_urns, which is a more efficient batch version of send_message_to_urn (#84, #85).
  • Fixes dependency CoreDataModules not installing in recent versions of pip/pipenv (#104).

Tool updates:

0.3.4

27 Apr 11:54
Compare
Choose a tag to compare

Library updates:

  • Adds interrupt_urns() to RapidProClient for bulk interrupting contacts from flows, and adds an optional interrupt argument to send_message_to_urn() (#83).

Tool updates:

  • fetch_flow_definitions: {project}/flow_definitions_upload_url_prefix now optional. Only projects which contain the field flow_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

25 Feb 14:17
Compare
Choose a tag to compare

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, adds compute_window_of_downtime.py, which computes the duration between each pair of inbound messages from an instance (#65).

0.3.2

24 Jan 11:03
Compare
Choose a tag to compare

Adds an optional skip_archives flag to functions in rapid_pro_client that fetch runs. The flag defaults to False, so default behaviour is the same as v0.3.1 (#64).

0.3.1

17 Jan 13:14
Compare
Choose a tag to compare

Changes to the core RapidProClient library:

  • Adds support for archives with the new functions list_archives and get_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, and update_contact(#49).
  • Adds get_all_flow_ids (#56).

Changes to the support tools:

  • Adds a new tool, copy_contacts for copying a contact dataset from one Rapid Pro instance to another (#49, #51, #52, #53, #54, #55).
  • Adds a new tool, fetch_flow_definitions, for downloading all the active flow and trigger definitions from a Rapid Pro instance (#57, #58).