Synth error handling #1502
Reference in New Issue
Block a user
Delete Branch "synth-overage"
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?
@zachgoll Not sure if I'm using the error stuff correctly. Mind taking a look?
@Shpigford to get this working, there are a few additional steps:
First, we'll need to implement the
stale?method on the issue:Then, we need to add a method in
issuable.rbto observe this error:And finally, we need to call
account.observe_synth_credits_overageduring the account sync process:Simpler solution
I think given this use case, there are probably some simplifications that could be made to the "issues" flow and the
Provider::Synthto make all of that more seamless (I can circle back to this after I get investment syncs squared away).In the meantime, a simpler solution would be to add a convenience method on
Familyand then conditionally show some alert message somewhere in the UI when they are over the limit:@zachgoll I definitely prefer the simple approach. 🙂 Will get that swapped out and have you review in a bit.
@Shpigford yeah I agree. Longer term, I think we will basically have 1 single
Issue::SynthIssue < Issuethat will cover all the possible Synth errors and provide UIs for dealing with them, but for now it definitely needs some fine-tuning to avoid adding a bunch of unnecessary complexity@zachgoll Mind taking a look at this version?
Yep, looks good