Refactor 2.1.0: pipeline COUNTER, services e reorganização#127
Merged
pitangainnovare merged 16 commits intoJun 21, 2026
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor 2.1.0: pipeline COUNTER, services e reorganização
Resumo
Refactor amplo do app de uso/COUNTER, organizado em commits temáticos para
leitura sequencial. Renomeia camadas de service para a forma singular, quebra
módulos monolíticos de
metricsem pacotes, reorganiza a suíte de testes,remove código morto e adota descoberta explícita de tasks Celery via
CELERY_IMPORTS. Inclui também ajustes de metadados/mappings (R5.1, título dodocumento) ainda não presentes no upstream.
Bump de versão: 2.0.3 → 2.1.0.
Destaques
metrics/counter/{access,indexing}/,metrics/services/parsing/,metrics/tasks/{log_parsing,daily_metric_exports,resume}.py,metrics/opensearch/painless.py.CELERY_IMPORTSemconfig/settings/base.py); ostasks/__init__.pydeixam de reexportar.document/esource/(+core/utils/metadata.pycompartilhado).
tests.pyplanos para pacotestests/(comconftest,fixturese subpastas por área emmetrics).-e(corrige recriação desrc/);psycopg2-binary→psycopg2em produção.metrics/{admin,views,exceptions}.py, comandos demanagement obsoletos,
AGENTS.md, etc.Commits (em ordem)
Feature pré-existente (ainda não no upstream)
883654bCaptura título do documento no acesso COUNTER5f1fd28Reorganiza documentos e mappings de métricas32d0fbaAdapta exportação mensal R5.1 de livrosd8113d7Merge PR Reorganiza documentos COUNTER no OpenSearch #125Refactor (temático)
-e;psycopg2source em produção.config/{menu,urls,collections}, bump 2.1.0, removeAGENTS.md.core/utils/metadata.py(compartilhado por document/source).utils,collectors,users,tests.CELERY_IMPORTS(
config/settings/base.py,document/tasks/__init__.py); novos pacotescounter/{access,indexing},services/parsing,tasks/{log_parsing,daily_metric_exports};remove
admin/views/exceptions/scripts/parser/parse/process/managemente testes legados.article/book/dataset/preprint),reorg de tasks e testes.
loaders.py+ testes.Atenção (mudanças que afetam consumidores)
(
document/services/articles.py→article.py, etc.); módulos de parsing/counterreorganizados em pacotes.
CELERY_IMPORTS— quem rodarworkers deve usar a config atualizada.
requirements/{base,production}.txtalterados (rebuild da imagemnecessário).
metrics/{admin,views,exceptions}.py, comandos de management demetrics/log_manager,AGENTS.md.Verificação
make lintemake testverdesmakemigrations --check --dry-runsem pendênciascelery -A config.celery_app inspect registeredlista as tasks de document e metricsusage_*populados