Skip to content

fix(api): restore Service API document writes and expose logical deletion - #45016

Closed
hyoban wants to merge 1 commit into
hotfix/1.18.0-fix.2from
hotfix/1.18.0-fix.2-pick-44972
Closed

hyoban wants to merge 1 commit into
hotfix/1.18.0-fix.2from
hotfix/1.18.0-fix.2-pick-44972

Conversation

@hyoban

@hyoban hyoban commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Cherry-picks two Service API changes from main into hotfix/1.18.0-fix.2, in the same order as on main, created with git cherry-pick -x:

  1. e40200d (fix(api): restore Service API file document writes #44972) fix(api): restore Service API file document writes: applied cleanly.
  2. 4bd3120 (feat(api): expose logical document deletion through Service API #44970) feat(api): expose logical document deletion through Service API

Conflict resolution for #44970: packages/contracts/generated/api/service/errors.gen.ts does not exist on the hotfix branch, so it was dropped. I then ran gen-api-contract on the hotfix branch and confirmed that the regenerated contracts exactly match the picked orpc.gen.ts / types.gen.ts / zod.gen.ts, with no errors.gen.ts for service. Git matched the main test test_resources.py to the hotfix test file test_knowledge_fs_service_contracts.py as a rename, so the new test case was added there.

Please keep the two commits separate when merging (rebase or merge commit) so each one keeps its cherry-pick provenance.

Verification:

  • pytest tests/unit_tests/controllers/service_api/dataset/test_document.py tests/unit_tests/controllers/test_knowledge_fs_service_contracts.py: 147 passed
  • knowledge-fs-logical-document-delete-contract.smoke.test.ts: 2 passed
  • ruff check / ruff format --check on changed files: clean
  • .github/scripts/check-hotfix-cherry-picks.sh run locally: 2 commits, provenance verified

Supersedes #45017.

@hyoban
hyoban requested a review from JohnJyong as a code owner October 29, 2026 02:32
@github-actions github-actions Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Oct 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 78.32% 78.32% -0.00%
Strict coverage 78.02% 78.02% -0.00%
Typed symbols 73,817 73,818 +1
Untyped symbols 20,512 20,514 +2
Modules 4210 4210 0

@hyoban hyoban changed the title fix(api): restore Service API file document writes (#44972) fix(api): restore Service API document writes and expose logical deletion Oct 29, 2026
@hyoban

hyoban commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

Superseded by #45019 (head branches under hotfix/** cannot be updated after creation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants