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/06/30 14:53:19 UTC

[lucene-jira-archive] branch main updated (54f19fd -> 0c6cf7e)

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

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


    from 54f19fd  add attachments
     new 9495825  update path for attachments
     new 4df4c4f  replace all \r\n to \n
     new 4b639c3  enable all mentions to github accounts
     new 4b64f96  shorten interval between API calls
     new 0c6cf7e  add attachments

The 5 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.


Summary of changes:
 .../LUCENE-10605/image-2022-06-08-20-50-27-712.png      | Bin 0 -> 16704 bytes
 .../LUCENE-10605/image-2022-06-08-21-24-57-674.png      | Bin 0 -> 49431 bytes
 .../LUCENE-10605/image-2022-06-09-08-25-55-289.png      | Bin 0 -> 2282 bytes
 .../LUCENE-10605/image-2022-06-09-08-26-36-528.png      | Bin 0 -> 16742 bytes
 migration/src/download_jira.py                          |   2 +-
 migration/src/github_issues_util.py                     |   2 +-
 migration/src/jira2github_import.py                     |  10 +++++-----
 migration/src/jira_util.py                              |   1 +
 8 files changed, 8 insertions(+), 7 deletions(-)
 create mode 100644 attachments/LUCENE-10605/image-2022-06-08-20-50-27-712.png
 create mode 100644 attachments/LUCENE-10605/image-2022-06-08-21-24-57-674.png
 create mode 100644 attachments/LUCENE-10605/image-2022-06-09-08-25-55-289.png
 create mode 100644 attachments/LUCENE-10605/image-2022-06-09-08-26-36-528.png


[lucene-jira-archive] 05/05: add attachments

Posted by to...@apache.org.
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

commit 0c6cf7ebf3dddd188250199a36bfb1ac63cbf6cd
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Thu Jun 30 23:53:05 2022 +0900

    add attachments
---
 .../LUCENE-10605/image-2022-06-08-20-50-27-712.png      | Bin 0 -> 16704 bytes
 .../LUCENE-10605/image-2022-06-08-21-24-57-674.png      | Bin 0 -> 49431 bytes
 .../LUCENE-10605/image-2022-06-09-08-25-55-289.png      | Bin 0 -> 2282 bytes
 .../LUCENE-10605/image-2022-06-09-08-26-36-528.png      | Bin 0 -> 16742 bytes
 4 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/attachments/LUCENE-10605/image-2022-06-08-20-50-27-712.png b/attachments/LUCENE-10605/image-2022-06-08-20-50-27-712.png
new file mode 100644
index 0000000..f79f068
Binary files /dev/null and b/attachments/LUCENE-10605/image-2022-06-08-20-50-27-712.png differ
diff --git a/attachments/LUCENE-10605/image-2022-06-08-21-24-57-674.png b/attachments/LUCENE-10605/image-2022-06-08-21-24-57-674.png
new file mode 100644
index 0000000..50396ab
Binary files /dev/null and b/attachments/LUCENE-10605/image-2022-06-08-21-24-57-674.png differ
diff --git a/attachments/LUCENE-10605/image-2022-06-09-08-25-55-289.png b/attachments/LUCENE-10605/image-2022-06-09-08-25-55-289.png
new file mode 100644
index 0000000..0d37cc9
Binary files /dev/null and b/attachments/LUCENE-10605/image-2022-06-09-08-25-55-289.png differ
diff --git a/attachments/LUCENE-10605/image-2022-06-09-08-26-36-528.png b/attachments/LUCENE-10605/image-2022-06-09-08-26-36-528.png
new file mode 100644
index 0000000..2732048
Binary files /dev/null and b/attachments/LUCENE-10605/image-2022-06-09-08-26-36-528.png differ


[lucene-jira-archive] 03/05: enable all mentions to github accounts

Posted by to...@apache.org.
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

commit 4b639c33fee1b2712dd20147c109c82c08b42998
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Thu Jun 30 23:19:28 2022 +0900

    enable all mentions to github accounts
---
 migration/src/jira2github_import.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/migration/src/jira2github_import.py b/migration/src/jira2github_import.py
index 6d71a0b..0663c28 100644
--- a/migration/src/jira2github_import.py
+++ b/migration/src/jira2github_import.py
@@ -24,8 +24,8 @@ def attachment_url(issue_num: int, filename: str, att_repo: str, att_branch: str
     return f"https://github.com/{att_repo}/blob/{att_branch}/attachments/{jira_issue_id(issue_num)}/{quote(filename)}"
 
 
-def may_markup(gh_account: str) -> bool:
-    return gh_account if gh_account in ["@mocobeta", "@dweiss"] else f"`{gh_account}`"
+#def may_markup(gh_account: str) -> bool:
+#    return gh_account if gh_account in ["@mocobeta", "@dweiss"] else f"`{gh_account}`"
 
 
 def jira_timestamp_to_github_timestamp(ts: str) -> str:
@@ -61,9 +61,9 @@ def convert_issue(num: int, dump_dir: Path, output_dir: Path, account_map: dict[
         pull_requests =extract_pull_requests(o)
 
         reporter_gh = account_map.get(reporter_name)
-        reporter = f"{reporter_dispname} ({may_markup(reporter_gh)})" if reporter_gh else f"{reporter_dispname}"
+        reporter = f"{reporter_dispname} ({reporter_gh})" if reporter_gh else f"{reporter_dispname}"
         assignee_gh = account_map.get(assignee_name)
-        assignee = f"{assignee_dispname} ({may_markup(assignee_gh)})" if assignee_gh else f"{assignee_dispname}"
+        assignee = f"{assignee_dispname} ({assignee_gh})" if assignee_gh else f"{assignee_dispname}"
 
         # make attachment list
         attachment_list_items = []
@@ -111,7 +111,7 @@ Pull Requests:
 
         def comment_author(author_name, author_dispname):
             author_gh = account_map.get(author_name)
-            return f"{author_dispname} ({may_markup(author_gh)})" if author_gh else author_dispname
+            return f"{author_dispname} ({author_gh})" if author_gh else author_dispname
         
         comments = extract_comments(o)
         comments_data = []


[lucene-jira-archive] 02/05: replace all \r\n to \n

Posted by to...@apache.org.
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

commit 4df4c4f2e7080f21b261454ffda549a4f90455b3
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Thu Jun 30 23:18:07 2022 +0900

    replace all \r\n to \n
---
 migration/src/jira_util.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/migration/src/jira_util.py b/migration/src/jira_util.py
index 8cbc86b..16c91ea 100644
--- a/migration/src/jira_util.py
+++ b/migration/src/jira_util.py
@@ -169,6 +169,7 @@ def convert_text(text: str, att_replace_map: dict[str, str] = {}) -> str:
                 res = f"[{m.group(1)}]({repl})"
         return res
 
+    text = text.replace("\r\n", "\n")
     text = jira2markdown.convert(text)
 
     # markup @ mentions with ``


[lucene-jira-archive] 01/05: update path for attachments

Posted by to...@apache.org.
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

commit 949582536cee6ec00044e0f1fa6fcd6c74edf197
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Thu Jun 30 22:52:48 2022 +0900

    update path for attachments
---
 migration/src/download_jira.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/migration/src/download_jira.py b/migration/src/download_jira.py
index be3b73d..7c3a5e7 100644
--- a/migration/src/download_jira.py
+++ b/migration/src/download_jira.py
@@ -94,7 +94,7 @@ if __name__ == "__main__":
         dump_dir.mkdir()
     assert dump_dir.exists()
 
-    att_data_dir = Path(__file__).resolve().parent.parent.joinpath(JIRA_ATTACHMENTS_DIRNAME)
+    att_data_dir = Path(__file__).resolve().parent.parent.parent.joinpath(JIRA_ATTACHMENTS_DIRNAME)
     if not att_data_dir.exists():
         att_data_dir.mkdir()
     assert att_data_dir.exists()


[lucene-jira-archive] 04/05: shorten interval between API calls

Posted by to...@apache.org.
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

commit 4b64f960a67c6c47daa7728fb416f0cc26d546f8
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Thu Jun 30 23:20:18 2022 +0900

    shorten interval between API calls
---
 migration/src/github_issues_util.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/migration/src/github_issues_util.py b/migration/src/github_issues_util.py
index 4b48a40..3bea216 100644
--- a/migration/src/github_issues_util.py
+++ b/migration/src/github_issues_util.py
@@ -6,7 +6,7 @@ import requests
 
 
 GITHUB_API_BASE = "https://api.github.com"
-INTERVAL = 2
+INTERVAL = 1
 
 
 @dataclass