Commit graph

4413 commits

Author SHA1 Message Date
CactusPuppy
42518a1323
Fully address AR callback issues 2021-04-13 11:44:36 -07:00
CactusPuppy
f4c0216812
Remove name conflict change which caused PaperTrail to fail 2021-04-13 11:44:36 -07:00
CactusPuppy
5aa24ee261
Add spec for query_api method 2021-04-13 11:44:36 -07:00
CactusPuppy
a6e76e3c90
Make body argument for query_api more clear 2021-04-13 11:44:35 -07:00
CactusPuppy
563d283e5b
Remove redundant comments 2021-04-13 11:44:35 -07:00
CactusPuppy
d59c5e9c1d
Actually properly track saved changes within the User model 2021-04-13 11:44:34 -07:00
CactusPuppy
f41d0625b4
Rubocop linting issues fixed 2021-04-13 11:44:34 -07:00
Ziyi
c00180019b
Try fixing query_api 0 argument error 2021-04-13 11:44:34 -07:00
Ziyi
83d89fc361
self.query_api 2021-04-13 11:44:33 -07:00
Ziyi
6b108043e1
DRY query_api in mailbluster_manager 2021-04-13 11:44:33 -07:00
CactusPuppy
a553a53b51
Avoid repeating headers 2021-04-13 11:44:33 -07:00
CactusPuppy
7a5777c4f7
Actually remove redundant code from helpers 2021-04-13 11:44:32 -07:00
Ziyi
130a43eb17
Edit lead when user changes name 2021-04-13 11:44:32 -07:00
CactusPuppy
98a40889a8
Prepare to add Mailbluster update name 2021-04-13 11:44:32 -07:00
CactusPuppy
1d89bbd59c
Fix Rubocop linting issues 2021-04-13 11:44:31 -07:00
CactusPuppy
f0296e2150
Properly fire update_email hook after commit which changes user email 2021-04-13 11:44:31 -07:00
CactusPuppy
9f19f5d913
Move Mailbluster business logic to services/ instead of helpers/ 2021-04-13 11:44:31 -07:00
CactusPuppy
b9ff3a2530
Fix Rubocop linting issues 2021-04-13 11:44:30 -07:00
CactusPuppy
e0b62469b2
Properly rename job file 2021-04-13 11:44:30 -07:00
CactusPuppy
a2ad61b19e
Fix typo in Mailbluster delete lead job 2021-04-13 11:44:30 -07:00
Ziyi
f4a324cd79
Finished spec, added FIXME for caveat in email change 2021-04-13 11:44:29 -07:00
Ziyi
7adf6730da
Call mailbluster helpers when registering / cancelling reg to conference 2021-04-13 11:44:29 -07:00
Ziyi
0bb025a954
CAUTION: deleted user model spec for mailbluster 2021-04-13 11:44:29 -07:00
CactusPuppy
a2bd73ed16
Use better and clearer shorthand for callbacks 2021-04-13 11:44:28 -07:00
CactusPuppy
d938e3d330
Fix some RSpec issues 2021-04-13 11:44:28 -07:00
CactusPuppy
6373abf16a
Use Active Jobs to spin Mailbluster requests off into a separate thread 2021-04-13 11:44:28 -07:00
CactusPuppy
671d010e68
Add Active Job definitions for executing Mailbluster requests 2021-04-13 11:44:27 -07:00
CactusPuppy
9ae19c8db6
Fix Rubocop linting 2021-04-13 11:44:27 -07:00
Ziyi
fbb16fb91b
Spec for delete_lead WIP 2021-04-13 11:44:27 -07:00
CactusPuppy
5b193919dc
Fix Rubocop linting issues 2021-04-13 11:44:26 -07:00
CactusPuppy
7bc0842d26
Fix up RSpec tests 2021-04-13 11:44:26 -07:00
CactusPuppy
e99d9ac054
Use HTTParty to make connection logic much simpler 2021-04-13 11:44:26 -07:00
CactusPuppy
a4eb07a4a8
Properly stub MailBluster calls in FactoryBot user creation 2021-04-13 11:44:25 -07:00
Ziyi
10e14400e2
Called create_lead in model, FactoryBot errors 2021-04-13 11:44:25 -07:00
CactusPuppy
246a67f695
Prepare to add edit_lead spec 2021-04-13 11:44:25 -07:00
CactusPuppy
479fd4e898
Match actually used URL in helper 2021-04-13 11:44:24 -07:00
CactusPuppy
0c055a1297
Use OSEM_NAME if available 2021-04-13 11:44:24 -07:00
CactusPuppy
af06589230
Ensure Mailbluster helper methods actually correctly cause changes in the end service 2021-04-13 11:44:23 -07:00
CactusPuppy
c78b151390
Fix up spec to properly pass under expectations 2021-04-13 11:44:23 -07:00
Ziyi
d4f823e7f4
delete_lead WIP 2021-04-13 11:44:23 -07:00
CactusPuppy
df9187a344
Add spec for deleting leads 2021-04-13 11:44:22 -07:00
CactusPuppy
be334da9a3
Fix rubocop complaints 2021-04-13 11:44:22 -07:00
CactusPuppy
633d62d729
Refactor Mailbluster API URL into a constant 2021-04-13 11:44:22 -07:00
Ziyi
1f3832c883
Put user.variables in Mailbluster create test 2021-04-13 11:44:21 -07:00
CactusPuppy
4db10c1a8f
Make return stub value more accurate 2021-04-13 11:44:21 -07:00
CactusPuppy
40fa873a9b
Get WebMock matchers to work 2021-04-13 11:44:21 -07:00
Ziyi
e026159e03
Test mailbluster request body 2021-04-13 11:44:20 -07:00
CactusPuppy
7ed574c20e
Start setting up WebMock to stub responses 2021-04-13 11:44:20 -07:00
Ziyi
af4ec41f87
Fixed spec @user 2021-04-13 11:44:20 -07:00
Ziyi
7f60f8aace
Init create_lead, fix MailblusterHelper name 2021-04-13 11:44:19 -07:00