From 08c694d3375984fb2b47f5537348d52ba4e692d2 Mon Sep 17 00:00:00 2001 From: Jeremy Postlethwaite Date: Tue, 30 Apr 2024 11:10:33 -0700 Subject: [PATCH] GH-14 --- ...02_100001_create_matrix_releases_table.php | 5 +++ ...02_100001_create_matrix_roadmaps_table.php | 1 - ..._02_100001_create_matrix_sources_table.php | 2 +- ..._02_100001_create_matrix_sprints_table.php | 2 +- ..._02_100001_create_matrix_tickets_table.php | 2 +- ...02_100001_create_matrix_versions_table.php | 2 +- src/Http/Requests/Note/ShowRequest.php | 1 - src/Http/Requests/Project/ShowRequest.php | 1 - src/Http/Requests/Release/ShowRequest.php | 1 - src/Http/Requests/Roadmap/ShowRequest.php | 1 - src/Http/Requests/Source/ShowRequest.php | 1 - src/Http/Requests/Sprint/ShowRequest.php | 1 - src/Http/Requests/Tag/ShowRequest.php | 1 - src/Http/Requests/Team/ShowRequest.php | 1 - src/Http/Requests/Ticket/ShowRequest.php | 1 - src/Http/Requests/Version/ShowRequest.php | 1 - .../Http/Controllers/ReleaseTestCase.php | 2 +- .../Http/Controllers/RoadmapTestCase.php | 7 +-- .../Http/Controllers/SourceTestCase.php | 17 +------ .../Feature/Http/Controllers/TagTestCase.php | 45 +------------------ .../Feature/Http/Controllers/TeamTestCase.php | 11 +---- .../Http/Controllers/TicketTestCase.php | 9 ++++ .../Http/Controllers/VersionTestCase.php | 14 +----- 23 files changed, 25 insertions(+), 104 deletions(-) diff --git a/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_releases_table.php b/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_releases_table.php index c47197d..12bc7ec 100644 --- a/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_releases_table.php +++ b/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_releases_table.php @@ -62,9 +62,11 @@ public function up(): void $table->dateTime('canceled_at')->nullable(); $table->dateTime('closed_at')->nullable()->index(); $table->dateTime('embargo_at')->nullable(); + $table->dateTime('fixed_at')->nullable(); $table->dateTime('postponed_at')->nullable(); $table->dateTime('published_at')->nullable(); $table->dateTime('released_at')->nullable(); + $table->dateTime('resolved_at')->nullable(); $table->dateTime('resumed_at')->nullable(); $table->dateTime('suspended_at')->nullable(); @@ -106,6 +108,7 @@ public function up(): void $table->boolean('closed')->default(0); $table->boolean('completed')->default(0); $table->boolean('cron')->default(0)->index(); + $table->boolean('fixed')->default(0); $table->boolean('flagged')->default(0); $table->boolean('internal')->default(0); $table->boolean('locked')->default(0); @@ -114,6 +117,8 @@ public function up(): void $table->boolean('problem')->default(0); $table->boolean('published')->default(0); $table->boolean('released')->default(0); + $table->boolean('retired')->default(0); + $table->boolean('resolved')->default(0); $table->boolean('suspended')->default(0); $table->boolean('unknown')->default(0); diff --git a/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_roadmaps_table.php b/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_roadmaps_table.php index 62f479a..f4aedb3 100644 --- a/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_roadmaps_table.php +++ b/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_roadmaps_table.php @@ -114,7 +114,6 @@ public function up(): void $table->boolean('problem')->default(0); $table->boolean('published')->default(0); $table->boolean('released')->default(0); - $table->boolean('resolved')->default(0); $table->boolean('suspended')->default(0); $table->boolean('unknown')->default(0); diff --git a/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_sources_table.php b/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_sources_table.php index f9a54ce..c2282d0 100644 --- a/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_sources_table.php +++ b/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_sources_table.php @@ -106,8 +106,8 @@ public function up(): void $table->boolean('problem')->default(0); $table->boolean('published')->default(0); $table->boolean('released')->default(0); - $table->boolean('retired')->default(0); $table->boolean('resolved')->default(0); + $table->boolean('retired')->default(0); $table->boolean('suspended')->default(0); $table->boolean('unknown')->default(0); diff --git a/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_sprints_table.php b/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_sprints_table.php index 3936cc0..e365d22 100644 --- a/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_sprints_table.php +++ b/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_sprints_table.php @@ -118,8 +118,8 @@ public function up(): void $table->boolean('problem')->default(0); $table->boolean('published')->default(0); $table->boolean('released')->default(0); - $table->boolean('retired')->default(0); $table->boolean('resolved')->default(0); + $table->boolean('retired')->default(0); $table->boolean('suspended')->default(0); $table->boolean('unknown')->default(0); diff --git a/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_tickets_table.php b/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_tickets_table.php index 5352dfd..041301e 100644 --- a/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_tickets_table.php +++ b/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_tickets_table.php @@ -124,8 +124,8 @@ public function up(): void $table->boolean('problem')->default(0); $table->boolean('published')->default(0); $table->boolean('released')->default(0); - $table->boolean('retired')->default(0); $table->boolean('resolved')->default(0); + $table->boolean('retired')->default(0); $table->boolean('special')->default(0); $table->boolean('suspended')->default(0); $table->boolean('unknown')->default(0); diff --git a/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_versions_table.php b/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_versions_table.php index a4637b7..502b576 100644 --- a/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_versions_table.php +++ b/database/migrations-matrix-uuid/2020_01_02_100001_create_matrix_versions_table.php @@ -108,8 +108,8 @@ public function up(): void $table->boolean('problem')->default(0); $table->boolean('published')->default(0); $table->boolean('released')->default(0); - $table->boolean('retired')->default(0); $table->boolean('resolved')->default(0); + $table->boolean('retired')->default(0); $table->boolean('suspended')->default(0); $table->boolean('unknown')->default(0); diff --git a/src/Http/Requests/Note/ShowRequest.php b/src/Http/Requests/Note/ShowRequest.php index 0e50457..c9576a9 100644 --- a/src/Http/Requests/Note/ShowRequest.php +++ b/src/Http/Requests/Note/ShowRequest.php @@ -13,5 +13,4 @@ */ class ShowRequest extends FormRequest { - } diff --git a/src/Http/Requests/Project/ShowRequest.php b/src/Http/Requests/Project/ShowRequest.php index 166c599..8ece6d7 100644 --- a/src/Http/Requests/Project/ShowRequest.php +++ b/src/Http/Requests/Project/ShowRequest.php @@ -13,5 +13,4 @@ */ class ShowRequest extends FormRequest { - } diff --git a/src/Http/Requests/Release/ShowRequest.php b/src/Http/Requests/Release/ShowRequest.php index 2cf6a25..9fcc879 100644 --- a/src/Http/Requests/Release/ShowRequest.php +++ b/src/Http/Requests/Release/ShowRequest.php @@ -13,5 +13,4 @@ */ class ShowRequest extends FormRequest { - } diff --git a/src/Http/Requests/Roadmap/ShowRequest.php b/src/Http/Requests/Roadmap/ShowRequest.php index ef4022c..aa4f4e7 100644 --- a/src/Http/Requests/Roadmap/ShowRequest.php +++ b/src/Http/Requests/Roadmap/ShowRequest.php @@ -13,5 +13,4 @@ */ class ShowRequest extends FormRequest { - } diff --git a/src/Http/Requests/Source/ShowRequest.php b/src/Http/Requests/Source/ShowRequest.php index 5fd48d7..9fbcf86 100644 --- a/src/Http/Requests/Source/ShowRequest.php +++ b/src/Http/Requests/Source/ShowRequest.php @@ -13,5 +13,4 @@ */ class ShowRequest extends FormRequest { - } diff --git a/src/Http/Requests/Sprint/ShowRequest.php b/src/Http/Requests/Sprint/ShowRequest.php index 005cca8..ea4fb38 100644 --- a/src/Http/Requests/Sprint/ShowRequest.php +++ b/src/Http/Requests/Sprint/ShowRequest.php @@ -13,5 +13,4 @@ */ class ShowRequest extends FormRequest { - } diff --git a/src/Http/Requests/Tag/ShowRequest.php b/src/Http/Requests/Tag/ShowRequest.php index cc77a9e..ff1aa3f 100644 --- a/src/Http/Requests/Tag/ShowRequest.php +++ b/src/Http/Requests/Tag/ShowRequest.php @@ -13,5 +13,4 @@ */ class ShowRequest extends FormRequest { - } diff --git a/src/Http/Requests/Team/ShowRequest.php b/src/Http/Requests/Team/ShowRequest.php index 52d8b06..ca3d74f 100644 --- a/src/Http/Requests/Team/ShowRequest.php +++ b/src/Http/Requests/Team/ShowRequest.php @@ -13,5 +13,4 @@ */ class ShowRequest extends FormRequest { - } diff --git a/src/Http/Requests/Ticket/ShowRequest.php b/src/Http/Requests/Ticket/ShowRequest.php index a2dbeba..551a601 100644 --- a/src/Http/Requests/Ticket/ShowRequest.php +++ b/src/Http/Requests/Ticket/ShowRequest.php @@ -13,5 +13,4 @@ */ class ShowRequest extends FormRequest { - } diff --git a/src/Http/Requests/Version/ShowRequest.php b/src/Http/Requests/Version/ShowRequest.php index 1a37b94..b3d1ba6 100644 --- a/src/Http/Requests/Version/ShowRequest.php +++ b/src/Http/Requests/Version/ShowRequest.php @@ -13,5 +13,4 @@ */ class ShowRequest extends FormRequest { - } diff --git a/tests/Feature/Http/Controllers/ReleaseTestCase.php b/tests/Feature/Http/Controllers/ReleaseTestCase.php index 31eee1c..f0cdc59 100644 --- a/tests/Feature/Http/Controllers/ReleaseTestCase.php +++ b/tests/Feature/Http/Controllers/ReleaseTestCase.php @@ -88,7 +88,7 @@ class ReleaseTestCase extends TestCase 'canceled', 'closed', 'completed', - 'duplicate', + 'cron', 'fixed', 'flagged', 'internal', diff --git a/tests/Feature/Http/Controllers/RoadmapTestCase.php b/tests/Feature/Http/Controllers/RoadmapTestCase.php index 7a69890..42d8b83 100644 --- a/tests/Feature/Http/Controllers/RoadmapTestCase.php +++ b/tests/Feature/Http/Controllers/RoadmapTestCase.php @@ -66,12 +66,10 @@ class RoadmapTestCase extends TestCase 'canceled_at', 'closed_at', 'embargo_at', - 'fixed_at', 'postponed_at', 'published_at', 'released_at', 'resumed_at', - 'resolved_at', 'suspended_at', 'gids', 'po', @@ -88,8 +86,7 @@ class RoadmapTestCase extends TestCase 'canceled', 'closed', 'completed', - 'duplicate', - 'fixed', + 'cron', 'flagged', 'internal', 'locked', @@ -98,8 +95,6 @@ class RoadmapTestCase extends TestCase 'problem', 'published', 'released', - 'retired', - 'resolved', 'suspended', 'unknown', 'label', diff --git a/tests/Feature/Http/Controllers/SourceTestCase.php b/tests/Feature/Http/Controllers/SourceTestCase.php index 4a55b42..3d0ecea 100644 --- a/tests/Feature/Http/Controllers/SourceTestCase.php +++ b/tests/Feature/Http/Controllers/SourceTestCase.php @@ -42,20 +42,9 @@ class SourceTestCase extends TestCase 'owned_by_id', 'parent_id', 'source_type', - 'backlog_id', - 'board_id', - 'epic_id', - 'flow_id', - 'milestone_id', - 'note_id', - 'project_id', - 'release_id', - 'roadmap_id', - 'sprint_id', + 'matrix_id', 'tag_id', 'team_id', - 'ticket_id', - 'version_id', 'created_at', 'deleted_at', 'updated_at', @@ -116,12 +105,8 @@ class SourceTestCase extends TestCase 'avatar', 'ui', 'assets', - 'backlog', - 'board', - 'flow', 'meta', 'options', - 'roadmap', 'sources', ]; } diff --git a/tests/Feature/Http/Controllers/TagTestCase.php b/tests/Feature/Http/Controllers/TagTestCase.php index 7206d03..ca85abd 100644 --- a/tests/Feature/Http/Controllers/TagTestCase.php +++ b/tests/Feature/Http/Controllers/TagTestCase.php @@ -42,37 +42,10 @@ class TagTestCase extends TestCase 'owned_by_id', 'parent_id', 'tag_type', - 'backlog_id', - 'board_id', - 'epic_id', - 'flow_id', - 'milestone_id', - 'note_id', - 'project_id', - 'release_id', - 'roadmap_id', - 'source_id', - 'sprint_id', - 'team_id', - 'ticket_id', - 'version_id', + 'matrix_id', 'created_at', 'deleted_at', 'updated_at', - 'start_at', - 'planned_start_at', - 'end_at', - 'planned_end_at', - 'canceled_at', - 'closed_at', - 'embargo_at', - 'fixed_at', - 'postponed_at', - 'published_at', - 'released_at', - 'resumed_at', - 'resolved_at', - 'suspended_at', 'gids', 'po', 'pg', @@ -85,22 +58,10 @@ class TagTestCase extends TestCase 'rank', 'size', 'active', - 'canceled', - 'closed', - 'completed', - 'duplicate', - 'fixed', 'flagged', 'internal', 'locked', - 'pending', - 'planned', - 'problem', - 'published', - 'released', 'retired', - 'resolved', - 'suspended', 'unknown', 'label', 'title', @@ -116,12 +77,8 @@ class TagTestCase extends TestCase 'avatar', 'ui', 'assets', - 'backlog', - 'board', - 'flow', 'meta', 'options', - 'roadmap', 'sources', ]; } diff --git a/tests/Feature/Http/Controllers/TeamTestCase.php b/tests/Feature/Http/Controllers/TeamTestCase.php index 8b2552e..962dc62 100644 --- a/tests/Feature/Http/Controllers/TeamTestCase.php +++ b/tests/Feature/Http/Controllers/TeamTestCase.php @@ -46,6 +46,7 @@ class TeamTestCase extends TestCase 'board_id', 'epic_id', 'flow_id', + 'matrix_id', 'milestone_id', 'note_id', 'project_id', @@ -66,12 +67,8 @@ class TeamTestCase extends TestCase 'canceled_at', 'closed_at', 'embargo_at', - 'fixed_at', 'postponed_at', - 'published_at', - 'released_at', 'resumed_at', - 'resolved_at', 'suspended_at', 'gids', 'po', @@ -88,18 +85,14 @@ class TeamTestCase extends TestCase 'canceled', 'closed', 'completed', - 'duplicate', - 'fixed', + 'cron', 'flagged', 'internal', 'locked', 'pending', 'planned', 'problem', - 'published', - 'released', 'retired', - 'resolved', 'suspended', 'unknown', 'label', diff --git a/tests/Feature/Http/Controllers/TicketTestCase.php b/tests/Feature/Http/Controllers/TicketTestCase.php index e264ae4..bfa33c3 100644 --- a/tests/Feature/Http/Controllers/TicketTestCase.php +++ b/tests/Feature/Http/Controllers/TicketTestCase.php @@ -42,20 +42,26 @@ class TicketTestCase extends TestCase 'owned_by_id', 'parent_id', 'ticket_type', + 'duplicate_id', 'backlog_id', 'board_id', + 'completed_by_id', 'epic_id', + 'fixed_by_id', 'flow_id', + 'matrix_id', 'milestone_id', 'note_id', 'project_id', 'release_id', + 'reported_by_id', 'roadmap_id', 'source_id', 'sprint_id', 'tag_id', 'team_id', 'version_id', + 'version_fixed_id', 'created_at', 'deleted_at', 'updated_at', @@ -88,6 +94,7 @@ class TicketTestCase extends TestCase 'canceled', 'closed', 'completed', + 'cron', 'duplicate', 'fixed', 'flagged', @@ -95,6 +102,7 @@ class TicketTestCase extends TestCase 'locked', 'pending', 'planned', + 'prioritized', 'problem', 'published', 'released', @@ -119,6 +127,7 @@ class TicketTestCase extends TestCase 'backlog', 'board', 'flow', + 'history', 'meta', 'options', 'roadmap', diff --git a/tests/Feature/Http/Controllers/VersionTestCase.php b/tests/Feature/Http/Controllers/VersionTestCase.php index 2cbf0a9..43549ee 100644 --- a/tests/Feature/Http/Controllers/VersionTestCase.php +++ b/tests/Feature/Http/Controllers/VersionTestCase.php @@ -42,17 +42,10 @@ class VersionTestCase extends TestCase 'owned_by_id', 'parent_id', 'version_type', - 'backlog_id', - 'board_id', - 'epic_id', - 'flow_id', - 'milestone_id', - 'note_id', + 'matrix_id', 'project_id', - 'release_id', 'roadmap_id', 'source_id', - 'sprint_id', 'tag_id', 'team_id', 'ticket_id', @@ -88,7 +81,6 @@ class VersionTestCase extends TestCase 'canceled', 'closed', 'completed', - 'duplicate', 'fixed', 'flagged', 'internal', @@ -116,12 +108,8 @@ class VersionTestCase extends TestCase 'avatar', 'ui', 'assets', - 'backlog', - 'board', - 'flow', 'meta', 'options', - 'roadmap', 'sources', ]; }