-
Notifications
You must be signed in to change notification settings - Fork 106
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
Feedback - "Learn WordPress Website Post Author Selection Error" #2227
Comments
@bsanevans @devmuhib009 I think what we are hitting here is a hard limit on the number of authors that are displayed in the Author select box for a tutorial. If you look at the authors there, it's an alphabetical list of 50, ending around H. For example, myself and Wes are also not on that list, even though we are Admins. We might need to either a) do some pruning of users that have access to add/edit tutorials or b) see if we can increase that limit. @pkevan do you know if there is a limit on returning only 50 users in the Author select box for the Post edit view on .org sites? I did a quick scan on the wporg-learn plugin and didn't find anything there. |
This seems like it may be related to something else (Gutenberg plugin perhaps?), since I can reproduce the same behaviour on a make.wordpress.org site. |
@pkevan got it, thanks. I will test with a local "vanilla" site to be sure. |
Actually, I think this might be by design - list only the first 50 users, as the author box is designed for search. I've tested this on several different sites, and it appears consistent. |
Ah, got it. Time to inspect the REST request... |
@pkevan while we are diving into a possible fix, are you perhaps able to manually assign the user to the post via the database? |
Something strange is going on - i'll continue to investigate before manually changing something directly in the DB and potentially causing more problems! |
Thank you. |
I couldn't figure out why the user wasn't appearing in the search, but have manually assigned it via WP CLI, so there shouldn't be any issues with anything not being updated correctly. |
Thanks @pkevan for adding him. Prem Tiwari is working on 2 more issues. I will draft those posts soon. I just wanted to test if I can assign him for new posts. But unfortunately its not working. I will tell you when I create those posts, so you can assign him with cli again. |
Probably easier to have Prem create the posts, rather than have this as a work-around. |
That might be a good solution, but with a contributor role he can't create Tutorial posts. If we make him editor or author then he will able to create and publish posts himself. But we need to check his post quality before it goes live. Thus we can't assign a higher role at initial stage. I am a faculty in training team. Is this possible, can I assign him with cli? I have very few knowledge on it. If you can share any resource, it will be much appreciated. |
Prem has an |
CLI access is limited to those with sandbox across all of wp.org (of which there aren't many) so that wouldn't be possible. |
Ok, I will keep your advices in mind and inform you if any difficulties arises. |
I'm not sure this is 100% correct, I just logged in with a test user that is an Author, and it looks like I can hit publish, or at least, the Publish button is available to me. Give me a few minutes while I test the other roles. |
It looks like the @devmuhib009 I think we need to raise this with the training team faculty and see if we can determine a way around this while we look into the issue. Even if we just leave it assigned to someone else for now, and update it once it's fixed. |
@jonathanbossenger, Though publish button is available, contributors can't publish the post. When they click on publish button, nothing happens actually. I am not sure about author role. |
I got confused here - an author can publish their own posts. |
Ah, thanks @devmuhib009 I was not aware of that. That means if we make Prem a Contributor, that will solve the problem, no? Or can he still not create posts? |
@jonathanbossenger what I've observed, |
@devmuhib009 I just tested with a test user I have, with the contributor role, and that user was able to create a Tutorial post - https://learn.wordpress.org/wp-admin/post.php?post=83588&action=edit |
Ok, do you try to publish as well? If the publish option do not work for them, then we can tell them to create their posts themselves and we can publish as admin. |
@devmuhib009 I did not, because of what you had said
|
I found a solution. I said the contributor to draft the post himself and then I am helping him. This way I am working now. |
OK cool. @bsanevans I think this is probably the way we should move forward on this.
I've had a similar issue when I was trying to add members to the course cohort, sometimes the user search doesn't work 100% as expected. What I suggest we do is close this issue, and I'll open a new more focused ticket on the user search endpoint, with some example requests and their results. |
Thank you for all the testing folks did here 🙇♂️ @jonathanbossenger Team Reps got confirmation from the team last year to demote contributors who have been inactive for more than 6 months. We never acted on that, though. I'll bring it up with team reps to do a sweep once, as this may help with the issue raised here. Separately, sure. Let me update the handbook next week, directing contributors to create posts themselves. This should be just a temporary workaround until we have the translation plugin installed on Learn. |
Thanks @bsanevans Closing this out now, but feel free re-open it if it becomes a deeper problem. |
Just noting I've updated the handbook page below, explaining what to do when a contributor cannot be found in the author field. I opted to make this addition, rather than updating the process in multiple pages, as this entire process will change again once the translation management plugin is activated on the site. |
Type of feedback
Tutorial Custom Post Type Author Assignment Not Working.
Description
I've added a new user to learn WordPress website. When I try to assign him on Tutorial custom post type, I can't find him on author list. We already discussed this on #meta-learn channel. Here is the link.
Step-by-step reproduction instructions (optional)
Screenshots or screen recording (optional)
Other information (optional)
The text was updated successfully, but these errors were encountered: