gristlabs_grist-core/app/server/lib
Dmitry S e0fb281eba (core) When searching, use formatter.formatAny() to handle values of invalid type.
Summary:
This turns out necessary because ReferenceList columns are formatted
using the formatter of the associated visibleCol. This works correctly
in dedicated widgets, but in generic code (like SearchModel here), this
formatter needs to handle unexpected values (of type ReferenceList).

Without the fix, it produces JS errors when search reaches a
RefList:<Date> column.

A better fix would allow a formatter to know that it expects a ReferenceList,
AND to know how to format each value of it, but that's a bigger question
that's outside the scope of this fix.

Test Plan: Includes a browser test which reproduces the bug.

Reviewers: cyprien

Reviewed By: cyprien

Differential Revision: https://phab.getgrist.com/D3195
2021-12-21 15:35:40 -05:00
..
ACLFormula.ts
ActionHistory.ts
ActionHistoryImpl.ts
ActionSummary.ts
ActiveDoc.ts (core) When searching, use formatter.formatAny() to handle values of invalid type. 2021-12-21 15:35:40 -05:00
ActiveDocImport.ts (core) Parse string cell values in Doc API and Imports 2021-12-17 15:40:58 +02:00
AppEndpoint.ts
Authorizer.ts (core) set cookie response header more consistently 2021-11-24 10:16:30 -05:00
BrowserSession.ts (core) set cookie response header more consistently 2021-11-24 10:16:30 -05:00
checksumFile.ts
Client.ts
Comm.js
dbUtils.ts
DiscourseConnect.ts
DocApi.ts (core) Parse string cell values in Doc API and Imports 2021-12-17 15:40:58 +02:00
DocApiTypes-ti.ts
DocApiTypes.ts
DocClients.ts
DocManager.ts
DocPluginData.ts
DocPluginManager.ts (core) Use MetaTableData more 2021-12-07 17:09:58 +02:00
DocSession.ts
DocSnapshots.ts
DocStorage.ts
DocStorageManager.ts
docUtils.d.ts
docUtils.js
DocWorker.ts (core) Exposing more descriptive errors from exports 2021-11-30 17:26:32 +01:00
DocWorkerMap.ts
ExcelFormatter.ts
ExpandedQuery.ts (core) Use MetaTableData more 2021-12-07 17:09:58 +02:00
Export.ts (core) Use MetaTableData more 2021-12-07 17:09:58 +02:00
ExportCSV.ts (core) Use MetaTableData more 2021-12-07 17:09:58 +02:00
ExportXLSX.ts (core) Exposing more descriptive errors from exports 2021-11-30 17:26:32 +01:00
expressWrap.ts
ExternalStorage.ts (core) make sure forks with no changes are persisted 2021-12-01 22:27:56 -05:00
extractOrg.ts
FileParserElement.ts
filterUtils.ts
FlexServer.ts (core) move more tests to grist-core 2021-12-10 18:33:07 -05:00
GoogleAuth.ts (core) Exposing more descriptive errors from exports 2021-11-30 17:26:32 +01:00
GoogleExport.ts
GoogleImport.ts
GranularAccess.ts (core) Use MetaTableData more 2021-12-07 17:09:58 +02:00
GristServer.ts (core) move more tests to grist-core 2021-12-10 18:33:07 -05:00
gristSessions.ts
guessExt.ts
HashUtil.ts
HostedMetadataManager.ts
HostedStorageManager.ts (core) make sure forks with no changes are persisted 2021-12-01 22:27:56 -05:00
IBilling.ts
IChecksumStore.ts
ICreate.ts
IDocStorageManager.ts
idUtils.ts
IElectionStore.ts
initialDocSql.ts (core) Allow filtering hidden columns 2021-11-22 10:26:08 -08:00
INotifier.ts
ISandbox.ts
IShell.ts
ITestingHooks-ti.ts (core) Exposing custom widgets on the UI 2021-12-01 18:21:06 +01:00
ITestingHooks.ts (core) Exposing custom widgets on the UI 2021-12-01 18:21:06 +01:00
log.ts
LogMethods.ts
manifest.ts
MinimalLogin.ts
NSandbox.ts
OnDemandActions.ts (core) Use MetaTableData more 2021-12-07 17:09:58 +02:00
PermissionInfo.ts
Permit.ts
places.ts
PluginEndpoint.ts
PluginManager.ts
reportTimeTaken.ts
requestUtils.ts (core) move more tests to grist-core 2021-12-10 18:33:07 -05:00
RowAccess.ts
SafePythonComponent.ts
SamlConfig.ts (core) move more tests to grist-core 2021-12-10 18:33:07 -05:00
SandboxControl.ts
sandboxUtil.js
sendAppPage.ts (core) Update HelpScout beacon to work with embedded documentation articles. 2021-12-09 22:22:55 -05:00
ServerColumnGetters.ts
ServerLocale.ts
serverUtils.ts
Sessions.ts (core) move more tests to grist-core 2021-12-10 18:33:07 -05:00
Sharing.ts
shortDesc.ts
shutdown.js
SQLiteDB.ts
TableMetadataLoader.ts
TagChecker.ts
TestingHooks.ts (core) move more tests to grist-core 2021-12-10 18:33:07 -05:00
TestLogin.ts (core) move more tests to grist-core 2021-12-10 18:33:07 -05:00
Throttle.ts
TimeQuery.ts
Triggers.ts (core) Use MetaTableData more 2021-12-07 17:09:58 +02:00
UnsafeNodeComponent.ts
uploads.ts (core) move more tests to grist-core 2021-12-10 18:33:07 -05:00
WidgetRepository.ts (core) Exposing custom widgets on the UI 2021-12-01 18:21:06 +01:00
WorkCoordinator.ts