mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
599545fb11
Summary: Adds `common/ValueGuesser.ts` with logic for guessing column type and widget options (only for dates/datetimes) from an array of strings, and converting the strings to the guessed type in a lossless manner, so that converting back to Text gives the original values. Changes `_ensure_column_accepts_data` in Python to call an exported JS method using the new logic where possible. Test Plan: Added `test/common/ValueGuesser.ts` to unit test the core guessing logic and a DocApi end-to-end test for what happens to new columns. Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3290 |
||
---|---|---|
.. | ||
ACLPermissions.ts | ||
ACLRuleCollection.ts | ||
ActionBundle.ts | ||
ActionDispatcher.ts | ||
ActionGroup.ts | ||
ActionRouter.ts | ||
ActionSummary.ts | ||
ActiveDocAPI.ts | ||
ApiError.ts | ||
arrayToString.ts | ||
AsyncCreate.ts | ||
AsyncFlow.ts | ||
BaseAPI.ts | ||
BasketClientAPI.ts | ||
BigInt.ts | ||
BillingAPI.ts | ||
BinaryIndexedTree.js | ||
BrowserSettings.ts | ||
ColumnFilterFunc.ts | ||
ColumnGetters.ts | ||
csvFormat.ts | ||
CustomWidget.ts | ||
declarations.d.ts | ||
delay.ts | ||
DisposableWithEvents.ts | ||
DocActions.ts | ||
DocData.ts | ||
DocListAPI.ts | ||
DocSnapshot.ts | ||
DocumentSettings.ts | ||
emails.ts | ||
EncActionBundle.ts | ||
ErrorWithCode.ts | ||
Features.ts | ||
FilterState.ts | ||
Formula.ts | ||
GranularAccessClause.ts | ||
GristServerAPI.ts | ||
gristTypes.ts | ||
gristUrls.ts | ||
gutil.ts | ||
InactivityTimer.ts | ||
isHiddenTable.ts | ||
KeyedMutex.ts | ||
KeyedOps.ts | ||
LocaleCodes.ts | ||
Locales.ts | ||
LoginSessionAPI.ts | ||
LoginState.ts | ||
marshal.ts | ||
MemBuffer.js | ||
NumberFormat.ts | ||
NumberParse.ts | ||
orgNameUtils.ts | ||
parseDate.ts | ||
plugin.ts | ||
PluginInstance.ts | ||
Prefs.ts | ||
RefCountMap.ts | ||
resetOrg.ts | ||
roles.ts | ||
RowFilterFunc.ts | ||
schema.ts | ||
ShareAnnotator.ts | ||
sharing.ts | ||
SortFunc.ts | ||
SortSpec.ts | ||
StringUnion.ts | ||
TableData.ts | ||
TabularDiff.ts | ||
tbind.ts | ||
TestState.ts | ||
timeFormat.ts | ||
tpromisified.ts | ||
tsconfig.json | ||
tsvFormat.ts | ||
UIRowId.ts | ||
uploads.ts | ||
urlUtils.ts | ||
UserAPI.ts | ||
UserConfig.ts | ||
ValueConverter.ts | ||
ValueFormatter.ts | ||
ValueGuesser.ts | ||
ValueParser.ts |