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

Fix post status issues in Scheduling screen #13591

Merged
merged 4 commits into from
Mar 10, 2020
Merged

Conversation

bjtitus
Copy link
Contributor

@bjtitus bjtitus commented Mar 4, 2020

Fixes #13586

Consolidates the logic for converting a Post to the proper PublishSettingsViewModel status and adds unit tests.

Before After

To test:

  • Back date a post and check the "Status" row.
  • "Status" row should show "Published" when the date is not in the future but instead shows "Scheduled"

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@bjtitus bjtitus added this to the 14.4 milestone Mar 4, 2020
@bjtitus bjtitus requested a review from ScoutHarris March 4, 2020 14:23
@bjtitus bjtitus self-assigned this Mar 4, 2020
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Mar 4, 2020

You can trigger an installable build for these changes by visiting CircleCI here.

@loremattei loremattei modified the milestones: 14.4 ❄️, 14.5 Mar 9, 2020
@loremattei
Copy link
Contributor

Hey there! I'm moving this to 14.5 because 14.4 has just been cut. If you want this to make it to 14.4, please feel free to ping me!

Copy link
Contributor

@ScoutHarris ScoutHarris left a comment

Choose a reason for hiding this comment

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

Hey @bjtitus .

This seems to work as intended. After updating the release note, :shipit:

@@ -1,6 +1,7 @@
14.4
-----
* Post Settings: Fixes the displayed publish date of posts which are to be immediately published.
* Post Settings: Fix issue where the status of a post showed "Scheduled" instead of "Published" after scheduling before the current date.
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a note to move this to 14.5.

@bjtitus bjtitus merged commit 7274cd1 into develop Mar 10, 2020
@bjtitus bjtitus deleted the fix/13586-published_status branch March 11, 2020 23:11
@yaelirub
Copy link
Contributor

yaelirub commented Mar 24, 2020

@bjtitus , currently in 14.5 beta and develop we are not able to set a past date for a post please look at this issue @designsimply created and the videos in it. I'm experiencing the same issue.

cc: @bummytime

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.

Post Scheduling: Post Status shows "Scheduled" when back dating a post
4 participants