Skip to content

Commit 07143fb

Browse files
committed
Expose description, homepage, documentation and repository fields on the version API
1 parent d443a8a commit 07143fb

File tree

22 files changed

+130
-6
lines changed

22 files changed

+130
-6
lines changed

src/tests/krate/publish/snapshots/crates_io__tests__krate__publish__edition__edition_is_saved-2.snap

+4
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ snapshot_kind: text
2323
"crate": "foo",
2424
"crate_size": 169,
2525
"created_at": "[datetime]",
26+
"description": "description",
2627
"dl_path": "/api/v1/crates/foo/1.0.0/download",
28+
"documentation": null,
2729
"downloads": 0,
2830
"edition": "2021",
2931
"features": {},
3032
"has_lib": false,
33+
"homepage": null,
3134
"id": "[id]",
3235
"lib_links": null,
3336
"license": "MIT",
@@ -45,6 +48,7 @@ snapshot_kind: text
4548
"url": "https://github.com/foo"
4649
},
4750
"readme_path": "/api/v1/crates/foo/1.0.0/readme",
51+
"repository": null,
4852
"rust_version": "1.0",
4953
"updated_at": "[datetime]",
5054
"yank_message": null,

src/tests/krate/publish/snapshots/crates_io__tests__krate__publish__links__crate_with_links_field-2.snap

+4
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ snapshot_kind: text
2323
"crate": "foo",
2424
"crate_size": 162,
2525
"created_at": "[datetime]",
26+
"description": "foo?!",
2627
"dl_path": "/api/v1/crates/foo/1.0.0/download",
28+
"documentation": null,
2729
"downloads": 0,
2830
"edition": null,
2931
"features": {},
3032
"has_lib": false,
33+
"homepage": null,
3134
"id": "[id]",
3235
"lib_links": "git2",
3336
"license": "MIT",
@@ -45,6 +48,7 @@ snapshot_kind: text
4548
"url": "https://github.com/foo"
4649
},
4750
"readme_path": "/api/v1/crates/foo/1.0.0/readme",
51+
"repository": null,
4852
"rust_version": null,
4953
"updated_at": "[datetime]",
5054
"yank_message": null,

src/tests/krate/publish/snapshots/crates_io__tests__krate__publish__manifest__boolean_readme-2.snap

+4
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ snapshot_kind: text
2323
"crate": "foo",
2424
"crate_size": 170,
2525
"created_at": "[datetime]",
26+
"description": "description",
2627
"dl_path": "/api/v1/crates/foo/1.0.0/download",
28+
"documentation": null,
2729
"downloads": 0,
2830
"edition": null,
2931
"features": {},
3032
"has_lib": false,
33+
"homepage": null,
3134
"id": "[id]",
3235
"lib_links": null,
3336
"license": "MIT",
@@ -45,6 +48,7 @@ snapshot_kind: text
4548
"url": "https://github.com/foo"
4649
},
4750
"readme_path": "/api/v1/crates/foo/1.0.0/readme",
51+
"repository": null,
4852
"rust_version": "1.69",
4953
"updated_at": "[datetime]",
5054
"yank_message": null,

src/tests/krate/publish/snapshots/crates_io__tests__krate__publish__manifest__lib_and_bin_crate-2.snap

+4
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ snapshot_kind: text
2626
"crate": "foo",
2727
"crate_size": 241,
2828
"created_at": "[datetime]",
29+
"description": "description",
2930
"dl_path": "/api/v1/crates/foo/1.0.0/download",
31+
"documentation": null,
3032
"downloads": 0,
3133
"edition": null,
3234
"features": {},
3335
"has_lib": true,
36+
"homepage": null,
3437
"id": "[id]",
3538
"lib_links": null,
3639
"license": "MIT",
@@ -48,6 +51,7 @@ snapshot_kind: text
4851
"url": "https://github.com/foo"
4952
},
5053
"readme_path": "/api/v1/crates/foo/1.0.0/readme",
54+
"repository": null,
5155
"rust_version": null,
5256
"updated_at": "[datetime]",
5357
"yank_message": null,

src/tests/krate/snapshots/crates_io__tests__krate__yanking__patch_version_yank_unyank-2.snap

+5-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ snapshot_kind: text
5959
"rust_version": null,
6060
"has_lib": false,
6161
"bin_names": [],
62-
"edition": null
62+
"edition": null,
63+
"description": "description",
64+
"homepage": null,
65+
"documentation": null,
66+
"repository": null
6367
}
6468
}

src/tests/krate/snapshots/crates_io__tests__krate__yanking__patch_version_yank_unyank-3.snap

+5-1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ snapshot_kind: text
7070
"rust_version": null,
7171
"has_lib": false,
7272
"bin_names": [],
73-
"edition": null
73+
"edition": null,
74+
"description": "description",
75+
"homepage": null,
76+
"documentation": null,
77+
"repository": null
7478
}
7579
}

src/tests/krate/snapshots/crates_io__tests__krate__yanking__patch_version_yank_unyank-4.snap

+5-1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ snapshot_kind: text
7070
"rust_version": null,
7171
"has_lib": false,
7272
"bin_names": [],
73-
"edition": null
73+
"edition": null,
74+
"description": "description",
75+
"homepage": null,
76+
"documentation": null,
77+
"repository": null
7478
}
7579
}

src/tests/krate/snapshots/crates_io__tests__krate__yanking__patch_version_yank_unyank-5.snap

+5-1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ snapshot_kind: text
8181
"rust_version": null,
8282
"has_lib": false,
8383
"bin_names": [],
84-
"edition": null
84+
"edition": null,
85+
"description": "description",
86+
"homepage": null,
87+
"documentation": null,
88+
"repository": null
8589
}
8690
}

src/tests/krate/snapshots/crates_io__tests__krate__yanking__patch_version_yank_unyank-6.snap

+5-1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ snapshot_kind: text
8181
"rust_version": null,
8282
"has_lib": false,
8383
"bin_names": [],
84-
"edition": null
84+
"edition": null,
85+
"description": "description",
86+
"homepage": null,
87+
"documentation": null,
88+
"repository": null
8589
}
8690
}

src/tests/krate/snapshots/crates_io__tests__krate__yanking__patch_version_yank_unyank.snap

+5-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ snapshot_kind: text
5959
"rust_version": null,
6060
"has_lib": false,
6161
"bin_names": [],
62-
"edition": null
62+
"edition": null,
63+
"description": "description",
64+
"homepage": null,
65+
"documentation": null,
66+
"repository": null
6367
}
6468
}

src/tests/routes/crates/snapshots/crates_io__tests__routes__crates__read__show.snap

+12
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,14 @@ snapshot_kind: text
5757
"crate": "foo_show",
5858
"crate_size": 0,
5959
"created_at": "[datetime]",
60+
"description": null,
6061
"dl_path": "/api/v1/crates/foo_show/1.0.0/download",
62+
"documentation": null,
6163
"downloads": 0,
6264
"edition": null,
6365
"features": {},
6466
"has_lib": null,
67+
"homepage": null,
6568
"id": 1,
6669
"lib_links": null,
6770
"license": null,
@@ -73,6 +76,7 @@ snapshot_kind: text
7376
"num": "1.0.0",
7477
"published_by": null,
7578
"readme_path": "/api/v1/crates/foo_show/1.0.0/readme",
79+
"repository": null,
7680
"rust_version": null,
7781
"updated_at": "[datetime]",
7882
"yank_message": null,
@@ -85,11 +89,14 @@ snapshot_kind: text
8589
"crate": "foo_show",
8690
"crate_size": 0,
8791
"created_at": "[datetime]",
92+
"description": null,
8893
"dl_path": "/api/v1/crates/foo_show/0.5.1/download",
94+
"documentation": null,
8995
"downloads": 0,
9096
"edition": null,
9197
"features": {},
9298
"has_lib": null,
99+
"homepage": null,
93100
"id": 3,
94101
"lib_links": null,
95102
"license": null,
@@ -107,6 +114,7 @@ snapshot_kind: text
107114
"url": "https://github.com/foo"
108115
},
109116
"readme_path": "/api/v1/crates/foo_show/0.5.1/readme",
117+
"repository": null,
110118
"rust_version": null,
111119
"updated_at": "[datetime]",
112120
"yank_message": null,
@@ -119,11 +127,14 @@ snapshot_kind: text
119127
"crate": "foo_show",
120128
"crate_size": 0,
121129
"created_at": "[datetime]",
130+
"description": null,
122131
"dl_path": "/api/v1/crates/foo_show/0.5.0/download",
132+
"documentation": null,
123133
"downloads": 0,
124134
"edition": null,
125135
"features": {},
126136
"has_lib": null,
137+
"homepage": null,
127138
"id": 2,
128139
"lib_links": null,
129140
"license": null,
@@ -141,6 +152,7 @@ snapshot_kind: text
141152
"url": "https://github.com/foo"
142153
},
143154
"readme_path": "/api/v1/crates/foo_show/0.5.0/readme",
155+
"repository": null,
144156
"rust_version": null,
145157
"updated_at": "[datetime]",
146158
"yank_message": null,

src/tests/routes/crates/snapshots/crates_io__tests__routes__crates__read__show_all_yanked.snap

+8
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,14 @@ snapshot_kind: text
5656
"crate": "foo_show",
5757
"crate_size": 0,
5858
"created_at": "[datetime]",
59+
"description": null,
5960
"dl_path": "/api/v1/crates/foo_show/1.0.0/download",
61+
"documentation": null,
6062
"downloads": 0,
6163
"edition": null,
6264
"features": {},
6365
"has_lib": null,
66+
"homepage": null,
6467
"id": 1,
6568
"lib_links": null,
6669
"license": null,
@@ -78,6 +81,7 @@ snapshot_kind: text
7881
"url": "https://github.com/foo"
7982
},
8083
"readme_path": "/api/v1/crates/foo_show/1.0.0/readme",
84+
"repository": null,
8185
"rust_version": null,
8286
"updated_at": "[datetime]",
8387
"yank_message": null,
@@ -90,11 +94,14 @@ snapshot_kind: text
9094
"crate": "foo_show",
9195
"crate_size": 0,
9296
"created_at": "[datetime]",
97+
"description": null,
9398
"dl_path": "/api/v1/crates/foo_show/0.5.0/download",
99+
"documentation": null,
94100
"downloads": 0,
95101
"edition": null,
96102
"features": {},
97103
"has_lib": null,
104+
"homepage": null,
98105
"id": 2,
99106
"lib_links": null,
100107
"license": null,
@@ -112,6 +119,7 @@ snapshot_kind: text
112119
"url": "https://github.com/foo"
113120
},
114121
"readme_path": "/api/v1/crates/foo_show/0.5.0/readme",
122+
"repository": null,
115123
"rust_version": null,
116124
"updated_at": "[datetime]",
117125
"yank_message": null,

src/tests/routes/crates/snapshots/crates_io__tests__routes__crates__reverse_dependencies__prerelease_versions_not_included_in_reverse_dependencies.snap

+4
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ snapshot_kind: text
2929
"crate": "c3",
3030
"crate_size": 0,
3131
"created_at": "[datetime]",
32+
"description": null,
3233
"dl_path": "/api/v1/crates/c3/1.0.0/download",
34+
"documentation": null,
3335
"downloads": 0,
3436
"edition": null,
3537
"features": {},
3638
"has_lib": null,
39+
"homepage": null,
3740
"id": 3,
3841
"lib_links": null,
3942
"license": null,
@@ -51,6 +54,7 @@ snapshot_kind: text
5154
"url": "https://github.com/foo"
5255
},
5356
"readme_path": "/api/v1/crates/c3/1.0.0/readme",
57+
"repository": null,
5458
"rust_version": null,
5559
"updated_at": "[datetime]",
5660
"yank_message": null,

src/tests/routes/crates/snapshots/crates_io__tests__routes__crates__reverse_dependencies__reverse_dependencies.snap

+4
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ snapshot_kind: text
2929
"crate": "c2",
3030
"crate_size": 0,
3131
"created_at": "[datetime]",
32+
"description": null,
3233
"dl_path": "/api/v1/crates/c2/1.1.0/download",
34+
"documentation": null,
3335
"downloads": 0,
3436
"edition": null,
3537
"features": {},
3638
"has_lib": null,
39+
"homepage": null,
3740
"id": 3,
3841
"lib_links": null,
3942
"license": null,
@@ -51,6 +54,7 @@ snapshot_kind: text
5154
"url": "https://github.com/foo"
5255
},
5356
"readme_path": "/api/v1/crates/c2/1.1.0/readme",
57+
"repository": null,
5458
"rust_version": null,
5559
"updated_at": "[datetime]",
5660
"yank_message": null,

src/tests/routes/crates/snapshots/crates_io__tests__routes__crates__reverse_dependencies__reverse_dependencies_includes_published_by_user_when_present.snap

+8
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,14 @@ snapshot_kind: text
4141
"crate": "c3",
4242
"crate_size": 0,
4343
"created_at": "[datetime]",
44+
"description": null,
4445
"dl_path": "/api/v1/crates/c3/3.0.0/download",
46+
"documentation": null,
4547
"downloads": 0,
4648
"edition": null,
4749
"features": {},
4850
"has_lib": null,
51+
"homepage": null,
4952
"id": 3,
5053
"lib_links": null,
5154
"license": null,
@@ -63,6 +66,7 @@ snapshot_kind: text
6366
"url": "https://github.com/foo"
6467
},
6568
"readme_path": "/api/v1/crates/c3/3.0.0/readme",
69+
"repository": null,
6670
"rust_version": null,
6771
"updated_at": "[datetime]",
6872
"yank_message": null,
@@ -75,11 +79,14 @@ snapshot_kind: text
7579
"crate": "c2",
7680
"crate_size": 0,
7781
"created_at": "[datetime]",
82+
"description": null,
7883
"dl_path": "/api/v1/crates/c2/2.0.0/download",
84+
"documentation": null,
7985
"downloads": 0,
8086
"edition": null,
8187
"features": {},
8288
"has_lib": null,
89+
"homepage": null,
8390
"id": 2,
8491
"lib_links": null,
8592
"license": null,
@@ -91,6 +98,7 @@ snapshot_kind: text
9198
"num": "2.0.0",
9299
"published_by": null,
93100
"readme_path": "/api/v1/crates/c2/2.0.0/readme",
101+
"repository": null,
94102
"rust_version": null,
95103
"updated_at": "[datetime]",
96104
"yank_message": null,

src/tests/routes/crates/snapshots/crates_io__tests__routes__crates__reverse_dependencies__reverse_dependencies_query_supports_u64_version_number_parts.snap

+4
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ snapshot_kind: text
2929
"crate": "c2",
3030
"crate_size": 0,
3131
"created_at": "[datetime]",
32+
"description": null,
3233
"dl_path": "/api/v1/crates/c2/1.0.18446744073709551615/download",
34+
"documentation": null,
3335
"downloads": 0,
3436
"edition": null,
3537
"features": {},
3638
"has_lib": null,
39+
"homepage": null,
3740
"id": 2,
3841
"lib_links": null,
3942
"license": null,
@@ -51,6 +54,7 @@ snapshot_kind: text
5154
"url": "https://github.com/foo"
5255
},
5356
"readme_path": "/api/v1/crates/c2/1.0.18446744073709551615/readme",
57+
"repository": null,
5458
"rust_version": null,
5559
"updated_at": "[datetime]",
5660
"yank_message": null,

0 commit comments

Comments
 (0)