-
Notifications
You must be signed in to change notification settings - Fork 6
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
embl taxonomy plugin sync fixes #1287
Conversation
Thanks @dbushell Also on other note, if you remember we built the microsite dyanamically whenever there is new website or if we need to update latest version. We have deployment scripts where we use wpcli commands to do all those changes required for deployment.
|
Hi @sandykadam yes I will add some kind of UI update to show a progress number The
This one wont work anymore. Do you know if the bash script was timing out? Or was the timeout just syncing from the WP admin? If the bash script synced without any timeouts I can add this back quickly so it continues to work the same. Otherwise we'd have to write a new script to perform multi requests. I need to update the plugin first to allow that. |
Actually it would be easier if I wrote a PHP script to handle the multiple sync requests, then the bash part can remain a single but if it was never timing out here I can revert to the old method quickly |
Yes this is working fine no issues |
@sandykadam Just to clarify, I mean before this PR, was the old version syncing without timeout? with this PR the sync will silently fail at the moment (I think) it won't complete the whole sync anyway |
Yes from CLI it was working, it was only the admin UI was timing out, which I think will get fix with your batch process. |
Hey @david, I noticed that for the pages we have two fields for taxonomy. One at the bottom and one on the sidebar: For pages, I think the bottom one is used to overwrite default breadcrumbs, right @sandeep? For the posts, currently there is only the one on the sidebar. We use this field to tag articles with relevant terms. Would you be able to improve it in the same way as the one on pages and move it to the bottom? |
@kasprzyk-sz I'm not sure that sidebar panel should be there. It certainly shouldn't say "ADD NEW..." because it's not possible to add new. Can you remember if this was always visible? |
@dbushell yes, it was always there. We use this one though only for tagging posts on the news theme. I think @sandykadam meant actually this picker. |
@sandykadam it should look like this and be filtered by Who/What/Where: If it's not updating can you check this page:
and if "EMBL Taxonomy Terms" is listed under the default "All" view then hover over it and click "Trash" it should then load properly from the JSON config file. Those settings don't need to be sync to the database, only when editing them. |
@kasprzyk-sz ah that one I haven't changed. It's just the default tag picker. There's no way to improve that. It would be possible to make an alternate UI using ACF to manage tags, but it'd take a while to develop and test. |
This should stop the timeout issue #520