Skip to content

[infra] Add links in console log when resources are created in GCP #1372

@fernandascovino

Description

@fernandascovino

Get the link to the added/modified resources along with the actions performed messages.

Example:

table_id = "quadro_horario"
dataset_id = "projeto_subsidio_sppo"

st = bd.Storage(table_id=table_id, dataset_id=dataset_id)
st.copy_table(source_bucket_name='rj-smtr-dev', destination_bucket_name='rj-smtr-staging')

> Copy Table Chunk: 100%|██████████| 1/1 [00:00<00:00,  1.84it/s]
> 2022-10-18 23:23:49.671 | SUCCESS  | basedosdados.upload.storage:copy_table:507 - Table quadro_horario_staging was copied!
> 2022-10-18 23:23:49.671 | SUCCESS  | basedosdados.upload.storage:copy_table:507 - Checkout at: <link-to-gcs>

Metadata

Metadata

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions