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

Restore lost SDConfig.env attribute #5595

Merged
merged 1 commit into from Oct 21, 2020
Merged

Conversation

rmol
Copy link
Contributor

@rmol rmol commented Oct 20, 2020

Status

Ready for review

Description of Changes

Fixes #5594.

Testing

  • git checkout -b 5594-fix-lost-sdconfig-env origin/5594-fix-lost-sdconfig-env
  • Run make dev
  • Change securedrop/journalist_app/main.py to trigger a reload, and confirm that the change is detected.

Deployment

This is simply restoring old logic lost in the refactoring for #5532; it should not change production configurations.

Checklist

If you made changes to the server application code:

  • Linting (make lint) and tests (make test) pass in the development container

If you made non-trivial code changes:

  • I have written a test plan and validated it for this PR

Not having it means that the dev server does not run in debug mode,
preventing reloading when code is changed.
@rmol rmol force-pushed the 5594-fix-lost-sdconfig-env branch from 34af0f1 to 1a89a90 Compare October 21, 2020 14:38
Copy link
Contributor

@emkll emkll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good to merge when CI passes

@emkll emkll merged commit 446febc into develop Oct 21, 2020
@emkll emkll deleted the 5594-fix-lost-sdconfig-env branch October 21, 2020 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dev server hot reload has stopped working
2 participants