-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add 'Keep' option #21
Comments
|
I'll look forward to the PR. Same use-case that @jonbellah was pinging me about (a certain client project)? I'm guessing this probably won't be default behavior, but adding some well-placed filters to alter the query that collects eligible revision IDs would probably be a good starting point ;) |
|
It's done, just trying to get the unit tests working now. It's on my fork of the repo in a new branch if you want to take a look before the PR. |
|
Any ideas? Haven't modified any of the unit tests but it's failing: https://travis-ci.org/petenelson/revision-strike/jobs/135712895 |
|
@petenelson There were apparently some version-related issues affecting earlier builds of Revision Strike (that actually let everything pass). I've done some refactoring in the fix/travis-ci branch, which has been merged into develop (the new base branch, as of a couple of minutes ago). Please go ahead and merge develop into your local branch, at which point the tests should be passing (barring any errors resulting from code you've changed). Then, when you open your PR, please open it against the develop branch. Once merged, I'll get a new release out to unblock you and your team :) |
|
Haven't made any changes to unit tests, build is still failing: https://travis-ci.org/petenelson/revision-strike/builds/136721782 |
|
That's likely because there have been changes to the codebase that aren't being reflected in the codebase. The test suite for Revision Strike makes heavy use of WP_Mock to verify that, for example, I'd recommend ensuring that everything's working locally (via Also, as an aside, please make sure you're adding DocBlocks to your |
|
I pushed your develop branch up and it's failing https://travis-ci.org/petenelson/revision-strike/jobs/136728393 I don't have PHP 5.6 installed locally yet but will get my local VVV updated. |
|
It's failing due to a lack of the I just pushed a new version to the develop branch that wraps the test-reporter call in a conditional, so it will only execute on environments that have |
|
Working on getting unit tests installed. The readme says to run I have the develop branch tests working locally, but not the tests on the changes yet. Trying to figure that out, haven't worked with WP_Mock yet, so may have questions on that. |
|
|
Success! https://travis-ci.org/petenelson/revision-strike/builds/137527366 I'm also going to add an option to the tools/settings pages to configure the post types. The project this update is for has most of its revisions on pages, so we'll need the option to clean revisions for pages in the UI. |
|
Scratch that, will use the existing |
Already working on a PR for this, but it would be handy to be able to keep a minimum number of revisions for a post. In some instances, it's handy to be able to look at post that has passed the days back setting and still be able to see at least the past couple of revisions.
The text was updated successfully, but these errors were encountered: