Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/__init__.py
# Copyright (C) 2016-2017 The Software Heritage developers | # Copyright (C) 2016-2017 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
INDEXER_CLASSES = { | INDEXER_CLASSES = { | ||||
'mimetype': 'swh.indexer.mimetype.ContentMimetypeIndexer', | 'mimetype': 'swh.indexer.mimetype.ContentMimetypeIndexer', | ||||
'language': 'swh.indexer.language.ContentLanguageIndexer', | 'language': 'swh.indexer.language.ContentLanguageIndexer', | ||||
'ctags': 'swh.indexer.ctags.CtagsIndexer', | 'ctags': 'swh.indexer.ctags.CtagsIndexer', | ||||
'fossology_license': | 'fossology_license': | ||||
'swh.indexer.fossology_license.ContentFossologyLicenseIndexer', | 'swh.indexer.fossology_license.ContentFossologyLicenseIndexer', | ||||
} | } | ||||
TASK_NAMES = { | TASK_NAMES = { | ||||
'orchestrator_all': 'swh.indexer.tasks.SWHOrchestratorAllContentsTask', | 'orchestrator_all': 'swh.indexer.tasks.OrchestratorAllContentsTask', | ||||
ardumont: Can you please drop the SWH prefix (and the Task suffix as well), that's redundant (we are in a… | |||||
Done Inline Actions
I was unclear, i was just speaking about the other new one introduced here OriginMetadataTask. Since everything is touched now... and that impacts the production anyway. Could you please also remove the suffix Task from all those tasks? Thanks in advance. ardumont: > same for the other task.
I was unclear, i was just speaking about the other new one… | |||||
Done Inline ActionsProduction change: 017daf371998539e1ee12be821a0cf4e009d1f42 ardumont: Production change: 017daf371998539e1ee12be821a0cf4e009d1f42 | |||||
'orchestrator_text': 'swh.indexer.tasks.SWHOrchestratorTextContentsTask', | 'orchestrator_text': 'swh.indexer.tasks.OrchestratorTextContentsTask', | ||||
'mimetype': 'swh.indexer.tasks.SWHContentMimetypeTask', | 'mimetype': 'swh.indexer.tasks.ContentMimetypeTask', | ||||
'language': 'swh.indexer.tasks.SWHContentLanguageTask', | 'language': 'swh.indexer.tasks.ContentLanguageTask', | ||||
'ctags': 'swh.indexer.tasks.SWHCtagsTask', | 'ctags': 'swh.indexer.tasks.CtagsTask', | ||||
'fossology_license': 'swh.indexer.tasks.SWHContentFossologyLicenseTask', | 'fossology_license': 'swh.indexer.tasks.ContentFossologyLicenseTask', | ||||
'rehash': 'swh.indexer.tasks.SWHRecomputeChecksumsTask', | 'rehash': 'swh.indexer.tasks.RecomputeChecksumsTask', | ||||
'revision_metadata': 'swh.indexer.tasks.RevisionMetadataTask', | |||||
'origin_intrinsic_metadata': | |||||
'swh.indexer.tasks.OriginMetadataTask', | |||||
} | } | ||||
__all__ = [ | __all__ = [ | ||||
'INDEXER_CLASSES', 'TASK_NAMES', | 'INDEXER_CLASSES', 'TASK_NAMES', | ||||
] | ] |
Can you please drop the SWH prefix (and the Task suffix as well), that's redundant (we are in a swh module, as per the fqdn shows already).
I'm trying to progressively remove that when i stumble upon it, same for the other task.