Skip to content

Commit 3c8b685

Browse files
authored
Add 'none' for moderate action 'case' parameter documentation. (#8071)
1 parent 49b4627 commit 3c8b685

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

app/lib/admin/actions/moderate_package.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ Note: the action may take a longer time to complete as the public archive bucket
2222
archive files will be copied over from the (private) canonical archive bucket.
2323
''',
2424
options: {
25-
'case': 'The ModerationCase.caseId that this action is part of.',
25+
'case':
26+
'The ModerationCase.caseId that this action is part of (or `none`).',
2627
'package': 'The package name to be moderated',
2728
'state':
2829
'Set moderated state true / false. Returns current state if omitted.',

app/lib/admin/actions/moderate_package_versions.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ final moderatePackageVersion = AdminAction(
2626
Set the moderated flag on a package version (updating the flag and the timestamp).
2727
''',
2828
options: {
29-
'case': 'The ModerationCase.caseId that this action is part of.',
29+
'case':
30+
'The ModerationCase.caseId that this action is part of (or `none`).',
3031
'package': 'The package name to be moderated',
3132
'version': 'The version to be moderated',
3233
'state':

app/lib/admin/actions/moderate_publisher.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ moderated package page says it is moderated, packages owned by publisher
2020
can't be updated, administrators must not be able to update publisher options.
2121
''',
2222
options: {
23-
'case': 'The ModerationCase.caseId that this action is part of.',
23+
'case':
24+
'The ModerationCase.caseId that this action is part of (or `none`).',
2425
'publisher': 'The publisherId to be moderated',
2526
'state':
2627
'Set moderated state true / false. Returns current state if omitted.',

app/lib/admin/actions/moderate_user.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ and actions that they may be able to do will be blocked because of that.
2828
The active web sessions of the user will be expired.
2929
''',
3030
options: {
31-
'case': 'The ModerationCase.caseId that this action is part of.',
31+
'case':
32+
'The ModerationCase.caseId that this action is part of (or `none`).',
3233
'user': 'The user-id or the email of the user to be moderated',
3334
'reason': 'The reason for user moderation.',
3435
'state':

0 commit comments

Comments
 (0)