Add partial account sync support #653
Reference in New Issue
Block a user
Delete Branch "584-partial-account-sync"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #584
@zachgoll Ready for review
Thanks for tackling this one! Definitely a tricky flow.
I think the code looks good overall, just added a few comments around the location and content of the tests.
@@ -19,1 +63,4 @@delete valuation_url(first)endendendSo looking through the tests outlined in
valuations_controller_testandtransactions_controller_test, I think the test cases themselves are useful to have, but they probably don't belong in a controller test. It looks like the questions we're asking here are:I think the first and the second assertions are correct to be here in the controllers, but the third question should probably be tested in
syncable_testas it asserts against the logic that is handled by theAccountmodel.We could probably consolidate all the controller tests so that for each CRUD controller action, we assert that:
That way, we're only testing the responsibility of the controller, which is to ensure the job is successfully enqueued with the correct args.
In reference to my comment above about the controller tests, I think what you have here is good and covers the core logic that we're trying to validate.
@@ -19,1 +63,4 @@delete valuation_url(first)endendendThanks for the great feedback, I agree!
@@ -19,1 +63,4 @@delete valuation_url(first)endendendI've updated the tests
Awesome, thanks for the updates.