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

Add ability to Test feeds and perform manual pulls via AJAX with log response #15

Open
wants to merge 45 commits into
base: develop
Choose a base branch
from
Open

Add ability to Test feeds and perform manual pulls via AJAX with log response #15

wants to merge 45 commits into from

Conversation

sc0ttkclark
Copy link
Contributor

Loads log via AJAX on test and lets you do manual pulls and get instant logs back from AJAX response.

Includes refactor in AJAX and Pull classes that abstracts more things out for reusability and make it possible to test more cases.

tlovett1 and others added 30 commits January 14, 2015 09:45
…ck array of XML items

This abstracts the field mapping out of do_pull() which is super useful, but also mainly for testing purposes to be as accurate as possible
…hird party plugins

One more layer of abstraction, to make the world a better place for third party plugins to extend Feed Pull for their own mapping
Add ability to Test feeds and AJAX load the log when doing manual pull
Add support for user agent override in the request args for wp_remote_get
Check if $feed is strictly false to detect if feed was not parsed
@sc0ttkclark
Copy link
Contributor Author

Opening this PR up so it'll hook into the tests. I'm still working on improving the test output so it's more readable and friendly. Thinking about opening up a modal with the testing response.

@sc0ttkclark
Copy link
Contributor Author

Added the patch that fixes it so when you run manual pulls, it won't check if the automatic feed pull cron is enabled or not -- it just bypasses it and lets people run manual pulls as they wish.

@tlovett1
Copy link
Owner

tlovett1 commented Apr 6, 2015

@sc0ttkclark I think this is a really cool idea, but I'm not sure how I feel about merging the var_dump to sidebar thing into production.

@sc0ttkclark
Copy link
Contributor Author

Consider this a work in progress until I nail down the UI for seeing the test return data, I mentioned above I'm planning on displaying it a bit nicer :)

@tlovett1
Copy link
Owner

tlovett1 commented Apr 6, 2015

Sounds good!

@leepeterson
Copy link

@sc0ttkclark Cannot thank you enough for making these changes. The ability to preview field mappings saved me so much time.

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.

3 participants