-
Notifications
You must be signed in to change notification settings - Fork 5
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
Import app branch #243
base: master
Are you sure you want to change the base?
Import app branch #243
Conversation
Thanks, Shahid! I did a test import and got this error...
I believe that is because For your questions...
Brent can get that going when this is a little closer to release.
All of the main app components get passed the @brentjett can you still get history from |
Hi @fastlinemedia , Thank you for the test. I checked and updated the string variable into array one. the funny part is my PHP server did not give the error at all :D I also add the history object and pushed to a list of posts after import complete. I pushed code so you will check it out for the further test. |
Thanks, @shahidajmeri786! It looks like it's working. Only issue I noticed is that it's only importing one post. I exported two pages using the WordPress exporter but only one imports when using the Assistant importer. Can you check that out? |
Hi @fastlinemedia , Thanks for testing. Multiple import issue fixed. code pushed. can you please check again? |
@shahidajmeri786 I did some testing and ran into a few things. I also merged with master so be sure to npm install!
One question: does the import app handle importing attachments? |
Fixed attachment import Fixed error redirected to post list Break import logic into separate controller.
One question: does the import app handle importing attachments? |
Thanks, @shahidajmeri786! However, I'm getting an error when trying to import this file... https://share.getcloudapp.com/04uP4KW4 There's nothing in the PHP error log, but the console is showing this...
Can you check that out? Also be sure to pull, I merged in master. |
Hi @fastlinemedia , I tested and checked the import is working fine. check here: https://www.screencast.com/t/ahSFrLxL there is an import message fix. added post type in the message so user know what successfully imported and what failed. Can you please tell me your WordPress version which you tested? |
Thanks, @shahidajmeri786! I just pulled and it seems to be working now. Looks like it's coming together! I have some code review notes I'll leave on the PR. Also, I'm seeing a few notices in the PHP error log now. Can you look into those?
|
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.
Hey @shahidajmeri786 let me know if you have any questions about this review.
return rest_ensure_response( | ||
[ | ||
'error' => true, | ||
'message' => 'Sorry, only XML files are allowed.', |
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.
Can you use WordPress translation functions (e.g __
or sprintf
) anywhere there is human readable text? We need to be sure to always do that on the front or backend. There are a number of places that need it in this file.
|
||
} else { | ||
$fail_imp_count++; | ||
return rest_ensure_response( |
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.
Do we really want to cancel the entire import if an attachment fails? It might be better to fail silently for attachments and let the import proceed.
Resolved some php warnings Cleanup codelines which are unused Removed Upload ok as not needed anymore Added WP translate for alert text messages Added Dynamic wp allowed file size Fixed post import failed due to terms and metas
Worked on feedbacks: |
Added import app.
Suggestion:
Please check for quick view: https://www.screencast.com/t/oMIo0lrtN