補測試:人員異動只有該部門的部長看得到 #45

Open
walkdoggo.yeh wants to merge 1 commits from scope-changes-visibility-test into main
Owner

確認「部門人員異動」真的只有該部門的部長看得到。程式本來就是對的(changes 只掛在 full: true 的部門列上),但沒有測試鎖住,這個 PR 補上。

加了四個測試

  • 部長只拿得到自己部門的異動,別的部門整列都不會出現
  • 只看單一組別的組長,那列 full: false,連 changes 這個欄位都沒有
  • 部長同時兼別部門的組長時,那個組別一樣沒有異動資料
  • 全公司檢視和最高管理者看得到每個部門的

沒有改任何程式

只動 tests/scope-changes.test.mjs。

🤖 Generated with Claude Code

https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ

確認「部門人員異動」真的只有該部門的部長看得到。程式本來就是對的(`changes` 只掛在 `full: true` 的部門列上),但沒有測試鎖住,這個 PR 補上。 ## 加了四個測試 - 部長只拿得到自己部門的異動,別的部門整列都不會出現 - 只看單一組別的組長,那列 `full: false`,連 `changes` 這個欄位都沒有 - 部長同時兼別部門的組長時,那個組別一樣沒有異動資料 - 全公司檢視和最高管理者看得到每個部門的 ## 沒有改任何程式 只動 `tests/scope-changes.test.mjs`。 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
walkdoggo.yeh added 1 commit 2026-11-25 09:26:32 +00:00
鎖住人員異動的可見範圍:只有該部門部長看得到
CI / build (pull_request) Successful in 31s
CI / build (push) Successful in 32s
488fd018e5
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
All checks were successful
CI / build (push) Successful in 32s
CI / build (pull_request) Successful in 31s
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin scope-changes-visibility-test:scope-changes-visibility-test
git checkout scope-changes-visibility-test
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: walkdoggo.yeh/leadboard#45