Skip to content

Commit

Permalink
update 'afegir una planta' documentation (et/somenergia-jardiner!59)
Browse files Browse the repository at this point in the history
* update 'afegir una planta' documentation
  • Loading branch information
polmonso committed Dec 15, 2023
1 parent 035fed0 commit e0c7cd9
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions docs/desenvolupadors/2023-08-28-afegir-planta.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,27 @@

Una nova planta afegirà signals al paquet de dset amb llurs devices. Per tant cal

1. [] Modificar el csv `signal_device_relation`
2. [] Executar `dbt build -s signal_device_relation devices`
Anirem al directori [sincronització airbyte](https://drive.google.com/drive/folders/1xeGCcfYTTFo9p0cPEmi9RKT9e1HOWIlR?usp=drive_link) i omplir els tres documents

1. [] Mirar si ja és a [airbyte_Dades fixes de planta]()
2. [] Producció anual
3. [] Buscar el seu Mapeig de comunicacions al drive i posar un enllaç a [mapejos_plantes](https://drive.google.com/drive/u/0/folders/1LePhB83sKLQZ58onEluj4PyN_sjgD8aQ)
4. [] Modificar el csv `airbyte_signal_device_relation` copiant les columnes

```
signal_description -> signal
device_description -> device
metric -> metric
device_type -> device_type
device_uuid -> device_uuid
signal_uuid -> signal_uuid
```
I copiant el plant i plant_uuid de les dades fixes, posant l'inserted_at a ara
5. [] Executar la tasca de sync de l'airbyte d'uuids
6. [] Executar `dbt snapshot`
7. [] Executar un `dbt build --target prod` o fer un push a main
El pas 2 executarà dbt seed, dbt run i dbt test i extreurà els nous devices de la signal_device_relation.
Expand Down

0 comments on commit e0c7cd9

Please sign in to comment.