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:04:39 UTC

[lucene-jira-archive] branch fix-component-labels created (now 764cc18b)

This is an automated email from the ASF dual-hosted git repository.

tomoko pushed a change to branch fix-component-labels
in repository https://gitbox.apache.org/repos/asf/lucene-jira-archive.git


      at 764cc18b cover all Jira components

This branch includes the following new commits:

     new 764cc18b cover all Jira components

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[lucene-jira-archive] 01/01: cover all Jira components

Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tomoko pushed a commit to branch fix-component-labels
in repository https://gitbox.apache.org/repos/asf/lucene-jira-archive.git

commit 764cc18bd6bdb2bf74aa9c4703dc6109b765a6f3
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Sat Jul 23 15:04:28 2022 +0900

    cover all Jira components
---
 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..d88f04bf 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(COMPONENT_TO_LABEL_MAP.get(c))
+            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)