Module: middleware-dataset-failed-expectation-entry

Responsible for displaying table of entities for a failed expectation for a dataset.

See https://datasette.planning.data.gov.uk/digital-land/expectation for data.

Source:

Members

(static, constant) validateExpectationsFailed

Validates the expectations actually exist, 404 otherwise.

Source:

Methods

(inner) fetchEntities(req, res, next)

Parameters:
Name Type Description
req Object

request object

Properties
Name Type Description
entityIds Array.<number>
res Object

response object

next function
Source:

(inner) prepareTemplateParams(req, res, next) → {undefined}

Parameters:
Name Type Description
req Object

The request object. It should contain the following properties:

Properties
Name Type Attributes Description
parsedParams Object

An object containing the parameters of the request

orgInfo Object

org info

dataset Object

dataset info

issueSpecification Object <optional>

specification

expectationOutOfBounds Array.<Object> <optional>
Properties
Name Type Description
dataset string
passed boolean

did the exepectation pass

expected number
actual number
details String

JSON string

entityIds Array.<String> <optional>

ids of entities out of bounds

tableParams Object

table template parameters

dataRange Object
pagination Object

pagination info

templateParams Object

OUT value

res Object

The response object.

next function

The next middleware function.

Source:
Returns:
Type
undefined