-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Publish button in Post List should auto-upload the post #12571
Publish button in Post List should auto-upload the post #12571
Conversation
This means that if no connection is available it will be auto uploaded next time
Generated by 🚫 dangerJS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on this, @leandroalonso. Works as advertised. 🎉
I have a question on the success block. Please see my inline comment.
WordPress/Classes/ViewRelated/Post/AbstractPostListViewController.swift
Outdated
Show resolved
Hide resolved
Hey @leandroalonso , thanks for working on this. The publish button in the post card seems to immediately publish scheduled posts. Is this the expected behavior? I'm worried that this might be confusing to the users, thinking that the post will be scheduled to be published and not immediately published. Thoughts? |
@yaelirub I think we currently do not support scheduled posts, is that right? In that case, this is a scenario for the future. What do you think? |
To clarify #12571 (comment) more, we're focusing on getting the flow done as described in #12240. But that is only for drafts and published posts. These are currently ignored:
One of the reasons is to minimize the amount of manual testing and code reviews we have to do and focus on the flow instead of the post status. Second is adding support for the other post types is mainly going to be just:
These post types will be added in #12227. I was hoping that this strategy would save us some time. 😬 |
@@ -908,6 +908,7 @@ class AbstractPostListViewController: UIViewController, | |||
|
|||
apost.date_created_gmt = Date() | |||
apost.status = .publish | |||
apost.shouldAttemptAutoUpload = true | |||
self.uploadPost(apost) | |||
self.updateFilterWithPostStatus(.publish) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed with @leandroalonso, we will remove these auto-switching of tabs in a separate PR (#12584).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything seems to work as expected. LGTM!
@yaelirub Let me know if you still have some concerns.
I still have some concerns. Let's chat. @leandroalonso , please hold off on merging 🙏 |
I talked to Yael about this and we concluded that her concerns were not caused by this PR. We created a separate issue: #12588. |
Fixes #12382
To test
Case 1
Case 2
Update release notes:
RELEASE-NOTES.txt
if necessary.PostListViewController
, unfortunately)