Skip to content
This repository was archived by the owner on Nov 1, 2026. It is now read-only.

fix(leave): query pending by status=New + resolve button page ids directly - #810

Merged
tieubao merged 1 commit into
mainfrom
fix/leave-query-status
Jul 22, 2026
Merged

tieubao merged 1 commit into
mainfrom
fix/leave-query-status

Conversation

@tieubao

@tieubao tieubao commented Jul 22, 2026

Copy link
Copy Markdown
Member

QueryPendingLeaveRequests used a select filter for 'Pending'; Status is a STATUS type and pending is 'New' (Notion 400'd it). Fix the filter + ExtractStatus + resolve button page-ids via GetLeaveRequest directly. Follows #809.

…ctly

QueryPendingLeaveRequests filtered Status as a select == "Pending", but the
Unavailability Notices Status is a STATUS-type property whose pending value
is "New" (Notion 400'd the mismatched filter). Fix the filter and read
Status via ExtractStatus (it was ExtractSelect, returning empty and
defeating the idempotency guard). Also resolve a button's page-id request
directly via GetLeaveRequest instead of scanning the pending list, so the
button flow does not depend on the list query.
@tieubao
tieubao merged commit f552f93 into main Jul 22, 2026
@tieubao
tieubao deleted the fix/leave-query-status branch July 22, 2026 05:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant