-
-
Notifications
You must be signed in to change notification settings - Fork 447
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
3343 partner profile #4051
3343 partner profile #4051
Conversation
Hey @jadekstewart3 -- a question rather than an actual review.... You are proposing a new partial -- Is the partial that this is currently in one of the ones that the organization controls the appearance of ? There is a field in the "My Organizations" for the bank around this. Just a sanity check. |
pinging @jadekstewart3 on this -- there was an open question. |
@cielf Thank you for pinging me, I put this ticket on the back burner until I get the kits sorted. If I understand your correctly, I was thinking of moving that field to a new partial, but I actually was unable to find the field under banks, only for the partners.. Does that answer your question? |
I looked into it -- the agency information partial is always shown -- several of the others are controlled by the bank choosing whether the partners see them or not. So the program address should also always be shown. In other words, there is nothing to be done re my question. |
@cielf So, if I'm understanding correctly, this ticket is no longer necessary? (Sorry, Im skeptical when there is less work to be done lol) |
@jadekstewart3 Ummm.. no - the moving of the fields is still necessary -- what isn't necessary is the extra work of making your new partial optional -- because the original partial is always shown, I'm assuming, at least for now, that we will always show this one. |
@jadekstewart3 is this still under development? There's been no activity in quite a while. |
Hey @dorner, I've been juggling a few things lately, but I'm ready to dive back into this task whenever you need me to. If someone else wants to give it a shot, I'm cool with that too. Just let me know! Thanks! |
@jadekstewart3 if you're good with picking it up again, please do! |
…l, modify form to use profile_form
@dorner or @cielf In Or create an optional partial, to display if the current address fields have values? I remember @cielf saying that the optional partial was not necessary, but digging into it I am seeing a use case for it since it seems like we would be re using this section of code, so I just wanted to check :) |
I just edited a partner as org_admin1@example.com on staging, and there is a "Program / Delivery Address (if different)". I think we added in the Delivery bit after the issue was originated. Oh. I see the issue -- diaper_bank/manage/edit would be editing the information for the diaper bank. We're talking about (for example) diaper_bank/profiles/2/edit -- which is editing the profile information for a partner. |
…ed a condistional to only show program address if any of the address fields are present
…-essentials into 3343_partner_profile
@cielf - I think I'm all finished with this, but rubocop is not passing CI for some reason? Locally its passing |
Yeah -- the CI also calls erblint, (the command in ci seems to be Run bundle exec erblint --lint-all) . This is catching a trailing newline in app/views/partners/profiles/edit/_agency_information.html.erb:58 |
Hey @jadekstewart3 -- going ahead and kicking the tires on this -- I figure the erblint issue noted above will be exceedingly minor to fix. Please check throughout that the heading for that group of fields is "Program / Delivery Address (if different)". I'm seeing a couple different variations of it. (I think we might have put the "Delivery" part of the label in after you started on this the first time.) When viewing, the section should show whether or not the fields are filled in. (That's how it works on staging, and I don't know of a business reason to change it.) Thanks! |
@cielf I think I have addressed what you've asked. |
I've got a block of work on HE slotted for tomorrow, will try to get to this then. |
LGTM -- @dorner.. Do you want to take a quick look for any technical concerns? |
All good on my end! |
@jadekstewart3: Your PR |
Checklist:
Resolves #3343
Description
Moved program address (if different) fields to just below the agency information. This is currently completed for partners and tested to ensure partner profile is updating with new information in the new location. Banks still need to have this moved.
Todo
[X] Move program address (if different) for partners edit and show
[X] Test that agency selections are maintained during partner profile update
[X] Locate program address if different for banks, and move to the desired section just below the agency information
[X] Test to ensure partner profile updates as expected
Type of change
How Has This Been Tested?
Tested that edit functionality still works properly in:
spec/requests/profiles_requests_spec.rb
spec/requests/partners/profiles_requests_spec.rb
Screenshots
Banks:
Partners: