/
ReportsIndex.js
620 lines (579 loc) · 19 KB
/
ReportsIndex.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
/*
* @flow strict-local
* Copyright (C) 2018 MetaBrainz Foundation
*
* This file is part of MusicBrainz, the open internet music database,
* and is licensed under the GPL version 2, or (at your option) any
* later version: http://www.gnu.org/licenses/gpl-2.0.txt
*/
import * as React from 'react';
import Layout from '../layout';
import {
isAccountAdmin,
isRelationshipEditor,
} from '../static/scripts/common/utility/privileges';
type ReportsIndexEntryProps = {
+content: string,
+reportName: string,
};
type Props = {
+$c: CatalystContextT,
};
const ReportsIndexEntry = ({
content,
reportName,
}: ReportsIndexEntryProps): React.Element<'li'> => (
<li>
<a href={`/report/${reportName}`}>
{content}
</a>
</li>
);
const ReportsIndex = ({$c}: Props): React.Element<typeof Layout> => (
<Layout fullWidth title={l('Reports')}>
<div id="content">
<h1>{l('Reports')}</h1>
<p>
{exp.l(
`If you'd like to participate in the editing process, but do not
know where to start, the following reports should be useful. These
reports scour the database looking for data that might require
fixing, either to comply with the {style|style guidelines}, or in
other cases where administrative "clean up" tasks are required.`,
{style: '/doc/Style'},
)}
</p>
<h2>{l('Artists')}</h2>
<ul>
<ReportsIndexEntry
content={l('Artists that may be groups')}
reportName="ArtistsThatMayBeGroups"
/>
<ReportsIndexEntry
content={l('Artists that may be persons')}
reportName="ArtistsThatMayBePersons"
/>
<ReportsIndexEntry
content={l('Artists with no subscribers')}
reportName="ArtistsWithNoSubscribers"
/>
<ReportsIndexEntry
content={l('Possibly duplicate artists')}
reportName="DuplicateArtists"
/>
<ReportsIndexEntry
content={l('Artists which have collaboration relationships')}
reportName="CollaborationRelationships"
/>
<ReportsIndexEntry
content={l('Artists which look like collaborations')}
reportName="PossibleCollaborations"
/>
<ReportsIndexEntry
content={l(
'Artists containing disambiguation comments in their name',
)}
reportName="ArtistsContainingDisambiguationComments"
/>
<ReportsIndexEntry
content={l('Discogs URLs linked to multiple artists')}
reportName="DiscogsLinksWithMultipleArtists"
/>
<ReportsIndexEntry
content={l('Artists with possible duplicate relationships')}
reportName="DuplicateRelationshipsArtists"
/>
<ReportsIndexEntry
content={l(
'Artists occurring multiple times in the same artist credit',
)}
reportName="ArtistsWithMultipleOccurrencesInArtistCredits"
/>
<ReportsIndexEntry
content={l('Artists with deprecated relationships')}
reportName="DeprecatedRelationshipArtists"
/>
<ReportsIndexEntry
content={l('Artists with annotations')}
reportName="AnnotationsArtists"
/>
<ReportsIndexEntry
content={l('Artists with disambiguation the same as the name')}
reportName="ArtistsDisambiguationSameName"
/>
</ul>
<h2>{l('Artist credits')}</h2>
<ul>
<ReportsIndexEntry
content={l('Artist credits with dubious trailing join phrases')}
reportName="ArtistCreditsWithDubiousTrailingPhrases"
/>
</ul>
{isAccountAdmin($c.user) ? (
<>
<h2>{l('Editors')}</h2>
<ul>
<ReportsIndexEntry
content={l('Beginner/limited editors')}
reportName="LimitedEditors"
/>
</ul>
</>
) : null}
<h2>{l('Events')}</h2>
<ul>
<ReportsIndexEntry
content={l('Events with annotations')}
reportName="AnnotationsEvents"
/>
<ReportsIndexEntry
content={l('Possibly duplicate events')}
reportName="DuplicateEvents"
/>
<ReportsIndexEntry
content={l('Events which should be part of series or larger event')}
reportName="EventSequenceNotInSeries"
/>
</ul>
{isRelationshipEditor($c.user) ? (
<>
<h2>{l('Instruments')}</h2>
<ul>
<ReportsIndexEntry
content={l('Instruments without an image')}
reportName="InstrumentsWithoutAnImage"
/>
<ReportsIndexEntry
content={l('Instruments without a link to Wikidata')}
reportName="InstrumentsWithoutWikidata"
/>
</ul>
</>
) : null}
<h2>{l('Labels')}</h2>
<ul>
<ReportsIndexEntry
content={l('Discogs URLs linked to multiple labels')}
reportName="DiscogsLinksWithMultipleLabels"
/>
<ReportsIndexEntry
content={l('Labels with possible duplicate relationships')}
reportName="DuplicateRelationshipsLabels"
/>
<ReportsIndexEntry
content={l('Labels with deprecated relationships')}
reportName="DeprecatedRelationshipLabels"
/>
<ReportsIndexEntry
content={l('Labels with annotations')}
reportName="AnnotationsLabels"
/>
<ReportsIndexEntry
content={l('Labels with disambiguation the same as the name')}
reportName="LabelsDisambiguationSameName"
/>
</ul>
<h2>{l('Release groups')}</h2>
<ul>
<ReportsIndexEntry
content={l('Release groups that might need to be merged')}
reportName="SetInDifferentRG"
/>
<ReportsIndexEntry
content={l(
'Release groups with titles containing featuring artists',
)}
reportName="FeaturingReleaseGroups"
/>
<ReportsIndexEntry
content={l('Discogs URLs linked to multiple release groups')}
reportName="DiscogsLinksWithMultipleReleaseGroups"
/>
<ReportsIndexEntry
content={l('Release groups with possible duplicate relationships')}
reportName="DuplicateRelationshipsReleaseGroups"
/>
<ReportsIndexEntry
content={l('Release groups with deprecated relationships')}
reportName="DeprecatedRelationshipReleaseGroups"
/>
<ReportsIndexEntry
content={l('Possible duplicate release groups')}
reportName="DuplicateReleaseGroups"
/>
<ReportsIndexEntry
content={l('Release groups with annotations')}
reportName="AnnotationsReleaseGroups"
/>
<ReportsIndexEntry
content={l(
`Release groups not credited to "Various Artists"
but linked to VA`,
)}
reportName="ReleaseGroupsWithoutVACredit"
/>
<ReportsIndexEntry
content={l(
`Release groups credited to "Various Artists"
but not linked to VA`,
)}
reportName="ReleaseGroupsWithoutVALink"
/>
</ul>
<h2>{l('Releases')}</h2>
<ul>
<ReportsIndexEntry
content={l(
'Releases which might need converting to "multiple artists"',
)}
reportName="ReleasesToConvert"
/>
<ReportsIndexEntry
content={l('Releases without language')}
reportName="NoLanguage"
/>
<ReportsIndexEntry
content={l('Releases without script')}
reportName="NoScript"
/>
<ReportsIndexEntry
content={l('Releases which have unexpected Amazon URLs')}
reportName="BadAmazonURLs"
/>
<ReportsIndexEntry
content={l('Releases which have multiple ASINs')}
reportName="MultipleASINs"
/>
<ReportsIndexEntry
content={l('Releases which have multiple Discogs links')}
reportName="MultipleDiscogsLinks"
/>
<ReportsIndexEntry
content={l('Amazon URLs linked to multiple releases')}
reportName="ASINsWithMultipleReleases"
/>
<ReportsIndexEntry
content={l('Discogs URLs linked to multiple releases')}
reportName="DiscogsLinksWithMultipleReleases"
/>
<ReportsIndexEntry
content={l('Releases which have part of set relationships')}
reportName="PartOfSetRelationships"
/>
<ReportsIndexEntry
content={l('Discs entered as separate releases')}
reportName="SeparateDiscs"
/>
<ReportsIndexEntry
content={l('Tracks whose names include their sequence numbers')}
reportName="TracksNamedWithSequence"
/>
<ReportsIndexEntry
content={l('Releases with non-sequential track numbers')}
reportName="TracksWithSequenceIssues"
/>
<ReportsIndexEntry
content={l('Releases with superfluous data tracks')}
reportName="SuperfluousDataTracks"
/>
<ReportsIndexEntry
content={l('Releases with titles containing featuring artists')}
reportName="FeaturingReleases"
/>
<ReportsIndexEntry
content={l('Releases released too early')}
reportName="ReleasedTooEarly"
/>
<ReportsIndexEntry
content={l(
`Releases where some (but not all) mediums
have no format set`,
)}
reportName="SomeFormatsUnset"
/>
<ReportsIndexEntry
content={l('Releases with catalog numbers that look like ASINs')}
reportName="CatNoLooksLikeASIN"
/>
<ReportsIndexEntry
content={l('Releases with catalog numbers that look like ISRCs')}
reportName="CatNoLooksLikeISRC"
/>
<ReportsIndexEntry
content={l(
'Releases with catalog numbers that look like Label Codes',
)}
reportName="CatNoLooksLikeLabelCode"
/>
<ReportsIndexEntry
content={l(
`Translated/Transliterated Pseudo-Releases
marked as the original version`,
)}
reportName="MislinkedPseudoReleases"
/>
<ReportsIndexEntry
content={l(
`Translated/Transliterated Pseudo-Releases
not linked to an original version`,
)}
reportName="UnlinkedPseudoReleases"
/>
<ReportsIndexEntry
content={l(
`Releases that have Amazon cover art
but no Cover Art Archive front cover`,
)}
reportName="ReleasesWithAmazonCoverArt"
/>
<ReportsIndexEntry
content={l(
`Releases in the Cover Art Archive
where no cover art piece has types`,
)}
reportName="ReleasesWithCAANoTypes"
/>
<ReportsIndexEntry
content={l('Releases with mediums named after their position')}
reportName="MediumsWithOrderInTitle"
/>
<ReportsIndexEntry
content={l('Releases with non-sequential mediums')}
reportName="MediumsWithSequenceIssues"
/>
<ReportsIndexEntry
content={l('Releases with unlikely language/script pairs')}
reportName="ReleasesWithUnlikelyLanguageScript"
/>
<ReportsIndexEntry
content={l('Releases with unknown track times')}
reportName="TracksWithoutTimes"
/>
<ReportsIndexEntry
content={l('Releases with possible duplicate relationships')}
reportName="DuplicateRelationshipsReleases"
/>
<ReportsIndexEntry
content={l('Releases with a single medium that has a name')}
reportName="SingleMediumReleasesWithMediumTitles"
/>
<ReportsIndexEntry
content={l('Non-digital releases with digital relationships')}
reportName="ReleasesWithDownloadRelationships"
/>
<ReportsIndexEntry
content={l('Digital releases with mail order relationships')}
reportName="ReleasesWithMailOrderRelationships"
/>
<ReportsIndexEntry
content={l('Releases with deprecated relationships')}
reportName="DeprecatedRelationshipReleases"
/>
<ReportsIndexEntry
content={l('Releases with annotations')}
reportName="AnnotationsReleases"
/>
<ReportsIndexEntry
content={l('Releases with no mediums')}
reportName="ReleasesWithNoMediums"
/>
<ReportsIndexEntry
content={l('Releases with empty mediums')}
reportName="ReleasesWithEmptyMediums"
/>
<ReportsIndexEntry
content={l(
'Releases not credited to "Various Artists" but linked to VA',
)}
reportName="ReleasesWithoutVACredit"
/>
<ReportsIndexEntry
content={l(
'Releases credited to "Various Artists" but not linked to VA',
)}
reportName="ReleasesWithoutVALink"
/>
<ReportsIndexEntry
content={l('Releases missing disc IDs')}
reportName="ReleasesMissingDiscIDs"
/>
<ReportsIndexEntry
content={l('Releases with conflicting disc IDs')}
reportName="ReleasesConflictingDiscIDs"
/>
<ReportsIndexEntry
content={l('Releases that have disc IDs, but shouldn’t')}
reportName="ShouldNotHaveDiscIDs"
/>
<ReportsIndexEntry
content={l(
'Releases where artist name and label name are the same',
)}
reportName="ReleaseLabelSameArtist"
/>
<ReportsIndexEntry
content={l(
'Releases with a different name than their release group',
)}
reportName="ReleaseRGDifferentName"
/>
<ReportsIndexEntry
content={l(
'Releases with the same barcode in different release groups',
)}
reportName="ReleasesSameBarcode"
/>
</ul>
<h2>{l('Recordings')}</h2>
<ul>
<ReportsIndexEntry
content={l('Recordings with earliest release relationships')}
reportName="RecordingsWithEarliestReleaseRelationships"
/>
<ReportsIndexEntry
content={l('Recordings with titles containing featuring artists')}
reportName="FeaturingRecordings"
/>
<ReportsIndexEntry
content={l('Recordings with possible duplicate relationships')}
reportName="DuplicateRelationshipsRecordings"
/>
<ReportsIndexEntry
content={l('Recordings with varying track times')}
reportName="RecordingsWithVaryingTrackLengths"
/>
<ReportsIndexEntry
content={l('Recordings with deprecated relationships')}
reportName="DeprecatedRelationshipRecordings"
/>
<ReportsIndexEntry
content={l('Recordings with annotations')}
reportName="AnnotationsRecordings"
/>
<ReportsIndexEntry
content={l(
`Recordings not credited to "Various Artists"
but linked to VA`,
)}
reportName="RecordingsWithoutVACredit"
/>
<ReportsIndexEntry
content={l(
`Recordings credited to "Various Artists"
but not linked to VA`,
)}
reportName="RecordingsWithoutVALink"
/>
{/*
* MBS-10843: This report has been disabled since the upgrade
* to PG 12, because its query can no longer execute in under
* 5 minutes in production.
*
* <ReportsIndexEntry
* content={l(
* `Recordings with the same name
* by different artists with the same name`,
* )}
* reportName="RecordingsSameNameDifferentArtistsSameName"
* />
*/}
<ReportsIndexEntry
content={l(
'Recordings with a different name than their only track',
)}
reportName="RecordingTrackDifferentName"
/>
<ReportsIndexEntry
content={l('Recordings with dates in the future')}
reportName="RecordingsWithFutureDates"
/>
<ReportsIndexEntry
content={l('Video recordings in non-video mediums')}
reportName="VideosInNonVideoMediums"
/>
</ul>
<h2>{l('Places')}</h2>
<ul>
<ReportsIndexEntry
content={l('Places with deprecated relationships')}
reportName="DeprecatedRelationshipPlaces"
/>
<ReportsIndexEntry
content={l('Places with annotations')}
reportName="AnnotationsPlaces"
/>
<ReportsIndexEntry
content={l('Places without coordinates')}
reportName="PlacesWithoutCoordinates"
/>
</ul>
<h2>{l('Series')}</h2>
<ul>
<ReportsIndexEntry
content={l('Series with annotations')}
reportName="AnnotationsSeries"
/>
</ul>
<h2>{l('Works')}</h2>
<ul>
<ReportsIndexEntry
content={l('Works with possible duplicate relationships')}
reportName="DuplicateRelationshipsWorks"
/>
<ReportsIndexEntry
content={l('Works with deprecated relationships')}
reportName="DeprecatedRelationshipWorks"
/>
<ReportsIndexEntry
content={l('Works with annotations')}
reportName="AnnotationsWorks"
/>
<ReportsIndexEntry
content={l('Works with the same type as their parent')}
reportName="WorkSameTypeAsParent"
/>
</ul>
<h2>{l('URLs')}</h2>
<ul>
<ReportsIndexEntry
content={l('URLs with deprecated relationships')}
reportName="DeprecatedRelationshipURLs"
/>
<ReportsIndexEntry
content={l('URLs linked to multiple entities')}
reportName="LinksWithMultipleEntities"
/>
<ReportsIndexEntry
content={l('Wikidata URLs linked to multiple entities')}
reportName="WikidataLinksWithMultipleEntities"
/>
</ul>
<h2>{l('ISRCs')}</h2>
<ul>
<ReportsIndexEntry
content={l('ISRCs with multiple recordings')}
reportName="ISRCsWithManyRecordings"
/>
</ul>
<h2>{l('ISWCs')}</h2>
<ul>
<ReportsIndexEntry
content={l('ISWCs with multiple works')}
reportName="ISWCsWithManyWorks"
/>
</ul>
<h2>{l('Disc IDs')}</h2>
<ul>
<ReportsIndexEntry
content={l('Disc IDs with dubious duration')}
reportName="CDTOCDubiousLength"
/>
<ReportsIndexEntry
content={l('Disc IDs attached but not applied')}
reportName="CDTOCNotApplied"
/>
</ul>
</div>
</Layout>
);
export default ReportsIndex;