Skip to content

Ensure existing mat view has data populated when definition isn't changed#117

Merged
mikicz merged 1 commit intomainfrom
bugfix/ensure-has-data
Jan 6, 2026
Merged

Ensure existing mat view has data populated when definition isn't changed#117
mikicz merged 1 commit intomainfrom
bugfix/ensure-has-data

Conversation

@mikicz
Copy link
Collaborator

@mikicz mikicz commented Jan 6, 2026

If MATERIALIZED_VIEWS_CHECK_SQL_CHANGED is enabled and view definition has not changed, and view does not have with_data = False, and somehow the view does not have data populated, perform a refresh to make sure the data is there.

@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Coverage

Coverage Report •
FileStmtsMissCoverMissing
django_pgviews/management/operations
   create_materialized.py108199%133
TOTAL7625592% 

Tests Skipped Failures Errors Time
1392 0 💤 0 ❌ 0 🔥 51.476s ⏱️

…nged

If MATERIALIZED_VIEWS_CHECK_SQL_CHANGED is enabled and view definition has not changed,
and view does not have with_data = False, and somehow the view does not have data
populated, perform a refresh to make sure the data is there.
@mikicz mikicz force-pushed the bugfix/ensure-has-data branch from adf5aca to f3eb56f Compare January 6, 2026 16:16
@mikicz mikicz merged commit 5e7752a into main Jan 6, 2026
28 checks passed
@mikicz mikicz deleted the bugfix/ensure-has-data branch January 6, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants