Collection
SECTION 15A — QUARTERLY COLLECTION WORKFLOW
15A.1 What a Quarterly Collection Is
A Quarterly Collection is a single aggregated document covering one academic year quarter (3 months) of data. It aggregates all Compilation and Magazine documents within the quarter’s date range.15A.2 Trigger Mechanism
Automatic (Cron-Based)
- Google Cloud Scheduler triggers a backend job at the configured time (default: 6:00 PM IST, GMT +5:30). Trigger date is configurable by the Editor; default is 1 week after the quarter ends.
- For a January–December academic year:
- Q1 (Jan–Mar): triggers on April 7
- Q2 (Apr–Jun): triggers on July 7
- Q3 (Jul–Sep): triggers on October 7
- Q4 (Oct–Dec): triggers on January 7 of the next year
- Each Teacher’s academic year configuration is evaluated independently.
- Supports multilingual aggregation in parallel.
Manual (Editor On-Demand Override)
- Same on-demand creation capability as Compilation (see Section 14.2).
- Editor selects specific documents or defines a custom 3-month date range.
15A.3 Quarterly Collection Creation Pipeline
- Aggregation: Backend collects all approved Newsletters, Compilations, and Magazines within the quarter’s date range.
- Structure Assembly: Backend builds the Quarterly Collection document structure from aggregated data.
- Image Folder: A single image folder with sub-folders per news category:
IMG-Q\{n\}-AY\{YYYY\}/CATEGORY1/, etc. - Editor Review: Quarterly Collection document enters Editor’s queue.
- PDF Generation: WeasyPrint generates Quarterly Collection PDF using themed template.
- Proofreading Check: Editor completes verification.
- Drive Upload: Final PDF uploaded to:
YYYY/QUARTERLY/FINAL/Q\{n\}-COLLECTION-AY\{YYYY\}.pdf.