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

Update RapidPro to v7.5.91 #456

Merged
merged 982 commits into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
982 commits
Select commit Hold shift + click to select a range
8f62834
Always put service menu options at end of menu in new group
rowanseymour Oct 12, 2022
00256bf
Merge pull request #4048 from nyaruka/consistent_service_options
rowanseymour Oct 12, 2022
67eb262
Update CHANGELOG.md for v7.5.72
rowanseymour Oct 12, 2022
7676bb8
Merge branch 'main' into sl-delete-broadcasts-mulligan
Oct 13, 2022
6d0239a
Unload flow editor when navigating away
ericnewcomer Oct 14, 2022
4bbf2b6
updates based on shift from delete to deactivate in progress
susanm74 Oct 14, 2022
dcc5109
Merge branch 'sl-delete-broadcasts-mulligan' of https://github.com/ny…
susanm74 Oct 14, 2022
034dfe2
updates after running the code checks and migrate
susanm74 Oct 14, 2022
7af4fbc
Remove send action from messages, add download results for flows
ericnewcomer Oct 14, 2022
5901faf
Rework UI for incoming call triggers to allow selecting non-voice flows
rowanseymour Oct 13, 2022
159622e
Update tests for new bulk actions
ericnewcomer Oct 14, 2022
bf7e0fe
Add data migration to delete or convert missed call triggers
rowanseymour Oct 14, 2022
c603bba
Use single permission for all contact list views
rowanseymour Oct 14, 2022
3c43950
Use single permission for all msg list views
rowanseymour Oct 14, 2022
f1603c9
Remove channel_status_processor context processor
rowanseymour Oct 14, 2022
57462ee
Rename InboxView to MsgListView to match ContactListView
rowanseymour Oct 14, 2022
40eb1cb
Update api docs to be nav agnostic
ericnewcomer Oct 15, 2022
32d61ad
added is_active and set null=true and default=true
susanm74 Oct 17, 2022
778c26d
post-running code checks
susanm74 Oct 17, 2022
632270c
updated tests
susanm74 Oct 17, 2022
f17b822
merged PR #1 into PR #4 and fixed conflicts
susanm74 Oct 17, 2022
cdf7b01
added schedule list view filter, updated tests, and ran code checks
susanm74 Oct 17, 2022
d1378b6
Merge branch 'sl-delete-broadcasts-4' into sl-delete-broadcasts-mulligan
susanm74 Oct 17, 2022
440d471
deactivate scheduled message updates
susanm74 Oct 17, 2022
9bfe972
Merge pull request #4050 from nyaruka/editor-reset
rowanseymour Oct 17, 2022
b36c6b2
Merge pull request #4051 from nyaruka/bulk-actions-fix
rowanseymour Oct 17, 2022
dec05c0
Merge pull request #4049 from nyaruka/incoming_call_triggers
rowanseymour Oct 17, 2022
df478b8
Merge pull request #4055 from nyaruka/api-doc-updates
rowanseymour Oct 17, 2022
bac1ffb
Merge pull request #4053 from nyaruka/perm_simplify
rowanseymour Oct 17, 2022
4c08551
Merge branch 'main' into remove_channel_status_context_processor
rowanseymour Oct 17, 2022
bc16309
Fix tests
rowanseymour Oct 17, 2022
18e4021
Update CHANGELOG.md for v7.5.73
rowanseymour Oct 17, 2022
6e69210
Remove fields from msgs event payloads that are no longer used
rowanseymour Oct 17, 2022
9b41e1f
Merge pull request #4060 from nyaruka/remove_unused_msg_event_fields
rowanseymour Oct 17, 2022
80c5ba7
Small styling tweaks for api docs
ericnewcomer Oct 17, 2022
c5819ad
Fix webhook list page to not show every call as an error
rowanseymour Oct 17, 2022
9bd1382
Merge pull request #4061 from nyaruka/api-doc-updates
rowanseymour Oct 17, 2022
6ada40b
Merge pull request #4062 from nyaruka/fix_webhook_list
rowanseymour Oct 17, 2022
633512d
Update CHANGELOG.md for v7.5.74
rowanseymour Oct 17, 2022
26b7c62
Fix coverage
rowanseymour Oct 17, 2022
4ff0622
Use database trigger to prevent status changes on flow sessions that …
rowanseymour Oct 17, 2022
1dea7f0
Merge pull request #4054 from nyaruka/remove_channel_status_context_p…
rowanseymour Oct 17, 2022
3797e56
Merge branch 'main' into sl-delete-broadcasts-1
Oct 18, 2022
79300b9
bundled add and alter is_active field migration into same operations …
susanm74 Oct 18, 2022
2718afb
Merge branch 'sl-delete-broadcasts-1' of https://github.com/nyaruka/r…
susanm74 Oct 18, 2022
606a64d
added update_broadcast_is_active backfill migration
susanm74 Oct 18, 2022
a5ae499
increased batch size from 100 to 1000
susanm74 Oct 18, 2022
6aa706b
re-ran code checks
susanm74 Oct 18, 2022
8700437
Merge branch 'sl-delete-broadcasts-1' into sl-delete-broadcasts-3
susanm74 Oct 18, 2022
35ffb11
re-ran code checks
susanm74 Oct 18, 2022
1b6fde9
Merge branch 'sl-delete-broadcasts-3' into sl-delete-broadcasts-4
susanm74 Oct 18, 2022
6d24739
Merge branch 'sl-delete-broadcasts-4' into sl-delete-broadcasts-5
susanm74 Oct 18, 2022
a1543b3
Add JustCall channel type
norkans7 Oct 18, 2022
6c4d59c
More coverage
norkans7 Oct 18, 2022
da44ca4
Merge pull request #4056 from nyaruka/sl-delete-broadcasts-1
rowanseymour Oct 18, 2022
dc61e5e
Merge pull request #4052 from nyaruka/convert_missed_call_triggers
rowanseymour Oct 18, 2022
23659c2
Update CHANGELOG.md for v7.5.75
rowanseymour Oct 18, 2022
386feb8
Merge branch 'main' into session_status_change_trigger
rowanseymour Oct 18, 2022
f28d0bd
Tweak migration to convert missed call triggers to ignore archived tr…
rowanseymour Oct 18, 2022
b8285e4
Merge pull request #4065 from nyaruka/migration_tweak
rowanseymour Oct 18, 2022
935f869
Update CHANGELOG.md for v7.5.76
rowanseymour Oct 18, 2022
624fa47
Merge branch 'main' into sl-delete-broadcasts-3
rowanseymour Oct 18, 2022
769c5f7
Get rid of flow_types as a branding setting
rowanseymour Oct 18, 2022
d5a252e
Take features out of branding and make it deployment level and remove…
rowanseymour Oct 18, 2022
d7e0786
Rename demo views for clarity
rowanseymour Oct 18, 2022
8afd395
Fix api header when logged out
ericnewcomer Oct 18, 2022
a8a0421
Proper redirect when removing channels
ericnewcomer Oct 18, 2022
11854e5
Merge pull request #4067 from nyaruka/api-doc-updates
rowanseymour Oct 18, 2022
1eb9b56
Merge pull request #4068 from nyaruka/spa-channel-release
rowanseymour Oct 18, 2022
4b793e8
Merge pull request #4066 from nyaruka/less_things_in_branding
rowanseymour Oct 18, 2022
419f914
Update CHANGELOG.md for v7.5.77
rowanseymour Oct 18, 2022
a41be3b
Remove old crisp templates
rowanseymour Oct 18, 2022
261964b
Workspace management for multi org scenarios
ericnewcomer Oct 19, 2022
82a32f0
Merge branch 'main' into sl-delete-broadcasts-3
Oct 19, 2022
fca0e0d
updated migration and added test based on PR review
susanm74 Oct 19, 2022
ff1db1a
Merge branch 'main' into sl-delete-broadcasts-3
susanm74 Oct 19, 2022
f24fa2b
Merge branch 'sl-delete-broadcasts-3' of https://github.com/nyaruka/r…
susanm74 Oct 19, 2022
4efd7b1
Merge branch 'main' into sl-delete-broadcasts-5
Oct 19, 2022
976e93d
Merge branch 'main' into sl-delete-broadcasts-4
Oct 19, 2022
08865a7
Merge branch 'sl-delete-broadcasts-3' into sl-delete-broadcasts-4
susanm74 Oct 19, 2022
fa2d448
Merge branch 'sl-delete-broadcasts-4' of https://github.com/nyaruka/r…
susanm74 Oct 19, 2022
7dbbdaf
re-ran code checks
susanm74 Oct 19, 2022
7bd83ca
Merge branch 'sl-delete-broadcasts-3' into sl-delete-broadcasts-4
susanm74 Oct 19, 2022
b2f6d4a
Merge pull request #4059 from nyaruka/sl-delete-broadcasts-3
rowanseymour Oct 19, 2022
0e90506
Fix coverage
rowanseymour Oct 19, 2022
15ca14a
Merge pull request #4069 from nyaruka/remove_old_templates
rowanseymour Oct 19, 2022
1c8d933
Update CHANGELOG.md for v7.5.78
rowanseymour Oct 19, 2022
d54c4dd
Merge branch 'main' into add-justcall
norkans7 Oct 19, 2022
541cb23
Merge branch 'main' into sl-delete-broadcasts-4
rowanseymour Oct 19, 2022
e18ed37
Merge pull request #4057 from nyaruka/sl-delete-broadcasts-4
rowanseymour Oct 19, 2022
d5575ca
Tweak BroadcastCRUDL.Scheduled.get_queryset
rowanseymour Oct 19, 2022
1152068
Merge pull request #4063 from nyaruka/session_status_change_trigger
rowanseymour Oct 19, 2022
a61d3f4
Update broadcast_on_change db trigger to check is_active
rowanseymour Oct 19, 2022
30579ab
Add new indexes for scheduled broadcasts view and API endpoint
rowanseymour Oct 19, 2022
ada8b8b
Fix tests
rowanseymour Oct 19, 2022
6424086
Merge pull request #4071 from nyaruka/broadcast_tweaks
rowanseymour Oct 19, 2022
f4cec8c
Update CHANGELOG.md for v7.5.79
rowanseymour Oct 19, 2022
8e655c0
Remove no longer used Schedule.create_blank_schedule
rowanseymour Oct 19, 2022
35542bb
Merge pull request #4072 from nyaruka/schedule_cleanup
rowanseymour Oct 19, 2022
27f25f0
Remove task to suspend topups orgs
rowanseymour Oct 19, 2022
4e1e101
Merge pull request #4073 from nyaruka/rem_suspend_task
rowanseymour Oct 19, 2022
421e2d1
Update CHANGELOG.md for v7.5.80
rowanseymour Oct 19, 2022
da04c05
updated migration and added test based on PR review
susanm74 Oct 19, 2022
046d280
re-ran code checks
susanm74 Oct 19, 2022
41d64bf
Fix coverage
rowanseymour Oct 19, 2022
d60f0c4
Remove old crisp templates
rowanseymour Oct 18, 2022
d675f72
Update CHANGELOG.md for v7.5.78
rowanseymour Oct 19, 2022
1f9ee7d
Tweak BroadcastCRUDL.Scheduled.get_queryset
rowanseymour Oct 19, 2022
7cff597
Use database trigger to prevent status changes on flow sessions that …
rowanseymour Oct 17, 2022
6a06e80
Update broadcast_on_change db trigger to check is_active
rowanseymour Oct 19, 2022
979ea80
Add new indexes for scheduled broadcasts view and API endpoint
rowanseymour Oct 19, 2022
868d3c2
Fix tests
rowanseymour Oct 19, 2022
3941c32
Update CHANGELOG.md for v7.5.79
rowanseymour Oct 19, 2022
6c67624
Remove no longer used Schedule.create_blank_schedule
rowanseymour Oct 19, 2022
c84e9da
Remove task to suspend topups orgs
rowanseymour Oct 19, 2022
2a9c80d
Update CHANGELOG.md for v7.5.80
rowanseymour Oct 19, 2022
1b3823d
merged main and fixed conflicts
susanm74 Oct 20, 2022
419a84c
merged main and fixed conflicts
susanm74 Oct 20, 2022
15bde75
Always show plan formax even for orgs on topups plan
rowanseymour Oct 20, 2022
265f624
Merge pull request #4074 from nyaruka/dont_show_credits_summary
rowanseymour Oct 20, 2022
e3ee356
Update CHANGELOG.md for v7.5.81
rowanseymour Oct 20, 2022
f744a62
Merge pull request #4064 from nyaruka/add-justcall
rowanseymour Oct 20, 2022
cf4195e
Update CHANGELOG.md for v7.5.82
rowanseymour Oct 20, 2022
7120035
Remove topup management views
rowanseymour Oct 20, 2022
7ae517c
Remove view to transfer credits between orgs
rowanseymour Oct 20, 2022
fc68719
Merge branch 'main' into sl-delete-broadcasts-5
susanm74 Oct 21, 2022
0e25c96
updates based on PR review
susanm74 Oct 21, 2022
959a2c7
updates based on PR review
susanm74 Oct 21, 2022
3577486
Remove unused method
rowanseymour Oct 20, 2022
d9dcaf0
Merge pull request #4075 from nyaruka/remove_topup_ui_1
rowanseymour Oct 21, 2022
b5fea41
Add user child workspace management
ericnewcomer Oct 21, 2022
75e3661
merge
ericnewcomer Oct 21, 2022
49d9861
group perms test
ericnewcomer Oct 21, 2022
970b9ca
Remove credit alert functionality
rowanseymour Oct 21, 2022
c10970a
Update telegram library which doesn't work with Python 3.10
rowanseymour Oct 21, 2022
5653cc3
Merge pull request #4077 from nyaruka/update_telegram_lib
rowanseymour Oct 21, 2022
960e429
Removu spurious staff check
ericnewcomer Oct 21, 2022
5cc850f
Merge branch 'main' into drop_channel_connection
rowanseymour Oct 21, 2022
613a668
Remove specifying groups for message exports which will be added back…
rowanseymour Oct 21, 2022
5a25998
Fix migration conflict
rowanseymour Oct 21, 2022
97a6f26
Add missing migration
rowanseymour Oct 21, 2022
87064a9
Allow adding Android channel when its number is used on a WhatsApp ch…
norkans7 Oct 21, 2022
13cd986
Add configurable group membership columns to message, ticket and resu…
rowanseymour Oct 21, 2022
ef54f09
Better if condition
norkans7 Oct 21, 2022
f76c050
Use org instead of id for login choose
ericnewcomer Oct 22, 2022
f52f4a7
Merge pull request #4070 from nyaruka/workspace-bits
ericnewcomer Oct 22, 2022
001e604
Update CHANGELOG.md for v7.5.83
ericnewcomer Oct 22, 2022
715e685
Only show workspace children on settings menu
ericnewcomer Oct 22, 2022
894c090
No link fields on sub org page
ericnewcomer Oct 23, 2022
cf1effc
Merge pull request #4082 from nyaruka/link-fields
ericnewcomer Oct 23, 2022
337bb6e
Update CHANGELOG.md for v7.5.84
ericnewcomer Oct 23, 2022
c69f059
Fix test to use workspace plan
ericnewcomer Oct 23, 2022
7475664
more updates based on final review
susanm74 Oct 24, 2022
55590ca
Merge branch 'main' into sl-delete-broadcasts-5
susanm74 Oct 24, 2022
b949022
re-ran code checks
susanm74 Oct 24, 2022
025f0b7
Merge pull request #4081 from nyaruka/only-workspace-children
rowanseymour Oct 24, 2022
8b099bf
Merge pull request #4076 from nyaruka/remove_credit_alerts
rowanseymour Oct 24, 2022
9775456
Merge pull request #4079 from nyaruka/android-schemes-overlap
rowanseymour Oct 24, 2022
8e7f9bc
Merge pull request #4058 from nyaruka/sl-delete-broadcasts-5
rowanseymour Oct 24, 2022
6dd94d6
Merge branch 'main' into remove_msg_export_groups
rowanseymour Oct 24, 2022
90b5ce8
Remove unschedule option from scheduled broadcast read page
rowanseymour Oct 24, 2022
694d590
Merge pull request #4078 from nyaruka/remove_msg_export_groups
rowanseymour Oct 24, 2022
55bdca0
Rework Broadcast.release into an overridden delete() that can do soft…
rowanseymour Oct 24, 2022
7c026b7
Merge pull request #4084 from nyaruka/remove_unschedule
rowanseymour Oct 24, 2022
638f521
Merge pull request #4083 from nyaruka/broadcast_delete
rowanseymour Oct 24, 2022
3d900c2
Update CHANGELOG.md for v7.5.85
rowanseymour Oct 24, 2022
01eb428
Merge branch 'main' into groups_for_all_exports
rowanseymour Oct 24, 2022
8041fad
Remove Stripe and bundles functionality
rowanseymour Oct 24, 2022
298ae9d
Remove no-loner used credit alert email templates
rowanseymour Oct 24, 2022
6cabedd
Merge pull request #4086 from nyaruka/remove_unused_templates
rowanseymour Oct 24, 2022
0348f1b
Merge branch 'main' into remove_stripe
rowanseymour Oct 24, 2022
e5b451f
Merge pull request #4019 from nyaruka/drop_channel_connection
rowanseymour Oct 24, 2022
ad1879a
Update CHANGELOG.md for v7.5.86
rowanseymour Oct 24, 2022
a32c11b
WIP
rowanseymour Oct 24, 2022
6cb56e1
Merge branch 'main' into groups_for_all_exports
rowanseymour Oct 24, 2022
ad0599a
Fix migration conflict
rowanseymour Oct 24, 2022
79b4fa6
Fix tests
rowanseymour Oct 24, 2022
b237620
Update versions of mailroom etc that we use for testing
rowanseymour Oct 25, 2022
8d702dc
Change version of elasticsearch to one available in dockerhub
rowanseymour Oct 25, 2022
b2cfebc
Merge pull request #4080 from nyaruka/groups_for_all_exports
rowanseymour Oct 25, 2022
e24794c
Merge branch 'main' into remove_stripe
rowanseymour Oct 25, 2022
4b8940d
Update TableExporter to prepare values so individual tasks don't have to
rowanseymour Oct 25, 2022
0683cfd
Remove unused utils code
rowanseymour Oct 25, 2022
91ffc91
Remove unused segment and intercom dependencies
rowanseymour Oct 25, 2022
7215118
Merge pull request #4090 from nyaruka/remove_unused_deps
rowanseymour Oct 25, 2022
e188e09
Merge branch 'main' into remove_unused_code
rowanseymour Oct 25, 2022
9f363c0
Fix coverage
rowanseymour Oct 25, 2022
5faa61a
Merge pull request #4088 from nyaruka/simpler_exports
rowanseymour Oct 25, 2022
f24b8da
Add coverage to methods in utils/__init__
rowanseymour Oct 25, 2022
d7cd7e0
Merge branch 'main' into remove_unused_code
rowanseymour Oct 26, 2022
443a7b9
Merge pull request #4089 from nyaruka/remove_unused_code
rowanseymour Oct 26, 2022
7a08e4b
Merge branch 'main' into remove_stripe
rowanseymour Oct 26, 2022
98e1bfa
Update CHANGELOG.md for v7.5.87
rowanseymour Oct 26, 2022
d464af6
Remove the token refresh tasks for jiochat and wechat channels as cou…
rowanseymour Oct 26, 2022
95cefb3
REmove unused ChannelLog.from_response method
rowanseymour Oct 26, 2022
ee9e732
Fix coverage
rowanseymour Oct 26, 2022
d23e378
Merge pull request #4091 from nyaruka/remove_jiochat_and_wechat_refre…
rowanseymour Oct 26, 2022
d373eb4
Merge branch 'main' into remove_stripe
rowanseymour Oct 26, 2022
417c5cf
Merge pull request #4085 from nyaruka/remove_stripe
rowanseymour Oct 27, 2022
8e3a454
Update CHANGELOG.md for v7.5.88
rowanseymour Oct 27, 2022
5538182
Remove credit reporting on API workspace endpoint
rowanseymour Oct 28, 2022
d966e4b
Remove credit checks from nav
rowanseymour Oct 28, 2022
ba2ce7e
Remove unused org_credits template
rowanseymour Oct 28, 2022
da825eb
Remove TopUpCRUDL
rowanseymour Oct 28, 2022
676453a
Remove unused and broken clear_cache view
rowanseymour Oct 28, 2022
8844639
Remove no longer used low credits checking code
rowanseymour Oct 28, 2022
209dc39
Merge pull request #4093 from nyaruka/remove_credits_from_api
rowanseymour Oct 28, 2022
49495f7
Merge pull request #4094 from nyaruka/remove_topups_5
rowanseymour Oct 28, 2022
503283d
Don't allow creation of child orgs within child orgs
rowanseymour Oct 28, 2022
6cec1fb
Remove unused Org.get_account_value
rowanseymour Oct 28, 2022
7126a5d
Merge pull request #4096 from nyaruka/remove_account_value
rowanseymour Oct 28, 2022
0dde296
Merge branch 'main' into disallow_grandchildren
rowanseymour Oct 28, 2022
825a196
Add redirect from org_create_child if org has a parent
rowanseymour Oct 28, 2022
4d132f7
Fix not saving selected date format to new child org
rowanseymour Oct 28, 2022
936284b
Merge pull request #4095 from nyaruka/disallow_grandchildren
rowanseymour Oct 28, 2022
abc303a
Properly truncate the channel name
norkans7 Oct 31, 2022
1666a60
Merge pull request #4098 from nyaruka/WAC-name
rowanseymour Oct 31, 2022
8ef2842
Update CHANGELOG.md for v7.5.89
rowanseymour Oct 31, 2022
b039443
Allow non-beta users to add WeChat channels
rowanseymour Oct 31, 2022
a773f1f
Remove unused attachment_support field from ChannelType
rowanseymour Oct 31, 2022
34963f2
Remove unused ivr_protocol field from ChannelType
rowanseymour Oct 31, 2022
20cb01a
Merge pull request #4100 from nyaruka/cleanup_channel_types
rowanseymour Oct 31, 2022
2849c27
Merge branch 'main' into wechat_for_all
rowanseymour Oct 31, 2022
05f88b3
Fix test
rowanseymour Oct 31, 2022
558c3c2
Merge pull request #4099 from nyaruka/wechat_for_all
rowanseymour Oct 31, 2022
0ce53ba
Update flow editor
rowanseymour Oct 31, 2022
4353e5a
Update CHANGELOG.md for v7.5.90
rowanseymour Oct 31, 2022
48e75d8
Remove outdated contributor files
rowanseymour Oct 31, 2022
8ddd031
Update CHANGELOG.md for v7.5.91
rowanseymour Oct 31, 2022
8dbbd2b
Create cla.yml
ericnewcomer Nov 1, 2022
5d2a14c
Fix http log test
rowanseymour Nov 1, 2022
4cc5aff
Merge pull request #1702 from rapidpro/rowanseymour-patch-1
rowanseymour Nov 1, 2022
a4bebe0
Merge branch 'main' into main
rowanseymour Nov 1, 2022
9f7e57e
Create cla.txt
ericnewcomer Nov 1, 2022
93f66cb
Update README.md
rowanseymour Jan 2, 2023
5ee4a0f
Update ci.yml
rowanseymour Jan 2, 2023
94881d4
Update README.md
rowanseymour Jan 2, 2023
2ad966b
Create config.yml
ericnewcomer Jan 3, 2023
1fe2351
Create stale.yml
ericnewcomer Jan 3, 2023
40a8f56
Update stale.yml
ericnewcomer Jan 3, 2023
7fbb03a
Delete stale.yml
ericnewcomer Jan 3, 2023
4c2d28d
Create stale.yml
ericnewcomer Jan 3, 2023
abeee14
Create manual.yml
ericnewcomer Jan 3, 2023
dabf7b1
Update manual.yml
ericnewcomer Jan 3, 2023
809356e
Update manual.yml
ericnewcomer Jan 3, 2023
3c75cc6
Update README.md
rowanseymour Jan 4, 2023
38f5ba7
Update LICENSE
rowanseymour Jan 4, 2023
f2d03fd
Merge remote-tracking branch 'origin/main' into irlanda/v7.5.91
Robi9 Sep 26, 2023
a16b5e2
Update rp-apps version to 2.7.8a4
Robi9 Sep 26, 2023
d8f592e
Merge branch 'main' of https://github.com/Ilhasoft/rapidpro into irla…
paulobernardoaf Dec 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ exclude_lines =
omit =
*/gen/*
*/tests*
*__init__*
*settings*
temba/*/management/commands/*

Expand Down
1 change: 0 additions & 1 deletion .coveragerc_todo
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ exclude_lines =
omit =
*/gen/*
*/tests*
*__init__*
*settings*
temba/*/management/commands/*

Expand Down
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Getting Help
url: https://groups.google.com/g/rapidpro-dev
about: If you have a question about your own installation, ask a question on the dev list.
- name: Bugs and feature requests
url: https://github.com/nyaruka/rapidpro/issues
about: Open an issue with the maintainers to file a bug you found or to collaborate on new features.
157 changes: 79 additions & 78 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,98 +4,99 @@ jobs:
test:
name: Test
env:
python-version: '3.9.x'
postgis-version: '3.1'
redis-version: '5.0.6'
node-version: '10'
elastic-version: '7.17.2'
rpindexer-version: '7.3.7'
mailroom-version: '7.3.18'
python-version: "3.9.x"
postgis-version: "3.1"
redis-version: "5.0.6"
node-version: "10"
elastic-version: "7.17.6"
rpindexer-version: "7.5.0"
mailroom-version: "7.5.27"
DJANGO_SETTINGS_MODULE: temba.settings_ci
strategy:
matrix:
pg-version: ['12', '13']
pg-version: ["12", "13"]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Checkout code
uses: actions/checkout@v1

- name: Install PostgreSQL and PostGIS
uses: nyaruka/[email protected]
with:
postgresql version: ${{ matrix.pg-version }}
postgis version: ${{ env.postgis-version }}
postgresql db: temba
postgresql user: temba
postgresql password: temba
postgresql arguments: '--jit=off'
- name: Install PostgreSQL and PostGIS
uses: nyaruka/[email protected]
with:
postgresql version: ${{ matrix.pg-version }}
postgis version: ${{ env.postgis-version }}
postgresql db: temba
postgresql user: temba
postgresql password: temba
postgresql arguments: "--jit=off"

- name: Install Linux packages
run: |
sudo apt update
sudo apt install -y --no-install-recommends libgdal-dev gettext
- name: Install Linux packages
run: |
sudo apt update
sudo apt install -y --no-install-recommends libgdal-dev gettext ffmpeg

- name: Install Python
uses: actions/setup-python@v1
with:
python-version: ${{ env.python-version }}
- name: Install Python
uses: actions/setup-python@v1
with:
python-version: ${{ env.python-version }}

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-in-project: true
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-in-project: true

- name: Install Redis
uses: zhulik/[email protected]
with:
redis version: ${{ env.redis-version }}
- name: Install Redis
uses: zhulik/[email protected]
with:
redis version: ${{ env.redis-version }}

- name: Install ElasticSearch
uses: nyaruka/elasticsearch-action@master
with:
elastic version: ${{ env.elastic-version }}
- name: Install ElasticSearch
uses: nyaruka/elasticsearch-action@master
with:
elastic version: ${{ env.elastic-version }}

- name: Install Node
uses: actions/setup-node@v1
with:
node-version: ${{ env.node-version }}
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: ${{ env.node-version }}

- name: Initialize environment
run: |
poetry install
npm install
sudo npm install -g less
ln -s ${{ github.workspace }}/temba/settings.py.dev ${{ github.workspace }}/temba/settings.py
poetry run ./manage.py migrate
# fetch and extract rp-indexer
wget https://github.com/nyaruka/rp-indexer/releases/download/v${{ env.rpindexer-version }}/rp-indexer_${{ env.rpindexer-version }}_linux_amd64.tar.gz
tar -xvf rp-indexer_${{ env.rpindexer-version }}_linux_amd64.tar.gz rp-indexer
# fetch, extract and start mailroom
wget https://github.com/nyaruka/mailroom/releases/download/v${{ env.mailroom-version }}/mailroom_${{ env.mailroom-version }}_linux_amd64.tar.gz
tar -xvf mailroom_${{ env.mailroom-version }}_linux_amd64.tar.gz mailroom
./mailroom -db=postgres://temba:temba@localhost:5432/temba?sslmode=disable -redis=redis://localhost:6379/10 -log-level=info > mailroom.log &
- name: Initialize environment
run: |
poetry install
npm install
sudo npm install -g less
ln -s ${{ github.workspace }}/temba/settings.py.dev ${{ github.workspace }}/temba/settings.py
poetry run ./manage.py migrate
# fetch and extract rp-indexer
wget https://github.com/nyaruka/rp-indexer/releases/download/v${{ env.rpindexer-version }}/rp-indexer_${{ env.rpindexer-version }}_linux_amd64.tar.gz
tar -xvf rp-indexer_${{ env.rpindexer-version }}_linux_amd64.tar.gz rp-indexer
# fetch, extract and start mailroom
wget https://github.com/${{ github.repository_owner }}/mailroom/releases/download/v${{ env.mailroom-version }}/mailroom_${{ env.mailroom-version }}_linux_amd64.tar.gz
tar -xvf mailroom_${{ env.mailroom-version }}_linux_amd64.tar.gz mailroom
./mailroom -db=postgres://temba:temba@localhost:5432/temba?sslmode=disable -redis=redis://localhost:6379/10 -log-level=info > mailroom.log &

- name: Run pre-test checks
run: |
# test that everything is well formatted, no missing migrations etc
poetry run ./code_check.py --debug
# check we can collect and compress all static files
poetry run ./manage.py collectstatic --noinput --verbosity=0
poetry run ./manage.py compress --extension=".haml" --settings=temba.settings_compress
- name: Run pre-test checks
run: |
# test that everything is well formatted, no missing migrations etc
poetry run ./code_check.py --debug
# check we can collect and compress all static files
poetry run ./manage.py collectstatic --noinput --verbosity=0
poetry run ./manage.py compress --extension=".haml" --settings=temba.settings_compress

- name: Run tests
run: |
poetry run coverage run manage.py test --keepdb --noinput --verbosity=2
poetry run coverage report -i
poetry run coverage report -i --rcfile .coveragerc_todo
poetry run coverage xml
- name: Run tests
run: |
poetry run coverage run manage.py test --keepdb --noinput --verbosity=2
poetry run coverage report -i
poetry run coverage report -i --rcfile .coveragerc_todo
poetry run coverage xml

- name: Mailroom log
if: failure()
run: cat mailroom.log
- name: Mailroom log
if: failure()
run: cat mailroom.log

- name: Upload coverage
if: success()
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
- name: Upload coverage
if: success()
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
25 changes: 25 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "CLA Assistant"
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]

jobs:
CLAssistant:
runs-on: ubuntu-latest
steps:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
# Beta Release
uses: contributor-assistant/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN : ${{ secrets.CLA_TOKEN }}
with:
path-to-signatures: 'signatures/version1/cla.json'
path-to-document: 'https://github.com/nyaruka/license/blob/main/TextIt_CLA.md'
branch: 'main'
allowlist: bot*
remote-organization-name: 'nyaruka'
remote-repository-name: 'legal'
33 changes: 33 additions & 0 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Stale Manual

on:
workflow_dispatch:
inputs:
operations:
description: 'Number of operations'
default: "300"
required: true

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
operations-per-run: ${{ github.event.inputs.operations }}
stale-issue-label: 'inactive'
stale-issue-message: 'Without activity, this issue will be closed in 14 days.'
close-issue-message: 'This issue was closed for inactivity.'
stale-pr-message: 'Without activity, this PR will be closed in 14 days.'
close-pr-message: 'This PR was closed for inactivity.'
stale-pr-label: 'inactive'
days-before-pr-stale: 30
days-before-pr-close: 14
days-before-issue-stale: 30
days-before-issue-close: 14
33 changes: 33 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Close inactive issues and PRs

on:
schedule:
- cron: '30 1 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-label: 'inactive'
stale-issue-message: 'Without activity, this issue will be closed in 14 days.'
close-issue-message: 'This issue was closed for inactivity.'
stale-pr-message: 'Without activity, this PR will be closed in 14 days.'
close-pr-message: 'This PR was closed for inactivity.'
stale-pr-label: 'inactive'
days-before-pr-stale: 30
days-before-pr-close: 14
days-before-issue-stale: 30
days-before-issue-close: 14
Loading
Loading