Chore/ev5 0 cleanup tech debt - #67
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Melakukan cleanup dan perbaikan fondasi pada EV5-0, khususnya menghapus fitur revisi surat oleh warga yang sudah tidak menjadi bagian dari scope sistem serta memperbaiki konfigurasi
assigned_rolepadaletter_typesagar sesuai dengan TDD.Perubahan dibuat tetap terbatas pada scope EV5-0 dan tidak mencakup rewrite besar pada approval flow atau migration Category+Flow.
Jira Ticket
Ticket: EV5-0
Type of Change
Changes Made
Menghapus fitur revisi surat oleh warga:
WaitingRevisionWargadanRejectedRevisiondariLetterStatus.revision_countdan branchneeds_revisiondariKasiApprovalService.resubmit()dariApi\LetterController.Memperbaiki
AssignedRole:rwmenjadikasi_pelayanandankaur_tu_umum.letter_types.assigned_rolepada migration.LetterTypeSeederagar tidak lagi menggunakanrw.Menambahkan dan memperbaiki unit/feature test untuk memastikan perubahan enum dan penghapusan fitur revisi berjalan sesuai scope.
Tidak mengubah approval flow granular yang masih digunakan oleh sistem saat ini.
Tidak memperbaiki bug
assigned_role == 'rw'padaKasiApprovalService::getPendingLetters()karena perubahan tersebut merupakan scope EV5-4-S6.Tidak melakukan migration terpisah untuk menghapus
revision_count, karena tabellettersakan di-fresh-migrate pada EV5-2.How to Test
Install/update dependencies jika diperlukan:
Jalankan test yang terkait:
Jalankan seluruh test suite:
php artisan testUntuk memverifikasi migration dan seeder:
Pastikan proses
migrate:fresh --seedberhasil dan tidak ada lagi seedassigned_role = 'rw'.Screenshots (if applicable)
Tidak ada perubahan UI.
Checklist
console.log/dd()/dump()yang tertinggaldev(bukan langsung kemain)