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

🐛 Honour labs defaults on import #8667

Merged
merged 1 commit into from
Jul 9, 2017

Conversation

ErisDS
Copy link
Member

@ErisDS ErisDS commented Jul 8, 2017

closes #8601

  • This makes sure that when you do an import, you still get the LATEST
    default settings for labs. Even if you had a different value before.
  • LTS -> 1.0 is an upgrade, and Public API should be on by default, even if you
    had deliberately turned it off before.
  • Cheeky test added

@@ -54,6 +58,12 @@ class SettingsImporter extends BaseImporter {

_.each(this.dataToImport, function (obj) {
obj.key = self.legacySettingsKeyValues[obj.key] || obj.key;

if (obj.key === 'labs' && labsSetting && labsSetting.value) {

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

closes TryGhost#8601

- This makes sure that when you do an import, you still get the LATEST
  default settings for labs. Even if you had a different value before.
- LTS -> 1.0 is an upgrade, and Public API should be on by default, even if you
  had deliberately turned it off before.
- Cheeky test added
@kirrg001 kirrg001 merged commit 6a45ca2 into TryGhost:master Jul 9, 2017
@ErisDS ErisDS deleted the import-publicAPI branch August 1, 2017 07:18
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.

Enable Public API labs flag by default
2 participants