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 media tracker #29

Merged
merged 62 commits into from
Dec 21, 2024
Merged
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
616d181
create media table
davidharting Nov 23, 2024
ba8fdb0
add media type table
davidharting Nov 23, 2024
e3b9bf4
create creator table
davidharting Nov 23, 2024
04950bb
pluralize and map
davidharting Nov 23, 2024
3e9d8a4
timestamps with time zone
davidharting Nov 24, 2024
ca86ff3
more fixes for pluralize
davidharting Nov 24, 2024
f9cf133
seed initial
davidharting Nov 24, 2024
ddabdd7
test media type model
davidharting Nov 24, 2024
384d94d
creator model
davidharting Nov 26, 2024
cb57902
create media model and relate to others
davidharting Nov 26, 2024
14bd57e
generate Creator filament panel
davidharting Nov 26, 2024
9338c6c
Media resource with filament
davidharting Nov 26, 2024
e8d113a
Attach creators to media in filament
davidharting Nov 26, 2024
51b4542
Just one creator per media
davidharting Nov 27, 2024
a3d5629
enhancements
davidharting Nov 27, 2024
3e2c98c
seeding books
davidharting Nov 27, 2024
7fe3d7f
Add db notifications and job batches
davidharting Nov 27, 2024
9e68e47
Vendor filament migrations for CSV importer
davidharting Nov 27, 2024
9915c09
working on importer
davidharting Nov 27, 2024
fed5a5c
better if
davidharting Nov 27, 2024
1c349f7
table output
davidharting Nov 27, 2024
744e63c
tests!
davidharting Nov 27, 2024
04cc313
delete tables needed for Filament CSV importer
davidharting Nov 27, 2024
9c56fc2
add media events
davidharting Nov 27, 2024
4e934ab
note todo
davidharting Nov 27, 2024
63a8d1a
media event policies
davidharting Nov 27, 2024
ccf1aa7
media event resource
davidharting Nov 27, 2024
a4e413c
relate events to media
davidharting Nov 27, 2024
e8d3e7a
naive seeding of events
davidharting Nov 27, 2024
8290584
should just make it specific to goodreads
davidharting Nov 29, 2024
4baa3ae
Merge branch 'main' of github.com:davidharting/davidharting.com into …
davidharting Nov 29, 2024
82e8e52
remove broken part
davidharting Nov 29, 2024
6edd3b1
commit export data
davidharting Nov 30, 2024
b33aae8
parse rows
davidharting Nov 30, 2024
d2ae587
testing row handling
davidharting Dec 1, 2024
3188260
report
davidharting Dec 2, 2024
f57ccb4
almost done
davidharting Dec 2, 2024
6e594ee
delete unused importer
davidharting Dec 2, 2024
03d8c10
logbook
davidharting Dec 2, 2024
8a3cfa0
better visual
davidharting Dec 2, 2024
57d2f3e
stub out import test
davidharting Dec 15, 2024
3e14586
Test inserting data
davidharting Dec 15, 2024
e2d959f
add support for video games
davidharting Dec 15, 2024
812e016
idempotency test
davidharting Dec 15, 2024
b0a8a32
seed with sofa data
davidharting Dec 17, 2024
32ef4c8
import sofa
davidharting Dec 17, 2024
ca0315f
actually associate
davidharting Dec 17, 2024
58e2d70
add icons for shows and games
davidharting Dec 17, 2024
f212869
note todo todo
davidharting Dec 17, 2024
cf5d1bd
backlog query
davidharting Dec 17, 2024
1a72b66
Implement backlog
davidharting Dec 18, 2024
78488df
more improvements
davidharting Dec 18, 2024
daf9815
update factories
davidharting Dec 18, 2024
7a52349
more handling
davidharting Dec 18, 2024
af2f8ce
fix some tests
davidharting Dec 18, 2024
582f63d
remove outdated test
davidharting Dec 18, 2024
72ff457
remove dd
davidharting Dec 18, 2024
10ea249
update importer test
davidharting Dec 18, 2024
d773979
view note if admin
davidharting Dec 21, 2024
b45d5fe
view backlog if admin
davidharting Dec 21, 2024
1dfd312
pint
davidharting Dec 21, 2024
a47799f
prettier
davidharting Dec 21, 2024
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
Prev Previous commit
Next Next commit
pluralize and map
davidharting committed Nov 23, 2024
commit 04950bb968d179de48fdf6759739931f00c2523c
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
*/
public function up(): void
{
Schema::create('media_type', function (Blueprint $table) {
Schema::create('media_types', function (Blueprint $table) {
$table->smallIncrements('id')->primary();
$table->timestamps();
$table->string('name', 255);
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
*/
public function up(): void
{
Schema::create('media', function (Blueprint $table) {
Schema::create('medias', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->unsignedSmallInteger('media_type_id');
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
*/
public function up(): void
{
Schema::create('creator', function (Blueprint $table) {
Schema::create('creators', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->string('name', 255);
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

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

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('creator_media', function (Blueprint $table) {
$table->id();
$table->foreignId('creator_id')->constrained();
$table->foreignId('media_id')->constrained();
$table->timestamps();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('creator_media');
}
};