Skip to content

Conversation

@onelrian
Copy link
Owner

  • Add configurable assignment_interval_days to Settings struct (1-365 days, defaults to 14)
  • Create config/default.toml for centralized configuration
  • Update db::should_run() to accept configurable interval parameter
  • Replace hardcoded 14-day interval with configuration-driven approach
  • Add comprehensive config tests with serial execution (7 tests)
  • Add serial_test dev dependency to prevent env var test interference
  • Fix doctests in people_config.rs

Workflow optimization:

  • Remove inefficient daily cron trigger from GitHub Actions
  • Default to manual workflow_dispatch for better resource efficiency
  • Add APP__ASSIGNMENT_INTERVAL_DAYS environment variable support
  • Document scheduling strategies (manual, external scheduler, daily cron)

Documentation:

  • Update README.md with configuration guide and scheduling options
  • Add cross-reference in docs/PEOPLE_DATA.md
  • Document configuration precedence (env vars > files > defaults)

Test results: All 41 tests passing

  • 7 lib tests + 9 main tests + 7 config tests + 16 people_config tests + 2 doctests

Backward compatible: Existing setups continue using 14 days automatically.

- Add configurable assignment_interval_days to Settings struct (1-365 days, defaults to 14)
- Create config/default.toml for centralized configuration
- Update db::should_run() to accept configurable interval parameter
- Replace hardcoded 14-day interval with configuration-driven approach
- Add comprehensive config tests with serial execution (7 tests)
- Add serial_test dev dependency to prevent env var test interference
- Fix doctests in people_config.rs

Workflow optimization:
- Remove inefficient daily cron trigger from GitHub Actions
- Default to manual workflow_dispatch for better resource efficiency
- Add APP__ASSIGNMENT_INTERVAL_DAYS environment variable support
- Document scheduling strategies (manual, external scheduler, daily cron)

Documentation:
- Update README.md with configuration guide and scheduling options
- Add cross-reference in docs/PEOPLE_DATA.md
- Document configuration precedence (env vars > files > defaults)

Test results: All 41 tests passing
- 7 lib tests + 9 main tests + 7 config tests + 16 people_config tests + 2 doctests

Backward compatible: Existing setups continue using 14 days automatically.
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