gristlabs_grist-core/sandbox/grist
Paul Fitzpatrick 7078922a65 (core) ensure randomness works when sandbox is cloned from a checkpoint
Summary:
This calls a new `initialize` method on the sandbox before we start
doing calculations with it, to make sure that `random.seed()` has
been called. Otherwise, if the sandbox is cloned from a checkpoint,
the seed will have been reset.

The `initialize` method includes the functionality previously done
by `set_doc_url` since it is also initialization/personalization and
this way we avoid introducing another round trip to the sandbox.

Test Plan: tested with grist-core configured to use gvisor

Reviewers: georgegevoian, dsagal

Reviewed By: georgegevoian, dsagal

Subscribers: alexmojaki

Differential Revision: https://phab.getgrist.com/D3549
2022-07-27 14:59:27 -04:00
..
functions (core) ensure randomness works when sandbox is cloned from a checkpoint 2022-07-27 14:59:27 -04:00
imports (core) Handle importing xls files with invalid dimensions 2022-06-16 08:39:17 -07:00
acl_formula.py
acl.py
action_obj.py (core) External requests 2022-06-17 21:53:20 +02:00
action_summary.py
actions.py
autocomplete_context.py
codebuilder.py (core) Fix renaming columns when iterating over Table.all in comprehension 2022-07-21 18:30:16 +02:00
column.py
csv_patch.py
depend.py
docactions.py
docmodel.py (core) Automatically remove empty summary table rows 2022-07-08 18:56:41 +02:00
engine.py (core) Nice summary table IDs 2022-07-14 12:09:56 +02:00
gencode.py (core) Nice summary table IDs 2022-07-14 12:09:56 +02:00
grist.py
identifiers.py
import_actions.py (core) Prevent rebuilding usercode for every AddColumn when importing 2022-05-24 22:29:20 +02:00
logger.py
lookup.py (core) External requests 2022-06-17 21:53:20 +02:00
main.py (core) ensure randomness works when sandbox is cloned from a checkpoint 2022-07-27 14:59:27 -04:00
match_counter.py
migrations.py (core) Update _grist_ACLResources.tableId when migration summary table IDs 2022-07-18 16:49:34 +02:00
moment.py
objtypes.py (core) Clear error.__traceback__ to prevent memory leaks 2022-07-06 13:43:14 +02:00
parse_data.py
records.py
relabeling.py
relation.py
runtests.py
sandbox.py
schema.py (core) Nice summary table IDs 2022-07-14 12:09:56 +02:00
sort_specs.py
summary.py (core) Nice summary table IDs 2022-07-14 12:09:56 +02:00
table_data_set.py
table.py (core) Automatically remove empty summary table rows 2022-07-08 18:56:41 +02:00
test_acl_formula.py
test_acl_renames.py
test_actions.py
test_codebuilder.py (core) Ensure formulas return something and don't assign to attributes of rec 2022-05-23 21:06:18 +02:00
test_column_actions.py (core) Nice summary table IDs 2022-07-14 12:09:56 +02:00
test_completion.py
test_default_formulas.py
test_depend.py
test_derived.py (core) Nice summary table IDs 2022-07-14 12:09:56 +02:00
test_display_cols.py (core) Automatically remove empty summary table rows 2022-07-08 18:56:41 +02:00
test_docmodel.py
test_engine.py
test_find_col.py
test_formula_error.py (core) Add PEEK() function to bypass circular dependencies 2022-06-02 19:50:14 +02:00
test_formula_undo.py (core) Mark column changing actions as indirect when adding data to empty column 2022-05-25 16:21:04 +02:00
test_functions.py
test_gencode.py
test_import_actions.py
test_logger.py
test_lookups.py
test_match_counter.py
test_migrations.py
test_moment.py
test_record_func.py
test_recordlist.py
test_reflist_rel.py
test_relabeling.py
test_renames2.py
test_renames.py (core) Fix renaming columns when iterating over Table.all in comprehension 2022-07-21 18:30:16 +02:00
test_replay.py
test_requests.py (core) External requests 2022-06-17 21:53:20 +02:00
test_rules.py
test_side_effects.py (core) Ensure formulas return something and don't assign to attributes of rec 2022-05-23 21:06:18 +02:00
test_sort_spec.py
test_summary2.py (core) Nice summary table IDs 2022-07-14 12:09:56 +02:00
test_summary_choicelist.py (core) Nice summary table IDs 2022-07-14 12:09:56 +02:00
test_summary_undo.py (core) Nice summary table IDs 2022-07-14 12:09:56 +02:00
test_summary.py (core) Nice summary table IDs 2022-07-14 12:09:56 +02:00
test_table_actions.py (core) Nice summary table IDs 2022-07-14 12:09:56 +02:00
test_table_data_set.py
test_temp_rowids.py
test_textbuilder.py
test_treeview.py
test_trigger_formulas.py
test_twowaymap.py
test_types.py
test_undo.py
test_urllib_patch.py
test_user.py
test_useractions.py (core) Nice summary table IDs 2022-07-14 12:09:56 +02:00
testsamples.py
testscript.json
testutil.py
textbuilder.py
treeview.py
twowaymap.py
tzdata.data
urllib_patch.py
user.py
useractions.py (core) Nice summary table IDs 2022-07-14 12:09:56 +02:00
usercode.py
usertypes.py
xmlrunner.py