Skip to content

Commit f578c79

Browse files
committed
Modify time series issue analysis to 2yr window.
1 parent 61d84fc commit f578c79

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

query_examples/issue_activity_since_date.gql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
repository(owner: "_REPO_OWNER_", name: "_REPO_NAME_") {
3-
issues(first: 100, filterBy: {since: "2022-01-01T00:00:00Z"}) {
3+
issues(first: 100, filterBy: {since: "2020-01-01T00:00:00Z"}) {
44
totalCount
55
edges {
66
cursor

site/numpy_issues.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ A snapshot of the development on the NumPy project in the past month
5151
%than specified manually
5252

5353
```{code-cell} ipython3
54-
query_date = np.datetime64("2022-01-01 00:00:00")
54+
query_date = np.datetime64("2020-01-01 00:00:00")
5555
5656
# Load data
5757
with open("../_data/issues.json", "r") as fh:
@@ -139,7 +139,12 @@ first_commenters = []
139139
for iss in newly_created_day_old:
140140
for e in iss["timelineItems"]["edges"]:
141141
if e["node"]["__typename"] == "IssueComment":
142-
first_commenters.append(e["node"]["author"]["login"])
142+
try:
143+
user = e["node"]["author"]["login"]
144+
except TypeError as err:
145+
# This can happen e.g. when a user deletes their GH acct
146+
user = "UNKNOWN"
147+
first_commenters.append(user)
143148
break # Only want the first commenter
144149
145150
# TODO: Update IssueComment query to include:

0 commit comments

Comments
 (0)