-
Notifications
You must be signed in to change notification settings - Fork 159
Add categories to pull screen - 1 #1237
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
base: develop
Are you sure you want to change the base?
Conversation
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.
@kirtangajjar Thanks for the PR.
Targeted branch
I noticed the PR branch was targeting the trunk due to which the workflows like PHPCS did not trigger. I updated the target branch to be develop.
Testing
While testing I noticed the category link is broken because a '/' is missing:
Actual requirement
As per the requirement,
make the plugin very useful is if it was possible to view the category of the posts and select which categories to pull.
It seems like it says a user should be able to select categories but this PR only displays them. I'm not sure how do we achieve pulling posts via selected categories in the same UI. But is displaying them enough to should we worry about selection as well? cc @jeffpaul
E2E failing
Can you please check and fix the E2E failures? Try upgrading the wp-env version.
Suggestions
I have also added a few suggestions below, mostly related to formatting.
Co-authored-by: Faisal Alvi <faisalalvi33@gmail.com>
This should be fixed now.
That will happen in another PR. I'll ping that PR here when it's ready. |
Which version of wp-env works fine? |
|
@faisal-alvi I worked fixing tests for a while and I was able to fix many things, but it looks like it'll require more work. Work done so far: https://github.com/10up/distributor/pull/1237/files#diff-4c9c322e893113577fd895f8ac7bf59b02ac95aaae52b64177f24a996f706c22 Work remaining: Here we need to change
to
That command is coming from here - https://github.com/10up/cypress-wp-utils/blob/develop/src/commands/wp-cli.ts#L21. I think we should create a separate issue to fixing build pipeline given the work it's requiring so it can be completed in parallel to this PR. |
|
@faisal-alvi Related to #1237 (review) I have updated category links with its original site, and also removed unnecessary methods in the code. Would you mind reviewing it again? Thanks! |
…s HTML Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
|
Just adding a comment about todo: Need to dynamically add post table list columns based on the post-type and supported taxonomies. |
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.
@sanketio Thanks for the updates! Changes LGTM and everything tests well 👍
One quick clarification: I saw your note about the TODO (#1237 (comment)).
- Are you planning to address that within this PR, or will that be handled in a follow-up?
- If it’s meant as a reminder for future work (or for someone else working in this area), would it make sense to add it as an inline
// @todoin the relevant spot, so it’s not missed?
Otherwise, from my side this is good to go ✅
|
@faisal-alvi That is handled in part 2 - #1327 |
Allow taxonomy filter with remote site posts when pulling content

Description of the Change
Add categories to the pull screen. This is a part 1 of 2 of this issue. This PR only lists categories from posts.
Closes #428
How to test the Change
Changelog Entry
Credits
Props @kirtangajjar @sanketio
Checklist: