Spaces:
Sleeping
Sleeping
nataliaElv
commited on
Commit
Β·
0b2c5d2
1
Parent(s):
512869d
Latest updates and stale issues
Browse files- app.py +41 -8
- issues.json +46 -12
- requirements.txt +3 -1
app.py
CHANGED
@@ -4,6 +4,7 @@ from github import Github
|
|
4 |
from wordcloud import WordCloud
|
5 |
import matplotlib.pyplot as plt
|
6 |
import re
|
|
|
7 |
|
8 |
g = Github(st.secrets["ACCESS_TOKEN"])
|
9 |
repo = g.get_repo(st.secrets["REPO_NAME"])
|
@@ -43,6 +44,9 @@ except:
|
|
43 |
df = fetch_data()
|
44 |
save_data(df)
|
45 |
|
|
|
|
|
|
|
46 |
# Section 1: Issue activity metrics
|
47 |
st.header("Issue activity metrics")
|
48 |
|
@@ -66,24 +70,53 @@ with col3:
|
|
66 |
|
67 |
# TODO Plot: number of open vs closed issues by date
|
68 |
|
69 |
-
|
70 |
-
|
71 |
-
bug_issues =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
st.dataframe(
|
73 |
-
|
74 |
hide_index=True,
|
|
|
75 |
column_config={
|
76 |
"Issue": st.column_config.TextColumn("Issue", width=400),
|
77 |
-
"
|
78 |
-
"Created at": st.column_config.DatetimeColumn("Created at"),
|
79 |
"URL": st.column_config.LinkColumn("π", display_text="π")
|
80 |
}
|
81 |
)
|
82 |
|
83 |
-
st.subheader("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
st.dataframe(
|
85 |
-
|
86 |
hide_index=True,
|
|
|
87 |
column_config={
|
88 |
"Issue": st.column_config.TextColumn("Issue", width=400),
|
89 |
"Last update": st.column_config.DatetimeColumn("Last update"),
|
|
|
4 |
from wordcloud import WordCloud
|
5 |
import matplotlib.pyplot as plt
|
6 |
import re
|
7 |
+
import datetime
|
8 |
|
9 |
g = Github(st.secrets["ACCESS_TOKEN"])
|
10 |
repo = g.get_repo(st.secrets["REPO_NAME"])
|
|
|
44 |
df = fetch_data()
|
45 |
save_data(df)
|
46 |
|
47 |
+
today = datetime.date.today()
|
48 |
+
one_month_ago = today - datetime.timedelta(days=30)
|
49 |
+
|
50 |
# Section 1: Issue activity metrics
|
51 |
st.header("Issue activity metrics")
|
52 |
|
|
|
70 |
|
71 |
# TODO Plot: number of open vs closed issues by date
|
72 |
|
73 |
+
|
74 |
+
# st.subheader("Latest bugs π")
|
75 |
+
# bug_issues = open_issues[open_issues["Labels"].apply(lambda labels: "type: bug" in labels)]
|
76 |
+
# bug_issues = bug_issues[["Issue","Labels","Created at","URL"]]
|
77 |
+
# st.dataframe(
|
78 |
+
# bug_issues.sort_values(by="Created at", ascending=False),
|
79 |
+
# hide_index=True,
|
80 |
+
# column_config={
|
81 |
+
# "Issue": st.column_config.TextColumn("Issue", width=400),
|
82 |
+
# "Labels": st.column_config.TextColumn("Labels"),
|
83 |
+
# "Created at": st.column_config.DatetimeColumn("Created at"),
|
84 |
+
# "URL": st.column_config.LinkColumn("π", display_text="π")
|
85 |
+
# }
|
86 |
+
# )
|
87 |
+
|
88 |
+
st.subheader("Latest updates π")
|
89 |
+
col1, col2 = st.columns(2)
|
90 |
+
with col1:
|
91 |
+
last_update_date = st.date_input("Last updated after:", value=one_month_ago, format="DD-MM-YYYY")
|
92 |
+
last_update_date = datetime.datetime.combine(last_update_date, datetime.datetime.min.time()) # Convert to datetime object
|
93 |
+
with col2:
|
94 |
+
updated_issues = open_issues[open_issues["Last update"] > last_update_date]
|
95 |
+
st.metric("Results:", updated_issues.shape[0])
|
96 |
+
|
97 |
st.dataframe(
|
98 |
+
updated_issues[["Issue","Labels", "Last update","URL"]].sort_values(by="Last update", ascending=False),
|
99 |
hide_index=True,
|
100 |
+
use_container_width=True,
|
101 |
column_config={
|
102 |
"Issue": st.column_config.TextColumn("Issue", width=400),
|
103 |
+
"Last update": st.column_config.DatetimeColumn("Last update"),
|
|
|
104 |
"URL": st.column_config.LinkColumn("π", display_text="π")
|
105 |
}
|
106 |
)
|
107 |
|
108 |
+
st.subheader("Stale issues? πΈοΈ")
|
109 |
+
col1, col2 = st.columns(2)
|
110 |
+
with col1:
|
111 |
+
not_updated_since = st.date_input("Not updated since:", value=one_month_ago, format="DD-MM-YYYY")
|
112 |
+
not_updated_since = datetime.datetime.combine(not_updated_since, datetime.datetime.min.time()) # Convert to datetime object
|
113 |
+
with col2:
|
114 |
+
stale_issues = open_issues[open_issues["Last update"] < not_updated_since]
|
115 |
+
st.metric("Results:", stale_issues.shape[0])
|
116 |
st.dataframe(
|
117 |
+
stale_issues[["Issue","Labels", "Last update","URL"]].sort_values(by="Last update", ascending=True),
|
118 |
hide_index=True,
|
119 |
+
use_container_width=True,
|
120 |
column_config={
|
121 |
"Issue": st.column_config.TextColumn("Issue", width=400),
|
122 |
"Last update": st.column_config.DatetimeColumn("Last update"),
|
issues.json
CHANGED
@@ -1,10 +1,44 @@
|
|
1 |
[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
{
|
3 |
"Issue":"4622 - \ud83d\ude80 feat\/span questions",
|
4 |
"State":"open",
|
5 |
"Created at":1709553820000,
|
6 |
"Closed at":null,
|
7 |
-
"Last update":
|
8 |
"Labels":[
|
9 |
"type: enhancement",
|
10 |
"area: ui",
|
@@ -54,7 +88,7 @@
|
|
54 |
"State":"open",
|
55 |
"Created at":1709289037000,
|
56 |
"Closed at":null,
|
57 |
-
"Last update":
|
58 |
"Labels":[
|
59 |
|
60 |
],
|
@@ -81,10 +115,10 @@
|
|
81 |
},
|
82 |
{
|
83 |
"Issue":"4617 - feat: create span question from SDK",
|
84 |
-
"State":"
|
85 |
"Created at":1709219382000,
|
86 |
-
"Closed at":
|
87 |
-
"Last update":
|
88 |
"Labels":[
|
89 |
"type: enhancement",
|
90 |
"language: python",
|
@@ -120,7 +154,7 @@
|
|
120 |
"State":"open",
|
121 |
"Created at":1709198452000,
|
122 |
"Closed at":null,
|
123 |
-
"Last update":
|
124 |
"Labels":[
|
125 |
"type: enhancement",
|
126 |
"area: server",
|
@@ -239,7 +273,7 @@
|
|
239 |
"State":"open",
|
240 |
"Created at":1709048479000,
|
241 |
"Closed at":null,
|
242 |
-
"Last update":
|
243 |
"Labels":[
|
244 |
"type: enhancement",
|
245 |
"area: ui",
|
@@ -1566,7 +1600,7 @@
|
|
1566 |
"State":"open",
|
1567 |
"Created at":1706028231000,
|
1568 |
"Closed at":null,
|
1569 |
-
"Last update":
|
1570 |
"Labels":[
|
1571 |
"type: bug",
|
1572 |
"area: ui",
|
@@ -1967,7 +2001,7 @@
|
|
1967 |
"State":"open",
|
1968 |
"Created at":1705502687000,
|
1969 |
"Closed at":null,
|
1970 |
-
"Last update":
|
1971 |
"Labels":[
|
1972 |
"area: ui",
|
1973 |
"language: javascript",
|
@@ -4250,10 +4284,10 @@
|
|
4250 |
},
|
4251 |
{
|
4252 |
"Issue":"4366 - [FEATURE] Allow to change the order of labels once the dataset is created",
|
4253 |
-
"State":"
|
4254 |
"Created at":1701354498000,
|
4255 |
-
"Closed at":
|
4256 |
-
"Last update":
|
4257 |
"Labels":[
|
4258 |
"type: enhancement",
|
4259 |
"area: ui",
|
|
|
1 |
[
|
2 |
+
{
|
3 |
+
"Issue":"4624 - [FEATURE] Change password",
|
4 |
+
"State":"open",
|
5 |
+
"Created at":1709631406000,
|
6 |
+
"Closed at":null,
|
7 |
+
"Last update":1709631535000,
|
8 |
+
"Labels":[
|
9 |
+
"type: enhancement",
|
10 |
+
"area: api",
|
11 |
+
"team: backend",
|
12 |
+
"severity: major"
|
13 |
+
],
|
14 |
+
"Reactions":0,
|
15 |
+
"Comments":0,
|
16 |
+
"URL":"https:\/\/github.com\/argilla-io\/argilla\/issues\/4624"
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"Issue":"4623 - [WIP] feat: create responses with spans",
|
20 |
+
"State":"open",
|
21 |
+
"Created at":1709573265000,
|
22 |
+
"Closed at":null,
|
23 |
+
"Last update":1709574194000,
|
24 |
+
"Labels":[
|
25 |
+
"type: enhancement",
|
26 |
+
"language: python",
|
27 |
+
"team: backend",
|
28 |
+
"area: python sdk",
|
29 |
+
"size:L",
|
30 |
+
"severity: minor"
|
31 |
+
],
|
32 |
+
"Reactions":0,
|
33 |
+
"Comments":1,
|
34 |
+
"URL":"https:\/\/github.com\/argilla-io\/argilla\/pull\/4623"
|
35 |
+
},
|
36 |
{
|
37 |
"Issue":"4622 - \ud83d\ude80 feat\/span questions",
|
38 |
"State":"open",
|
39 |
"Created at":1709553820000,
|
40 |
"Closed at":null,
|
41 |
+
"Last update":1709572875000,
|
42 |
"Labels":[
|
43 |
"type: enhancement",
|
44 |
"area: ui",
|
|
|
88 |
"State":"open",
|
89 |
"Created at":1709289037000,
|
90 |
"Closed at":null,
|
91 |
+
"Last update":1709573511000,
|
92 |
"Labels":[
|
93 |
|
94 |
],
|
|
|
115 |
},
|
116 |
{
|
117 |
"Issue":"4617 - feat: create span question from SDK",
|
118 |
+
"State":"closed",
|
119 |
"Created at":1709219382000,
|
120 |
+
"Closed at":1709573510000,
|
121 |
+
"Last update":1709573512000,
|
122 |
"Labels":[
|
123 |
"type: enhancement",
|
124 |
"language: python",
|
|
|
154 |
"State":"open",
|
155 |
"Created at":1709198452000,
|
156 |
"Closed at":null,
|
157 |
+
"Last update":1709634240000,
|
158 |
"Labels":[
|
159 |
"type: enhancement",
|
160 |
"area: server",
|
|
|
273 |
"State":"open",
|
274 |
"Created at":1709048479000,
|
275 |
"Closed at":null,
|
276 |
+
"Last update":1709633838000,
|
277 |
"Labels":[
|
278 |
"type: enhancement",
|
279 |
"area: ui",
|
|
|
1600 |
"State":"open",
|
1601 |
"Created at":1706028231000,
|
1602 |
"Closed at":null,
|
1603 |
+
"Last update":1709633815000,
|
1604 |
"Labels":[
|
1605 |
"type: bug",
|
1606 |
"area: ui",
|
|
|
2001 |
"State":"open",
|
2002 |
"Created at":1705502687000,
|
2003 |
"Closed at":null,
|
2004 |
+
"Last update":1709633870000,
|
2005 |
"Labels":[
|
2006 |
"area: ui",
|
2007 |
"language: javascript",
|
|
|
4284 |
},
|
4285 |
{
|
4286 |
"Issue":"4366 - [FEATURE] Allow to change the order of labels once the dataset is created",
|
4287 |
+
"State":"closed",
|
4288 |
"Created at":1701354498000,
|
4289 |
+
"Closed at":1709633898000,
|
4290 |
+
"Last update":1709633899000,
|
4291 |
"Labels":[
|
4292 |
"type: enhancement",
|
4293 |
"area: ui",
|
requirements.txt
CHANGED
@@ -2,4 +2,6 @@ pandas
|
|
2 |
pygithub
|
3 |
datetime
|
4 |
wordcloud
|
5 |
-
matplotlib
|
|
|
|
|
|
2 |
pygithub
|
3 |
datetime
|
4 |
wordcloud
|
5 |
+
matplotlib
|
6 |
+
re
|
7 |
+
datetime
|