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

Ensure that all settings match old values #1264

Merged
merged 1 commit into from May 4, 2018

Conversation

c-w
Copy link
Contributor

@c-w c-w commented May 4, 2018

This fixes a regression introduced in ec06b9c where the settings were refactored into a class hierarchy but some values were changed by accident as part of this refactor.

The fix was verified by logging out the configs on the commit before the refactor, applying the refactor, logging out the configs again and then diffing the results.

Snippet used to log the configs:

with open('config-' + app.config['ENV'] + '.txt', 'w') as fobj:
    config = str(app.config).replace(', ', ',\n')
    fobj.write(config)

Paired with @liliankasem

This fixes a regression introduced in ec06b9c where the settings were
refactored into a class hierarchy but some values were changed by
accident as part of this refactor.

The fix was verified by logging out the configs on the commit before the
refactor, applying the refactor, logging out the configs again and then
diffing the results.

Snippet used to log the configs:

```py
with open('config-' + app.config['ENV'] + '.txt', 'w') as fobj:
    config = str(app.config).replace(', ', ',\n')
    fobj.write(config)
```

Paired with @liliankasem
Copy link
Member

@colinschoen colinschoen left a comment

Choose a reason for hiding this comment

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

Thanks Clemens. I should have done that when reviewing.

LGTM

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.

None yet

2 participants