You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library-api: refactor metadata sync to work in dev
Parameterizes the sync so that it will work with either local dev (using
the firebase emulators) or in production.
Defaults to dev mode (and automatically works with devbox services/
process-compose).
- Access raw XML: Right-click → "Reopen with Text Editor"
169
169
170
+
### Library Check Metadata Sync
171
+
172
+
The builder-api needs metadata about available library checks (from library-api). This metadata is stored in Firebase Storage and referenced from Firestore.
173
+
174
+
**Automatic Sync (Development)**:
175
+
- Runs automatically when you start services via `devbox services up`
176
+
- Syncs from local library-api (http://localhost:8083) to Firebase emulators
177
+
- Happens after library-api starts, before builder-api starts
178
+
- Library checks will then be visible in the builder UI!
179
+
180
+
**Manual Sync (Development)**:
181
+
```bash
182
+
# Re-sync after making library-api changes
183
+
./scripts/sync-library-metadata.sh
184
+
185
+
# Then restart builder-api to pick up new metadata
186
+
# (In process-compose UI, restart the builder-api process)
187
+
```
188
+
189
+
**Production Sync** (maintainers only):
190
+
```bash
191
+
# Set production library-api URL and unset emulator variables
0 commit comments