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

Adding Klaxon Instance Variable Name to Home Page & Change Mailer (Issue#70 and Issue#373) #552

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

aandreiu
Copy link

Hello! I have worked on tackling Issue #70 (adding a variable to say the name of Klaxon instance on home page) and Issue #373 (adding variable name for Klaxon instance to subject line of change mailer).

I added a new environment variable (KLAXON_INSTANCE_NAME) (as an aside, my setting for this value crept into the docker-compose-dev.yml file, but I wasn't sure how the project wanted to handle version control for that kind of thing.)

For #70, if set, this value appears in the nav. For #373, I use the same environment variable in the page.html.erb file (messge body) and in the change_mailer.rb file (to set the subject line.)

I tested locally for Issue #70, but ran into some issues testing the Issue #373 since there was no example in the repo for how to test the mailers. I created a new preview file called change_mailer_preview.rb, located in spec/mailers/previews. @rdmurphy had suggested creating a watched page locally and run the command to check the pages a couple times in order to generate some changes so that the change mailer is triggered. I have not had the opportunity to get this functioning in order to test the change mailer, but I wanted to line up this PR in case I have trouble finishing this after the academic quarter ends.

JoeGermuska and others added 3 commits May 11, 2022 15:32
… Move the docker-compose-override.yml file to some other name so that it isn't used automatically for production deployments; create a dev.Dockerfile which mounts the repository in the image, so that docker image builds aren't required each time code changes; start updating DOCKER.md to explain process; remove obsolete docker_example directory.
@tommeagher
Copy link
Member

@aandreiu Alexandra, thank you so much for this! I skimmed the code and it looks cool at a glance. We'll give it a close review before we merge. Really appreciate your contribution to the project. We'll also want to add you to our list of contributors at the bottom of our README.md. Thanks!

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.

3 participants