Skip to content

feat(sync): add refreshDbinfo one-shot to backfill dbinfo rows - #140

Merged
elainefan331 merged 1 commit into
stagingfrom
dev-fan
Aug 7, 2026
Merged

feat(sync): add refreshDbinfo one-shot to backfill dbinfo rows#140
elainefan331 merged 1 commit into
stagingfrom
dev-fan

Conversation

@elainefan331

Copy link
Copy Markdown
Collaborator

Summary

This PR adds a standalone maintenance script to refresh dbinfo entries in the PostgreSQL ioviews table from the CouchDB dbinfo view.

The script is intended for one-time backfilling when only the CouchDB view changes without any underlying document updates, ensuring that the indexed metadata remains synchronized and searchable.

Changes

  • Add backend/sync/refreshDbinfo.js for dbinfo synchronization.
  • Support refreshing one or more databases via command-line arguments.
  • Reuse the existing application database configuration, allowing the script to run in both local and server environments without additional configuration.

@elainefan331
elainefan331 merged commit 2c55531 into staging Aug 7, 2026
1 check passed
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.

1 participant