-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Summary
We need documentation and tooling to safely update the canonical Google Sheets inventory with enhanced metadata generated by our automation scripts, without losing any formatting, colors, or conditional formatting.
Context
We have several automation scripts that generate enhanced metadata:
scripts/scrape-metadata.js- Scrapes author, license, dates from lesson URLsscripts/standardize-languages.js- Standardizes language codes (IETF)scripts/estimate-time-required.js- Estimates lesson duration (ISO 8601)scripts/generate-slugs.js- Creates URL-safe identifiersscripts/merge-enhanced-metadata.js- Merges all enhanced data into single CSV
The challenge: How do we update the canonical Google Sheets with this enhanced data without losing:
- Cell formatting and colors
- Conditional formatting rules
- Data validation
- Comments and notes
- Formulas in other columns
Solution Created
Two files have been added to address this:
-
scripts/google-apps-script-updater.gs - Google Apps Script that provides a one-click column updater
- Matches rows by lesson name
- Updates only specified enhanced columns
- Preserves ALL formatting
- Shows update summary
-
scripts/UPDATING_GOOGLE_SHEETS.md - Comprehensive documentation with:
- Method 1: Google Apps Script (recommended)
- Method 2: Manual VLOOKUP approach
- Step-by-step instructions
- Troubleshooting guide
- Data format explanations
Tasks
- Review the documentation for clarity and completeness
- Test the Google Apps Script updater with the actual spreadsheet
- Verify column mappings match current sheet structure
- Document any issues or edge cases discovered
- Update documentation based on testing feedback
- Create a video walkthrough (optional but helpful for future team members)
Columns Updated
The script updates these columns:
- author, license, contributor
- dateCreated, dateModified, datePublished
- inLanguage (IETF codes)
- timeRequired (ISO 8601 duration)
- identifier (slugs)
- abstract, about, accessibilitySummary
- mentions, recordedAt, version
Files
scripts/google-apps-script-updater.gsscripts/UPDATING_GOOGLE_SHEETS.md- Generated CSV:
scripts/output/MERGED-enhanced-metadata-YYYY-MM-DD.csv
Priority
Medium - This is important for maintaining data quality but not blocking other work. The scripts already generate the enhanced data; this just makes it easier to apply updates to the canonical source.
Labels
documentation, student-ready, phase-2-enhancement, good first issue