SS1: Support arbitrary sublist names. #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds support for using record sublists other than
item
andaddressbook
. This shouldn't require any changes in dependant pieces ofcode unless they were relying on matching an error message or on
selectNewLineItem
erroring on unsupported records (it also "upserts" in the SS2 module).Most places that would have previously complained about unsupported lines will now complain about
TypeError: Cannot * property '*' of undefined
. Exceptions are:selectNewLineItem
: will create new sublist groups and new currentLine groups as appropriate in line with whatselectNewLine
does in the SS2 module. (I'm not sure what thataddressbookaddress
thing is for but left it in for compatibility.)getLineItemCount
it was already returning 0 for unknown sublists so I left it that wayI have left
lineItems
andaddressBookLines
as aliases in case they are being used in existing tests somehow (I don't think that is possible given the scope though).lineItems
is still used intransform()
, I am not sure if that should be updated and if so what to.Edit: also fixed bug in the SS1 search API.