You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by to...@apache.org on 2022/07/23 06:29:42 UTC
[lucene-jira-archive] branch main updated: Cover all Jira components in module label mapping (#64)
This is an automated email from the ASF dual-hosted git repository.
tomoko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene-jira-archive.git
The following commit(s) were added to refs/heads/main by this push:
new 2daa443b Cover all Jira components in module label mapping (#64)
2daa443b is described below
commit 2daa443b62d4a9c627173bfda804919cebce359a
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Sat Jul 23 15:29:38 2022 +0900
Cover all Jira components in module label mapping (#64)
---
migration/src/common.py | 15 ++++++++++++++-
migration/src/jira2github_import.py | 8 ++++++--
2 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/migration/src/common.py b/migration/src/common.py
index 863378fa..376af2d6 100644
--- a/migration/src/common.py
+++ b/migration/src/common.py
@@ -187,13 +187,18 @@ COMPONENT_TO_LABEL_MAP = {
"modules/analysis": "module:analysis",
"modules/benchmark": "module:benchmark",
"modules/classification": "module:classification",
+ "modules/examples": "module:demo",
"modules/expressions": "module:expressions",
"modules/facet": "module:facet",
"modules/grouping": "module:grouping",
- "modules/highlithter": "module:highlithter",
+ "modules/highlighter": "module:highlighter",
"modules/join": "module:join",
"modules/luke": "module:luke",
+ "modules/misc": "module:misc",
"modules/monitor": "module:monitor",
+ "modules/other": None,
+ "modules/queries": "module:queries",
+ "modules/query": "mocule:queries",
"modules/queryparser": "module:queryparser",
"modules/replicator": "module:replicator",
"modules/sandbox": "module:sandbox",
@@ -204,9 +209,17 @@ COMPONENT_TO_LABEL_MAP = {
"modules/spellchecker": "module:suggest",
"modules/test-framework": "module:test-framework",
"luke": "module:luke",
+ "replication (java)": "module:replicator",
+ "spatial": "module:spatial",
+ "query parsers": "module:queryparser",
"general/build": "tool:build",
"general/javadocs": "type:documentation",
+ "general/tools": "tool:other",
"general/test": "type:test",
"general/website": "website",
"release wizard": "tool:release-wizard",
+ "Build": None,
+ "Schema and Analysis": None,
+ "Tests": None,
+ "contrib - Solr Cell (Tika extraction)": None,
}
\ No newline at end of file
diff --git a/migration/src/jira2github_import.py b/migration/src/jira2github_import.py
index 46a3c7e0..2eeea9bb 100644
--- a/migration/src/jira2github_import.py
+++ b/migration/src/jira2github_import.py
@@ -180,7 +180,11 @@ def convert_issue(num: int, dump_dir: Path, output_dir: Path, account_map: dict[
if c.startswith("core"):
labels.append(f"module:{c}")
elif c in COMPONENT_TO_LABEL_MAP:
- labels.append(COMPONENT_TO_LABEL_MAP.get(c))
+ l = COMPONENT_TO_LABEL_MAP[c]
+ if l is not None:
+ labels.append(l)
+ else:
+ logger.error(f"Unknown Component: {c}")
data = {
"issue": {
@@ -222,7 +226,7 @@ if __name__ == "__main__":
parser.add_argument('--issues', type=int, required=False, nargs='*', help='Jira issue number list to be downloaded')
parser.add_argument('--min', type=int, dest='min', required=False, default=1, help='Minimum Jira issue number to be converted')
parser.add_argument('--max', type=int, dest='max', required=False, help='Maximum Jira issue number to be converted')
- parser.add_argument('--num_workers', type=int, dest='num_workers', required=False, default=1, help='Number of worker processes')
+ parser.add_argument('--num-workers', type=int, dest='num_workers', required=False, default=1, help='Number of worker processes')
args = parser.parse_args()
dump_dir = Path(__file__).resolve().parent.parent.joinpath(JIRA_DUMP_DIRNAME)