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

Automatically upload published and draft posts with existing remote #12594

Merged
merged 6 commits into from
Oct 1, 2019

Conversation

leandroalonso
Copy link
Contributor

Fixes a regression in #12324

For tests instructions, please take a look in #12466

Update release notes:

  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.
  • If it's feasible, I have added unit tests.

This was preventing posts with remote to be marked as failed
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Oct 1, 2019

Warnings
⚠️ PR is not assigned to a milestone.

Generated by 🚫 dangerJS

Copy link
Member

@shiki shiki left a comment

Choose a reason for hiding this comment

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

@leandroalonso Thank you for working on this. I have some questions (inline). Also, do you have a suggestion on how we could have prevented the regression from happening? Could we have added another test in #12466? Or maybe the test that was missing was for markAsFailedandDraftIfNeeded?

@leandroalonso
Copy link
Contributor Author

@shiki This wasn't a logic directly related to #12466 but in the end it affected it.

Adding a test for this specific regression in there would imply an integration test, with multiple parts not being mocked. I would try to avoid that.

I added a new test case to ensure this will not happen anymore. I'm pretty comfortable with it by now, what do you think?

Copy link
Member

@shiki shiki left a comment

Choose a reason for hiding this comment

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

@leandroalonso Thank you for info.

I added a new test case to ensure this will not happen anymore. I'm pretty comfortable with it by now, what do you think?

Yeah, this seems fine. I added another one for good measure. a490330

@shiki
Copy link
Member

shiki commented Oct 1, 2019

@leandroalonso Please merge it if you agree with my changes and the build passes. 🙂

@leandroalonso leandroalonso merged commit 979540d into issue/12240-master-branch Oct 1, 2019
@leandroalonso leandroalonso deleted the issue/fix_12324_regression branch October 1, 2019 16:05
@shiki shiki added this to the 13.6 milestone Oct 25, 2019
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.

3 participants