gristlabs_grist-core/app/common
Alex Hall 0350e2df58 (core) Fix filtering of empty reflists
Summary:
A formula returning an empty RecordSet in a RefList columns results in storing [] instead of null.
This caused a bug where the empty list was 'flattened' and the cell not appearing in filters at all.
This diff fixes the bug by filtering for the default value `null` instead for RefLists and the empty string for ChoiceLists.
I didn't manage to actually reproduce the bug for ChoiceLists, but this seemed the most sensible thing to do.

Test Plan: New nbrowser test.

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3478
2022-06-11 00:16:57 +02:00
..
ACLPermissions.ts
ACLRuleCollection.ts
ActionBundle.ts
ActionDispatcher.ts
ActionGroup.ts
ActionRouter.ts
ActionSummary.ts
ActiveDocAPI.ts
ApiError.ts
arrayToString.ts
AsyncCreate.ts
AsyncFlow.ts
asyncIterators.ts
BaseAPI.ts
BasketClientAPI.ts
BigInt.ts
BillingAPI.ts
BinaryIndexedTree.js
BrowserSettings.ts
ColumnFilterFunc.ts (core) Fix filtering of empty reflists 2022-06-11 00:16:57 +02:00
ColumnGetters.ts
CommTypes.ts
csvFormat.ts
CustomWidget.ts
declarations.d.ts
delay.ts
DisposableWithEvents.ts
DocActions.ts
DocData.ts
DocLimits.ts
DocListAPI.ts
DocSnapshot.ts
DocumentSettings.ts
DocUsage.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
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
tagManager.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