Skip to content

Conversation

@FMBManuel
Copy link

No description provided.

myorkm added 3 commits July 28, 2025 20:40
feat(maintenance): add cron schedules, maintenance lock and /maintenance/sync API

- Introduce REMOVE_EXPIRED_DRAFTS_SCHEDULE and SYNC_GITBOOK_REQUIREMENTS_SCHEDULE env vars
- Wire up cron jobs to use the configured schedules and guard with a shared lock
- Implement acquireLock/releaseLock in shared/maintenanceLock.ts
- Add new Express route POST /maintenance/sync with GitHub-authenticated middleware
- Compose maintenance tasks (removeExpiredDrafts + syncGitBookBBRequirements) and proper success/error responses
- Add tests for maintenanceRoutes (unauthorized, happy path, concurrent lock)
- Update server.ts and config/index.ts accordingly
Added sync functionality with:
- Sync button in header for authenticated users
- API endpoint integration for GitBook BB requirements
- Loading animation and state management
- Translation support for sync button
@FMBManuel FMBManuel closed this Aug 11, 2025
@FMBManuel FMBManuel reopened this Aug 11, 2025
@FMBManuel FMBManuel changed the title Feature/tech 1131 Feature/TECH-1131 admin trigger shall be able to trigger the gitbook sync cronjob manually Aug 11, 2025
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