Skip to content
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

Fix email sending templating bug #455

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

yanokwa
Copy link
Member

@yanokwa yanokwa commented Aug 2, 2023

Closes #454

What has been done to verify that this works as intended?

I ran docker compose config | grep EMAIL_FROM to see what the config was.

I also confirmed that emails are delivered with this change.

Why is this the best possible solution? Were any other approaches considered?

There might be a bug in docker/compose v2.20.2/24.0.5, but thankfully https://docs.docker.com/compose/environment-variables/env-file/#parameter-expansion says unbraced vars are supported, so that's why this change works.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

It should only affect people who might have changed docker-compose.yml. If something's broken when they upgrade, it will be pretty easy to see because they can't create or reset web users. Hopefully that will lead to a forum post or this issuel.

Does this change require updates to documentation? If so, please file an issue here and include the link below.

Before submitting this PR, please make sure you have:

  • verified that any code or assets from external sources are properly credited in comments or that everything is internally sourced

@yanokwa yanokwa changed the title Fix templating bug Fix email sending templating bug Aug 2, 2023
@lognaturel
Copy link
Member

I'm annoyed! But also glad there's an easily-verifiable fix.

@matthew-white
Copy link
Member

Are we thinking of releasing this change with .4? Or are we planning to merge to the master branch before .4 (as a patch release)?

@yanokwa yanokwa changed the base branch from master to next August 4, 2023 00:08
@yanokwa
Copy link
Member Author

yanokwa commented Aug 4, 2023

If we are already doing a hot fix, great. If not, it can wait.

@matthew-white
Copy link
Member

Sounds good. There's a chance we'll have a hot fix coming up, so I won't merge to next quite yet, as next already has a change for .4. I can merge once we know whether we'll have a hot fix.

@matthew-white
Copy link
Member

I now think it's less likely that we'll need a hot fix, so I'll go ahead and merge. I'll merge with a merge commit so that it's easy to include the commit in a hot fix if that does end up happening.

@matthew-white matthew-white merged commit f78da7a into getodk:next Aug 7, 2023
@yanokwa yanokwa deleted the fix-templating-bug branch August 14, 2023 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docker-compose templating breaks email sending
3 participants