-
Notifications
You must be signed in to change notification settings - Fork 19
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
BgsPowerOfAttorney model #13922
BgsPowerOfAttorney model #13922
Conversation
Generated by 🚫 Danger |
Code Climate has analyzed commit 4cd8d65 and detected 0 issues on this pull request. View more on Code Climate. |
f595857
to
16c5f99
Compare
f12020c
to
24b1e45
Compare
…erentiate multiple claimants on a single appeal
👀 as this will likely dovetail with #14004 although that one needs a slightly different BGS endpoint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work - the code for this looks really solid 🥇 (the lack of comments is not from lack of digging!).
I saw that there might still be work being done on tests and I haven't reviewed the tests yet, so I'll take one more look tomorrow. This has been really fun to review, but phew, it's a big one!
Thanks for the review @leikkisa -- I have finished the tests I had in mind. I'm sure CI will find some more regressions, which I hope to iron out today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @pkarman, I added some more comments, but I think they're easy fixes, so 👍 overall.
I think something needs to happen with get_poa_from_bgs_poa
when it's being used on the less reliable BGS service (it returns a different data structure). Most of my comments are about that. Also it'd be better to use that service as the backup for the "by_participant_ids" version instead of the other way around.
thanks for that catch @leikkisa ! really helped simplify and clarify the changes here. not to mention working the right way! 😅 |
### Description Fixes regression introduced in #13922 with the advent of the BgsPowerOfAttorney AR model. We were skipping our local db cache and always making BGS calls, which slowed the job down to take hours instead of minutes.
Resolves #13883
Description
Converts the
BgsPowerOfAttorney
service class to an Active Record model.There's a lot of files touched in this PR, but most of them are fixing test fixture data to work with this new model.
Testing Plan
User Facing Changes
None.
Documentation Updates
Database Changes
Only for Schema Changes
make docs