mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-29 19:10:19 +03:00
8ef4efa0f5
https://github.com/twentyhq/private-issues/issues/75 **TLDR** Add twenty-server package, wich contains the last tinybird datasources and pipes used in analytics. This new version of the API endpoints, pipes and datasources are inspired by the implementation of dub.co (https://github.com/dubinc/dub/blob/main/packages/tinybird/). It contains the webhooks analytics, serverless functions duration and serverless functions error count analytics. As well as **In order to test** - Follow the instructions in the README.md on twenty-tinybird using your admin token from twenty_analytics_playground if you want to modify them. - For a better experience add the extension Tinybird support for VsCode - If you want more info about datasources and pipes please read the tinybird docs. --------- Co-authored-by: Félix Malfait <felix@twenty.com> Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
22 lines
523 B
Bash
Executable File
22 lines
523 B
Bash
Executable File
|
|
#!/usr/bin/env bash
|
|
set -euxo pipefail
|
|
|
|
directory="datasources/fixtures"
|
|
extensions=("csv" "ndjson")
|
|
|
|
absolute_directory=$(realpath "$directory")
|
|
|
|
for extension in "${extensions[@]}"; do
|
|
file_list=$(find "$absolute_directory" -type f -name "*.$extension")
|
|
|
|
for file_path in $file_list; do
|
|
file_name=$(basename "$file_path")
|
|
file_name_without_extension="${file_name%.*}"
|
|
|
|
command="tb datasource append $file_name_without_extension datasources/fixtures/$file_name"
|
|
echo $command
|
|
$command
|
|
done
|
|
done
|