Skip to content
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

358 fix/delete posts by post status #395

Merged
merged 42 commits into from
Aug 17, 2018

Conversation

rajanvijayan
Copy link
Contributor

@rajanvijayan rajanvijayan commented Jul 12, 2018

Blocked by #332

rajanvijayan and others added 30 commits May 30, 2018 07:18
Change if to switch
Add Module for delete term by count
Fix #178
…tfix-prefix' into 178-feature/delete-terms--by-postfix-prefix
Update functions names

Fix #178
@rajanvijayan
Copy link
Contributor Author

Development is done, Ready to review

@rajanvijayan rajanvijayan assigned sudar and unassigned rajanvijayan Jul 31, 2018
Repository owner deleted a comment Aug 12, 2018
'days' => '5',
);

$posts_deleted = $this->module->delete( $delete_options );
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assert that some additional posts that don't match the condition are not deleted.

Do this for all the other test cases as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@sudar sudar assigned rajanvijayan and unassigned sudar Aug 12, 2018
@sudar
Copy link
Owner

sudar commented Aug 12, 2018

@rajanit2000

Make sure you are adding some asserts to check that posts that don't satisfy the condition are not getting deleted.

Also pull the latest code from github.

Repository owner deleted a comment Aug 12, 2018
@rajanvijayan
Copy link
Contributor Author

@sudar its ready to review

Repository owner deleted a comment Aug 13, 2018
@rajanvijayan rajanvijayan assigned sudar and unassigned rajanvijayan Aug 13, 2018
'post_status' => 'pending',
)
);

$delete_options = array(
'post_status' => array( 'publish', 'draft' ),
'limit_to' => -1,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check limit_to value

@rajanvijayan rajanvijayan assigned rajanvijayan and unassigned sudar Aug 14, 2018
@rajanvijayan rajanvijayan assigned sudar and unassigned rajanvijayan Aug 15, 2018
Repository owner deleted a comment Aug 15, 2018
@sudar sudar merged commit 9b492c8 into dev/6.0.0 Aug 17, 2018
@sudar sudar deleted the 358-fix/delete-posts-by-post-status branch August 17, 2018 07:44
@ghost ghost removed the In Progress Workflow Label: Current in progress label Aug 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants