Skip to content

Commit

Permalink
ca: remove refid replacement (#2738)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmachughes authored Aug 20, 2024
1 parent 7326531 commit 34db0b2
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 213 deletions.

This file was deleted.

94 changes: 0 additions & 94 deletions sourcecode/apis/contentauthor/app/Jobs/ReplaceVideoRefId.php

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

declare(strict_types=1);

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class () extends Migration {
public function up(): void
{
Schema::dropIfExists('h5p_refid_support');
}

public function down(): void
{
Schema::create('h5p_refid_support', function (Blueprint $table) {
$table->bigIncrements('id');
$table->timestamps();
$table->integer('content_id');
$table->string('title');
$table->boolean('processed')->default(0);
$table->boolean('istarget')->default(0);
$table->unique(['content_id']);
});
}
};
5 changes: 0 additions & 5 deletions sourcecode/apis/contentauthor/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -440,11 +440,6 @@ parameters:
count: 2
path: app/Jobs/H5PFilesUpload.php

-
message: "#^Access to an undefined property object\\:\\:\\$path\\.$#"
count: 1
path: app/Jobs/ReplaceVideoRefId.php

-
message: "#^Method App\\\\Libraries\\\\DataObjects\\\\Attribution\\:\\:getOrigin\\(\\) should return null but returns string\\.$#"
count: 1
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@
<li>
<a href="{{ route('admin.support.versioning') }}">Versioning</a>
</li>
<li>
<a href="{{ route('admin.video.ndla.replaceref') }}">Replace ref with videoid</a>
</li>
</ul>
</li>
@if(app(\App\Libraries\H5P\Interfaces\H5PAdapterInterface::class)->getAdapterName() !== 'ndla')
Expand Down
7 changes: 0 additions & 7 deletions sourcecode/apis/contentauthor/routes/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use App\Http\Controllers\Admin\LibraryUpgradeController;
use App\Http\Controllers\Admin\LocksController;
use App\Http\Controllers\Admin\LtiAdminAccess;
use App\Http\Controllers\Admin\NDLAReplaceRefController;
use App\Http\Controllers\Admin\VersioningController;
use App\Http\Controllers\Auth\LoginController;
use Illuminate\Support\Facades\Route;
Expand Down Expand Up @@ -104,11 +103,5 @@ function () {
// Locks admin
Route::get("locks", [LocksController::class, 'index'])->name("admin.locks");
Route::delete("locks", [LocksController::class, 'destroy'])->name("admin.locks.delete");

// Refs
Route::get("video/ndla/replace", [NDLAReplaceRefController::class, 'index'])->name("admin.video.ndla.replaceref");
Route::get("video/ndla/doreplaceref", [NDLAReplaceRefController::class, 'doReplaceRef'])->name("admin.video.ndla.doreplaceref");
Route::get("video/ndla/populatetargets", [NDLAReplaceRefController::class, 'populateTable'])->name("admin.video.ndla.populatetargets");
Route::get("video/ndla/reindexrefs", [NDLAReplaceRefController::class, 'reindex'])->name("admin.video.ndla.reindexrefs");
}
);

0 comments on commit 34db0b2

Please sign in to comment.