[LG-6146] Prepare for removing ERB from service_providers.yml#7742
[LG-6146] Prepare for removing ERB from service_providers.yml#7742
Conversation
ce70d8f to
4a2628e
Compare
1baeae9 to
ea854c2
Compare
|
question: Can this be tested in a deployed environment (like ursula) before merging? Maybe it's not that important to test before merging because the worst that would happen is it would temporarily break our deployments and not the actual running instance? |
|
@julialeague Unfortunately I don't think so - we'll have to coordinate merges since the file is used everywhere. With that said, I think we could probably make this a bit safer by splitting this up into two changes - first just adding the @zachmargolis does that seem right to you as a safer sequence of events? Thanks for the inspiration @julialeague! |
ea854c2 to
5dbeeb3
Compare
I think it is possible to test this before merging to identity-idp/lib/deploy/activate.rb Line 45 in 9a55ab2 |
5dbeeb3 to
b5bafe8
Compare
|
I tried testing this in my personal sandbox but something strange is happening during seeding - I'm getting a validation error on a duplicate abbreviation when seeding agencies, which is weird since I recently nuked and re-provisioned my personal sandbox a few weeks ago and the I'm pretty sure this PR should be safe to merge (it only adds |
b5bafe8 to
3ac0760
Compare
|
Also, updated this to account for @julialeague's comment in https://github.com/18F/identity-idp-config/pull/1256 - this modifies the seeder behavior for cases where Note that the updated |
There was a problem hiding this comment.
Please double check me here but I'm 99% that lines 63-68 are the same, functionally, as the previous code, with the addition of line 65 (restrict_to_deploy_env set to sandbox). I found the old code hard to read / reason about so even though this is more verbose I think it's a bit clearer.
There was a problem hiding this comment.
very minor, but my immediate thought when glancing at this was that it could be rewritten as a case statement. Either way works, though!
There was a problem hiding this comment.
Thanks! I generally like guard clauses over case statements for Ruby but I had the same thought myself 😄
Resolves LG-6146 changelog: Internal, Deployment, Add support for environment-specific content in configuration
3ac0760 to
8ffb9fb
Compare
|
Tested this in a personal sandbox (thanks @mitchellhenke) and it appeared to work fine, so going to merge this in for tomorrow's release |
Resolves LG-6146
Precursor to #7764 to avoid breaking things, should be safe to merge/deploy before the YAML files change.