UNIT-003-B15-fix-01 - releaseNotice untuk sign off tanpa kode

Type BE
Size S
Tier 2
Origin UNIT-003-B15 (already merged)
Found in UNIT-003-B09
Finding type In-scope bug
Depends on UNIT-003-B09
Acceptance AC-BON-040, AC-BON-041, AC-BON-084
Status Done

Summary

Problem

Contract B6 menulis bahwa sign off tanpa kode yang ditahan menghasilkan NOT_RELEASED dengan offReasonType kosong dan offReasonText berisi teks sign off, dan notice tidak boleh null hanya karena kode kosong. B09 menyimpan keputusan itu sebagai release_decision = HELD_BY_EXCEPTION, decision_off_reason_type = NULL dan decision_off_reason_text berisi teks sign off. Kolom decision_off_reason_type punya CHECK tujuh kode dan menolak string kosong, jadi NULL satu-satunya bentuk yang sah. Di remora, response.NewReleaseNotice mengembalikan nil bila reasonType == nil, sehingga banner AC-BON-041 varian tanpa kode tidak pernah muncul. Reproduksi: NewReleaseNotice(ptr("HELD_BY_EXCEPTION"), nil, ptr("Jumpship"), "UNRELEASED") mengembalikan nil.

Correct behavior

Bila release_decision = HELD_BY_EXCEPTION, status UNRELEASED dan decision_off_reason_type NULL, notice bertipe NOT_RELEASED dengan offReasonType kosong dan offReasonText berisi decision_off_reason_text apa adanya (setelah trim). Bila teks juga kosong, offReasonText kosong dan notice tetap ada. Bila release_decision = AUTO_RELEASED, status RELEASED, kode NULL dan teks tidak kosong (saldo Accrued dirilis pada sign off tanpa kode), notice bertipe AUTO_RELEASED dengan offReasonType kosong dan teks tersebut. AUTO_RELEASED dengan kode NULL dan teks kosong, yang B09 simpan untuk Fixed bulanan, tetap null. Perilaku untuk kode yang ada tidak berubah. Kode tersimpan yang tidak dikenal tetap null.

New test

How to verify

Scope

Log

Date Event Reason Ref