Add `unified_context_menu` to the list of allowed abuse report entrypoints (#20099)
This commit is contained in:
Родитель
951d3c42d2
Коммит
b714e8f124
|
@ -92,6 +92,7 @@ to if necessary.
|
|||
menu Report menu in Add-ons Manager
|
||||
toolbar_context_menu Report context menu on add-on toolbar
|
||||
amo Report button on an AMO page (using ``navigator.mozAddonManager.reportAbuse``)
|
||||
unified_context_menu Report unified extensions (context) menu
|
||||
=========================== =================================================
|
||||
|
||||
.. _abuse-addon_install_method-parameter:
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
# Generated by Django 3.2.15 on 2022-12-14 13:31
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('abuse', '0007_auto_20220803_0948'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='abusereport',
|
||||
name='report_entry_point',
|
||||
field=models.PositiveSmallIntegerField(
|
||||
blank=True,
|
||||
choices=[
|
||||
(None, 'None'),
|
||||
(1, 'Uninstall'),
|
||||
(2, 'Menu'),
|
||||
(3, 'Toolbar context menu'),
|
||||
(4, 'AMO'),
|
||||
(5, 'Unified extensions context menu'),
|
||||
],
|
||||
default=None,
|
||||
null=True,
|
||||
),
|
||||
),
|
||||
]
|
|
@ -141,6 +141,7 @@ class AbuseReport(ModelBase):
|
|||
('MENU', 2, 'Menu'),
|
||||
('TOOLBAR_CONTEXT_MENU', 3, 'Toolbar context menu'),
|
||||
('AMO', 4, 'AMO'),
|
||||
('UNIFIED_CONTEXT_MENU', 5, 'Unified extensions context menu'),
|
||||
)
|
||||
STATES = Choices(
|
||||
('UNTRIAGED', 1, 'Untriaged'),
|
||||
|
|
|
@ -170,6 +170,7 @@ class TestAbuse(TestCase):
|
|||
(2, 'Menu'),
|
||||
(3, 'Toolbar context menu'),
|
||||
(4, 'AMO'),
|
||||
(5, 'Unified extensions context menu'),
|
||||
)
|
||||
assert AbuseReport.REPORT_ENTRY_POINTS.api_choices == (
|
||||
(None, None),
|
||||
|
@ -177,6 +178,7 @@ class TestAbuse(TestCase):
|
|||
(2, 'menu'),
|
||||
(3, 'toolbar_context_menu'),
|
||||
(4, 'amo'),
|
||||
(5, 'unified_context_menu'),
|
||||
)
|
||||
|
||||
def test_type(self):
|
||||
|
|
Загрузка…
Ссылка в новой задаче