You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixelfed/tests/Feature
Your Name 0d01d5a963 Fix duplicate-key violation when importing remote media attachments
Helpers::importNoteAttachment unconditionally inserted a new Media row per
attachment, so re-importing a remote status (an Announce racing another
inbox job, a re-fetch, or a duplicate url within one activity) hit the
media_status_id_media_path_unique constraint and crashed the queue job with
a 1062 UniqueConstraintViolationException, dropping the boost/import.

Make createMediaAttachment idempotent on (status_id, media_path): skip when
a row already exists, and catch the unique-constraint violation as a
lost-race no-op, returning null so the caller skips re-dispatching storage.

Adds regression tests (re-import no-op, distinct urls still stored,
concurrent-insert returns null).
4 weeks ago
..
Account Add admin:MediaMoveStorageCloudToCloud for cold S3->S3 migration 4 weeks ago
Api refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
Auth refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
AuthScope refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
Compose refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
CriticalRoutes fix: stop caching raw Eloquent models to prevent incomplete-object 500s 4 weeks ago
Federation Fix duplicate-key violation when importing remote media attachments 4 weeks ago
Framework refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
Security refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
Settings refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
ActivityPubDeliveryServiceTest.php refactor: extract shared ActivityPub pool delivery into ActivityPubDeliveryService 4 weeks ago
AdminRemoveCwTest.php refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
CommentPrivatePostTest.php refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
DeleteWorkerAuthorizationTest.php refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
HttpClientMigrationTest.php fix: resolve larastan class.notFound errors 4 weeks ago
LoginTest.php API improvements + test fixes (#5925) 1 year ago
ModelNamespaceMigrationTest.php test: verify morph map resolves legacy model namespaces 4 weeks ago
NotificationServiceTest.php refactor: extract duplicate patterns into shared methods 4 weeks ago
RemoteOidcTest.php refactor: move 52 legacy models from App\ to App\Models\ 4 weeks ago
ValidUsernameTest.php refactor: rename PixelfedUsername rule to ValidUsername 4 weeks ago