Skip to content

Automate Snapshot Creation and Scheduling #4744

@HarshitVerma109

Description

@HarshitVerma109

Community & Support: LinkedIn Group · Slack #project-nest

Active project leaders: Arkadii Yakovets -- GitHub · LinkedIn · Slack; Kate Golovanova -- GitHub · LinkedIn · Slack

Contributing · Code of Conduct · GSoC Mentors


Description

Snapshots are currently created manually through the Django admin panel. There is no automation someone has to fill in dates and trigger processing by hand. The goal is to automate the entire snapshot lifecycle so that a scheduled task creates the snapshot, calculates the correct date range, and triggers processing with safeguards against duplicate creation.

Management Command

  • Build owasp_create_snapshot command with automatic date range calculation
  • Generate snapshot key and title based on the current week/month
  • Add duplicate detection to prevent creating the same snapshot twice
  • Support both weekly and monthly frequency via --frequency flag

Makefile & Scheduling

  • Add Makefile target for local usage (make owasp-create-snapshot)
  • Configure production scheduling via ECS scheduled task (Monday 06:00 UTC)
  • Chain snapshot creation with processing in the scheduled task

Automation Flow

  • Full local automation: sync → create → process
  • Idempotent execution — safe to re-run without side effects

Testing

  • Unit tests for date range calculation, key generation, and duplicate detection
  • Tests for the management command covering success and edge cases

Are you going to work on implementing this?

  • Yes
  • No

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

Status

Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions