Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ REDIS_DB="2"
REDIS_CACHE_DB="3"
REDIS_PREFIX=wbstack_api
ROUTES_LOAD_WEB=1
ROUTES_LOAD_SANDBOX=1
ROUTES_LOAD_BACKEND=1
MAIL_MAILER=mailgun
QUERY_SERVICE_HOST=wdqs:9999
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
The platform API comes in a few different flavours that can be toggled using environment variables:

- `ROUTES_LOAD_WEB` - web routes for the public facing wbstack.com usecase
- `ROUTES_LOAD_SANDBOX` - web routes for the public facing sandbox usecase
- `ROUTES_LOAD_BACKEND` - internal only API endpoints (non public) for all usecases

This single application could likely be split up at some point. Everything is currently together to make use of the shared wiki management code and query service management code.
Expand Down
6 changes: 0 additions & 6 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use App\Jobs\PruneEventPageUpdatesTable;
use App\Jobs\PruneQueryserviceBatchesTable;
use App\Jobs\RequeuePendingQsBatchesJob;
use App\Jobs\SandboxCleanupJob;
use App\Jobs\SendEmptyWikiNotificationsJob;
use App\Jobs\UpdateQueryserviceAllowList;
use App\Jobs\UpdateWikiDailyMetricJob;
Expand Down Expand Up @@ -40,11 +39,6 @@ protected function schedule(Schedule $schedule): void {
$schedule->job(new RequeuePendingQsBatchesJob())->everyFifteenMinutes()->withoutOverlapping();
$schedule->job(new FailStalledEntityImportsJob())->hourly();

// Sandbox
// TODO this should maybe only be run when sandbox as a whole is loaded?
// TODO instead of using LOAD ROUTES, we should just have different modes?
$schedule->job(new SandboxCleanupJob())->everyFifteenMinutes()->withoutOverlapping();

// Schedule site stat updates for each wiki and platform-summary
$schedule->command('schedule:stats')->dailyAt('7:00');

Expand Down
128 changes: 0 additions & 128 deletions app/Http/Controllers/Sandbox/SandboxController.php

This file was deleted.

36 changes: 0 additions & 36 deletions app/Http/Controllers/Sandbox/words

This file was deleted.

63 changes: 0 additions & 63 deletions app/Jobs/MediawikiSandboxLoadData.php

This file was deleted.

13 changes: 0 additions & 13 deletions app/Jobs/SandboxCleanupJob.php

This file was deleted.

8 changes: 0 additions & 8 deletions app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ public function map(): void {
if (getenv('ROUTES_LOAD_WEB') == 1) {
$this->mapApiRoutes();
}
if (getenv('ROUTES_LOAD_SANDBOX') == 1) {
$this->mapSandboxRoutes();
}
if (getenv('ROUTES_LOAD_BACKEND') == 1) {
$this->mapBackendRoutes();
}
Expand All @@ -51,11 +48,6 @@ protected function mapApiRoutes(): void {
->group(base_path('routes/api.php'));
}

protected function mapSandboxRoutes(): void {
Route::namespace($this->namespace)
->group(base_path('routes/sandbox.php'));
}

protected function mapBackendRoutes(): void {
Route::prefix('backend')
->namespace($this->namespace . '\Backend')
Expand Down
1 change: 0 additions & 1 deletion app/Rules/ForbiddenSubdomains.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@
'registration',
'resolver',
'rss',
'sandbox',
'search',
'secure',
'server',
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"google/recaptcha": "^1.2",
"guzzlehttp/guzzle": "^7.13",
"guzzlehttp/psr7": "^2.9",
"hackzilla/password-generator": "^1.6",
"intervention/image": "^2.5",
"laravel/framework": "^11.51",
"laravel/horizon": "^5.23",
Expand Down
47 changes: 1 addition & 46 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions routes/sandbox.php

This file was deleted.

Loading