Skip to content

fix: backport upstream PR #359 fixes and infra hardening#1

Merged
baoduy merged 8 commits intomainfrom
baoduy/apply-pr-359-changes
Apr 30, 2026
Merged

fix: backport upstream PR #359 fixes and infra hardening#1
baoduy merged 8 commits intomainfrom
baoduy/apply-pr-359-changes

Conversation

@baoduy
Copy link
Copy Markdown
Owner

@baoduy baoduy commented Apr 30, 2026

Summary

8 fix commits on top of main (e104940), backporting upstream changes from AIDotNet/OpenDeepWiki PR AIDotNet#359 along with local infrastructure and admin UI fixes.

What changed

Backend (src/OpenDeepWiki)

  • AdminRepositoryService: cascade-delete all repository references and switch to soft delete; rename ClearRepositoryReferencesAsyncDeleteRepositoryDataAsync (fixes the incomplete rename that produced CS0103 in upstream PR fix: multiple bug fixes and enhancements AIDotNet/OpenDeepWiki#359).
  • SystemSettingDefaults: sync env-var changes into existing system settings on startup so config drift is reflected without manual reset.
  • RepositoryDocsService: URL-decode incoming paths, include directory entries in ZIP export, and drop the Failed-status short-circuit so partial exports succeed.
  • Program.cs: add /health endpoint for Docker Compose healthcheck.

Frontend (web)

  • Dockerfile: bump Node to 22 for chevrotain@12 compatibility.
  • Admin repository page: prevent directory parent nodes in the doc tree from navigating on click (toggle-only).
  • repo-shell / repo-sidebar: consolidate sidebar logic into repo-shell, decode base64-wrapped ZIP export payload, and fix directory node toggle behavior.

Why

  • Upstream PR fix: multiple bug fixes and enhancements AIDotNet/OpenDeepWiki#359 shipped with a broken rename (build error CS0103); this branch completes the rename so the solution builds.
  • The local fork needs healthcheck + Node 22 to run reliably under the project's Docker Compose setup.
  • Admin doc-tree UX bugs (parent navigation, broken ZIP export, stale env config) were blocking real workflows.

Test notes

  • dotnet build OpenDeepWiki.sln — passes (note: pre-existing TestDbContext gap with IContext.ApiKeys is unrelated to this branch).
  • cd web && npm run build — passes cleanly.
  • npm run lint — pre-existing warnings/errors unrelated to files modified here; PR-modified files contribute zero new lint errors.
  • Manual: verify /health responds 200, ZIP export of a repository extracts with directory structure intact, and admin repo doc tree expands directories without navigating.

Follow-ups

  • Address TestDbContext missing ApiKeys (separate branch).
  • Sweep remaining web lint warnings across the 53+ unrelated files (separate cleanup PR).

Silwings-git and others added 8 commits April 30, 2026 11:58
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…bility

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…eRepositoryDataAsync

Upstream PR AIDotNet#359 commit ef36dee renamed the call
sites in AdminRepositoryService from ClearRepositoryReferencesAsync to
DeleteRepositoryDataAsync but left the method definition with the old
name, causing a build error (CS0103). This commit completes the rename.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@baoduy baoduy merged commit d107a05 into main Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants