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

Fixes: #9584 Added exception when the import is a draft post as published_by is null #10169

Merged
merged 2 commits into from
Dec 3, 2018
Merged

Conversation

dnguneratne
Copy link
Contributor

Fixes: #9584

This PR adds an exception in core\server\data\importer\importers\data\base.js replaceIdentifiers() to skip adding a userReferenceProblem when the import is status: draft and user reference is published_by.

@dnguneratne dnguneratne changed the title Added exception when the import is a draft post as published_by is null Fixes: #9584 Added exception when the import is a draft post as published_by is null Nov 15, 2018
…null

closes #9584
- Importer checks if any user reference is null. If the post is a draft
published_by will be null and an error will be logged.
- Adds an exception to skip logging an error in this case.
@kirrg001 kirrg001 self-assigned this Nov 15, 2018
Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

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

Thanks 👻

Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

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

Thanks :)

@kirrg001 kirrg001 merged commit 6bc658b into TryGhost:master Dec 3, 2018
@dnguneratne dnguneratne deleted the issue-9584 branch December 3, 2018 16:50
allouis added a commit that referenced this pull request Dec 4, 2018
* master:
  Version bump to 2.7.0
  Updated Ghost-Admin to 2.7.0
  🐛 Fixed contributors being able to delete draft posts as co-author (#10239)
  Added configuration controller to v2 API (#10056)
  🐛 Fixed site changed webhook not triggered for scheduled posts
  🐛 Fixed invalid imported subscribers count (#10229)
  🐛Fixed auto redirect for extra data queries on post and page resources (#9828)
  Included relations if static resource is post | page (#10148)
  Renamed API -> Api for v2 auth logic (#10142)
  🐛Removed user reference warning from importer report if post is a draft (#10169)
  🐛 Fixed edit permission of the common article by multiple authors (#10214)
  Updated npm keywords (#10217)
allouis added a commit that referenced this pull request Dec 7, 2018
* master:
  Version bump to 2.7.1
  Updated Ghost-Admin to 2.7.1
  Version bump to 2.7.0
  Updated Ghost-Admin to 2.7.0
  🐛 Fixed contributors being able to delete draft posts as co-author (#10239)
  Added configuration controller to v2 API (#10056)
  🐛 Fixed site changed webhook not triggered for scheduled posts
  🐛 Fixed invalid imported subscribers count (#10229)
  🐛Fixed auto redirect for extra data queries on post and page resources (#9828)
  Included relations if static resource is post | page (#10148)
  Renamed API -> Api for v2 auth logic (#10142)
  🐛Removed user reference warning from importer report if post is a draft (#10169)
  🐛 Fixed edit permission of the common article by multiple authors (#10214)
  Updated npm keywords (#10217)
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.

2 participants