Skip to content

Releases: AfricasVoices/RapidProTools

0.3.0

04 Jun 15:04
Compare
Choose a tag to compare

Breaking changes:

  • Changes rapid_pro_client.convert_runs_to_traced_data to take a FirestoreUuidTable rather than a PhoneNumberUuidTable (#41).
  • Removes the old fetching scripts and initial experiments (#44, #48). Instead, use the new rapid_pro_client library in this repository, which was first introduced in v0.2.6.

0.2.8

16 May 11:13
Compare
Choose a tag to compare
  • rapid_pro_client.fetch_raw_messages now logs the number of fetched messages (#47).
  • rapid_pro_client.get_raw_runs_for_flow_id now logs "Fetched raw runs" instead of "Fetched raw contacts" (#46).

0.2.7

03 May 11:30
Compare
Choose a tag to compare
  • Adds a function for downloading the raw messages from Rapid Pro (rapid_pro_client.get_raw_messages) (#43).
  • Adds functions for sending a message to an individual (rapid_pro_client.send_message_to_urn and rapid_pro_client.get_broadcast_for_broadcast_id) (#45)
  • Converts print calls to logging calls (#42)

0.2.6

18 Apr 15:31
Compare
Choose a tag to compare
  • Added a pip-installable python library version of Rapid Pro Tools (#38), that supports incremental fetching (#39, #40).

0.2.5

11 Mar 15:38
e87b02a
Compare
Choose a tag to compare
  • Added new tool fetch_flow_definitions (#36)
  • Modified fetch_runs to:
    • Allow for filtering retrieved data within a given time-range (#35)
    • Include the 'run_id' as a top-level property of each run (#37)
    • Check for production contacts having multiple URNs (#37)
    • Give better descriptions in some of the error/warning messages (#37)

0.2.4

08 Nov 11:16
6a0eec7
Compare
Choose a tag to compare
  • Allows docker-run.sh in fetch_runs and fetch_contacts to be run using ./docker-run.sh notation (#32)
  • Runs fetch_runs.py in unbuffered mode in Docker (#31)

0.2.3

25 Sep 10:18
1f50265
Compare
Choose a tag to compare
  • Skips runs from contacts which do not have a URN (#29)

0.2.2

12 Sep 09:25
c922a99
Compare
Choose a tag to compare
  • Skips runs (and prints a warning) for runs from contacts not found at Rapid Pro's contacts endpoint (#28)

0.2.1

10 Sep 08:57
a72704c
Compare
Choose a tag to compare

Updates fetch_contacts as follows (#26):

  • Add optional --test-contacts-path argument
  • Skip contacts who didn't respond by telephone or twitter
  • Only export fields which are not None

0.2.0

03 Sep 09:45
0c779c5
Compare
Choose a tag to compare
  • Adds new subdirectory fetch_contacts for fetching contacts from Rapid Pro and exporting to TracedData.
  • Adds optional argument --test-contacts-path to fetch_runs/docker-run.sh. Set this to a path to a JSON file containing a list of Rapid Pro contact UUIDs in order to tag all messages received from that contact with {"test_run": True}

Breaking changes:

  • docker-run.sh <flow-name> argument is now optional. To set a flow-name, use sh docker-run.sh --flow-name <flow-name>
  • fetch_runs.py moved to fetch_runs/fetch_runs.py