# AR Track Filter Lambda

## Description

Art Relations (AR) Track filter lambda.
Consumes messages from cdc.artRelations.track Kafka topic, hydrates the data, and checks they are valid for Neighbouring Rights.

Will check that the track's product is `in_content` and that we have rights for ownership collection before continuing. Will drop messages not relevant to ownership neighbouring rights.

For those tracks which are 'valid', they will get sent to an SQS instance for downstream processing.

## Installing

```
cd lambda ar-track-filter
nvm use
yarn install
```

## Running Lint checks and Unit tests

```
yarn format && yarn lint && yarn test:unit
```

## Notion Documentation

[ar-track-filter](https://www.notion.so/Orchard-Data-Sync-c650067e4afc4b05b0a984b4d662367a#27754b573c6a40f4b93f19713c2711ed)
