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 URL validation REST endpoint and WP cron task #5228

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0366f69
Move scan context provider into shared components directory
johnwatkins0 Aug 12, 2020
b4bbfc4
Create ThemeScanRESTController class
johnwatkins0 Aug 12, 2020
b07900c
Create SiteScan task to be shared between BE components
johnwatkins0 Aug 12, 2020
018f9f2
Add new REST endpoints
johnwatkins0 Aug 13, 2020
e7a2404
Further decouple SiteScan from cli script
johnwatkins0 Aug 13, 2020
76b0de3
Move CLI script tests into SiteScanTest
johnwatkins0 Aug 13, 2020
596a519
Update covers docblock comments
johnwatkins0 Aug 13, 2020
b683e46
Merge remote-tracking branch 'origin/develop' into feature/4719-compa…
johnwatkins0 Aug 17, 2020
136b6f6
Break out validation URL provider into separate class
johnwatkins0 Aug 20, 2020
1c5dace
Make cron class extend CronBasedBackgroundTask
johnwatkins0 Aug 20, 2020
dd40647
Add offset support to cron class
johnwatkins0 Aug 21, 2020
45f4506
Add sleep to cron action. Linting
johnwatkins0 Aug 21, 2020
dd61108
Dont increment offset in cron action if process was locked
johnwatkins0 Aug 21, 2020
fd03395
Validation cron: use constant for limit per type and offset
johnwatkins0 Aug 21, 2020
bc50ae7
Tests for new classes
johnwatkins0 Aug 21, 2020
5beb5ae
Include properties in REST endpoint schema
johnwatkins0 Aug 23, 2020
4d6d782
Fix return type
johnwatkins0 Aug 23, 2020
0c581bd
Rename classes
johnwatkins0 Aug 23, 2020
8019612
PHPUnit test: adjust to data structure change
johnwatkins0 Aug 23, 2020
c562e3c
Update class order patch in unit test
johnwatkins0 Aug 23, 2020
8d3c76b
Add filter for the number of URLs to validate in the cron task
johnwatkins0 Aug 24, 2020
2599aeb
Add validation behavior flags and handle errors in REST controller
johnwatkins0 Aug 24, 2020
755fc20
Remove extra $ character
johnwatkins0 Aug 24, 2020
5548726
Simplify logic in validate URL REST endpoint
johnwatkins0 Aug 24, 2020
fc0a920
Flag check fix
johnwatkins0 Aug 24, 2020
576fd54
Add locked to URL validation rest response
johnwatkins0 Aug 24, 2020
cdb38e8
Merge remote-tracking branch 'origin/develop' into feature/4719-compa…
johnwatkins0 Aug 24, 2020
7fd6c3e
Remove unwanted space
johnwatkins0 Aug 24, 2020
b21a35f
Update old comments
johnwatkins0 Aug 24, 2020
62c17e5
Validation REST controller unit test fixes
johnwatkins0 Aug 24, 2020
2e23118
Fix equals sign alignment
johnwatkins0 Aug 24, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/src/onboarding-wizard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ import { OptionsContextProvider } from '../components/options-context-provider';
import { ReaderThemesContextProvider } from '../components/reader-themes-context-provider';
import { ErrorBoundary } from '../components/error-boundary';
import { ErrorContextProvider } from '../components/error-context-provider';
import { SiteScanContextProvider } from '../components/site-scan-context-provider';
import { PAGES } from './pages';
import { SetupWizard } from './setup-wizard';
import { NavigationContextProvider } from './components/navigation-context-provider';
import { UserContextProvider } from './components/user-context-provider';
import { SiteScanContextProvider } from './components/site-scan-context-provider';
import { TemplateModeOverrideContextProvider } from './components/template-mode-override-context-provider';

const { ajaxurl: wpAjaxUrl } = global;
Expand Down
2 changes: 1 addition & 1 deletion assets/src/onboarding-wizard/pages/template-mode/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useEffect, useContext } from '@wordpress/element';
* Internal dependencies
*/
import { Navigation } from '../../components/navigation-context-provider';
import { SiteScan } from '../../components/site-scan-context-provider';
import { SiteScan } from '../../../components/site-scan-context-provider';
import { ReaderThemes } from '../../../components/reader-themes-context-provider';
import { User } from '../../components/user-context-provider';
import { Options } from '../../../components/options-context-provider';
Expand Down
Loading