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
# for any affected full_history_restatement_only snapshots, we need to widen the intervals being restated to
175
+
# include the whole time range for that snapshot. This requires a call to state to load the full snapshot record,
176
+
# so we only do it if necessary
177
+
full_history_restatement_snapshot_ids= [
178
+
# FIXME: full_history_restatement_only is just one indicator that the snapshot can only be fully refreshed, the other one is Model.depends_on_self
179
+
# however, to figure out depends_on_self, we have to render all the model queries which, alongside having to fetch full snapshots from state,
180
+
# is problematic in secure environments that are deliberately isolated from arbitrary user code (since rendering a query may require user macros to be present)
181
+
# So for now, these are not considered
182
+
s_id
183
+
fors_id, sinsnapshot_intervals_to_clear.items()
184
+
ifs.snapshot.full_history_restatement_only
185
+
]
186
+
iffull_history_restatement_snapshot_ids:
187
+
# only load full snapshot records that we havent already loaded
# for any affected full_history_restatement_only snapshots, we need to widen the intervals being restated to
480
-
# include the whole time range for that snapshot. This requires a call to state to load the full snapshot record,
481
-
# so we only do it if necessary
482
-
full_history_restatement_snapshot_ids= [
483
-
# FIXME: full_history_restatement_only is just one indicator that the snapshot can only be fully refreshed, the other one is Model.depends_on_self
484
-
# however, to figure out depends_on_self, we have to render all the model queries which, alongside having to fetch full snapshots from state,
485
-
# is problematic in secure environments that are deliberately isolated from arbitrary user code (since rendering a query may require user macros to be present)
486
-
# So for now, these are not considered
487
-
s_id
488
-
fors_id, sinsnapshots_to_restate.items()
489
-
ifs[0].full_history_restatement_only
490
-
]
491
-
iffull_history_restatement_snapshot_ids:
492
-
# only load full snapshot records that we havent already loaded
0 commit comments