Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

ETL: incremental company registry sync using change detection

Aberta
#28 2 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Pouca atividade
Stack de tecnologia
php
Domínio
api

Direção de pesquisa

Start by checking the SDK’s company search API entry point and the API documentation to determine whether it supports filtering by update time or offers a webhook or event stream. Then assess whether a since() query builder fits the SDK; done means identifying a supported incremental sync approach and documenting or implementing the corresponding SDK capability.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

enhancement good first issue

Scenario

Teams building data warehouses over the Italian company registry (Registro Imprese) need to run incremental syncs — only fetching records that changed since the last run — rather than full reloads.

Current approach (inefficient)

// Full reload every night — very expensive in API credits
$page = 1;
do {
    $response = json_decode($client->get('https://company.openapi.com/IT-search', [
        'page' => $page++,
    ]), true);
    syncToWarehouse($response['items']);
} while (!empty($response['items']));

Better approach

Use a last_updated_at filter if the API supports it, or store a local hash of each record and compare on each run.

$lastRun = $store->get('last_sync_timestamp');
$response = json_decode($client->get('https://company.openapi.com/IT-search', [
    'updated_after' => $lastRun,
]), true);

Open questions

  • Does the company search API support updated_after or equivalent filtering?
  • Is there a webhook/event stream alternative to polling for changes?
  • Could the SDK expose a since() query builder to make this pattern cleaner?
Linguagem predominante
PHP
Estrelas
20
Forks
3
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de openapi/openapi-php-sdk

Todas as issues de openapi/openapi-php-sdk

Issues semelhantes

Mais issues de PHP

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.