File tree Expand file tree Collapse file tree 5 files changed +8
-3
lines changed Expand file tree Collapse file tree 5 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ or a cover letter or the web URL to a patch or a series:
154
154
155
155
Depends-on: <20240726221429.221611-1-user@example.com>
156
156
Depends-on: https://pw.example.com/project/myproject/list?series=1234
157
+ Depends-on: https://pw.example.com/project/myproject/series/1234
157
158
158
159
.. note ::
159
160
Original file line number Diff line number Diff line change @@ -1068,7 +1068,10 @@ def find_series_from_url(url):
1068
1068
logging .warning ('Failed to resolve series or patch URL: %s' , url )
1069
1069
return None
1070
1070
1071
- # TODO: Use the series detail view here.
1071
+ if result .view_name == 'series-detail' :
1072
+ return Series .objects .get (pk = result .kwargs ['series_id' ])
1073
+
1074
+ # Handles series as a patch-list view
1072
1075
if result .view_name == 'patch-list' and parse_result .query :
1073
1076
# Parse the query string.
1074
1077
# This can be replaced with something much friendlier once the
Original file line number Diff line number Diff line change 179
179
</ td >
180
180
< td id ="patch-series:{{patch.id}} ">
181
181
{% if patch.series %}
182
- < a href ="? series={{ patch.series.id} } ">
182
+ < a href ="{% url ' series-detail' series_id= patch.series.id project_id=project.linkname % } ">
183
183
{{ patch.series|truncatechars:100 }}
184
184
</ a >
185
185
{% endif %}
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ <h1>{{ submission.name }}</h1>
76
76
< tr >
77
77
< th > Series</ th >
78
78
< td >
79
- < a href ="{% url 'patch-list' project_id=project.linkname %}?series={{ submission.series.id } } ">
79
+ < a href ="{% url 'series-detail' series_id= submission.series.id project_id=project.linkname % } ">
80
80
{{ submission.series.name }}
81
81
</ a > |
82
82
< button id ="toggle-patch-series "> expand</ button >
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ features:
13
13
``Depends-on: <20240726221429.221611-1-user@example.com>``
14
14
Alternatively, the web URL of the patch or series may be given:
15
15
``Depends-on: http://patchwork.example.com/project/test/list?series=1111``
16
+ ``Depends-on: http://patchwork.example.com/project/test/series/1111``
16
17
api :
17
18
- |
18
19
The API version has been updated to v1.4.
You can’t perform that action at this time.
0 commit comments