Skip to content

Inconsistencies between documentation and exposed methods #47

Description

@basteks

Mentioned in this thread.

The intro at /javascript/ says

Features that are only available in one context are clearly marked on the respective pages.

Introspection of base inside the script editor shows this isn't the case for 16 documented methods, all of which are absent from the script runtime without any marking: insertColumn, renameColumn, resizeColumn, freezeColumn, moveColumn, modifyColumnType, addColumnOptions, addColumnCascadeSettings, deleteColumn, listRows, insertRow, batchAppendRows, batchUpdateRows, updateLink, batchUpdateLinks, getMetadata.

Note the asymmetry within the batch family: batchDeleteRows is present in scripts, but batchAppendRows and batchUpdateRows (and also batchUpdateLinks) are not.

Conversely, the script runtime exposes several methods the docs don't mention (aliases/deprecated?): addRow, getViews, getRowById, deleteRowById, deleteRowsByIds, getViewRows, modifyRow, updateLinks, outputError.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions