Skip to content

Commit 0f808ae

Browse files
authored
streamline organization application review (#17886)
* don't require typed confirmation for defer/requestmoreinfo * make the requestmoreinfo box a bit larger by default * refactor admin organization-application tests * implement "Turbo Mode" for organization application reviews * add a helper to dump in a common template * add a copy-helper in approve/decline modal * add link checking via camo to the application detail page * add some demo organization applications * hide the text for the request more info template
1 parent 47f3bd4 commit 0f808ae

File tree

6 files changed

+436
-291
lines changed

6 files changed

+436
-291
lines changed

dev/db/post-migrations.sql

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,14 @@ INSERT INTO provenance (file_id, provenance)
7373
FROM release_files
7474
WHERE release_id = (SELECT id FROM releases WHERE project_id = '4587cc12-e342-4880-9f61-ea4990fb81ea' AND version = '1.2.0')
7575
AND packagetype = 'bdist_wheel';
76+
77+
--- Enable orgs and add some organization applications
78+
UPDATE admin_flags SET enabled=False WHERE id='disable-organizations';
79+
INSERT INTO public.organization_applications (id, name, display_name, orgtype, link_url, description, submitted_by_id, submitted, organization_id, status, updated) VALUES ('90f2c700-b53f-4f98-8756-ebc3b8e907b9', 'di-labs', 'Labratories of di', 'Company', 'https://di.codes/labs', 'We''re doing something over here.', 'f90a82e1-1a1a-45cd-a1ca-53a033d0f867', '2025-04-01 12:03:21.926525', NULL, 'submitted', NULL);
80+
INSERT INTO public.organization_applications (id, name, display_name, orgtype, link_url, description, submitted_by_id, submitted, organization_id, status, updated) VALUES ('fbd5ea4d-82e8-453c-bfeb-87fdc72f9033', 'pypi', 'Python Package Index', 'Community', 'https://pypi.org/', 'We deal in cheese and cheese accessories.', 'f90a82e1-1a1a-45cd-a1ca-53a033d0f867', '2025-04-01 12:03:47.265457', NULL, 'submitted', NULL);
81+
INSERT INTO public.organization_applications (id, name, display_name, orgtype, link_url, description, submitted_by_id, submitted, organization_id, status, updated) VALUES ('cada6da2-1721-4a50-85e6-07a082d5d60f', 'widget-inc', 'Widgets Galore', 'Company', 'https://widgets.example.com/', 'Global conglomerate creating the most useful widgets.', 'd26ebd95-4d49-4534-ae6e-69b3bce9721c', '2025-04-01 12:05:37.574743', NULL, 'submitted', NULL);
82+
INSERT INTO public.organization_applications (id, name, display_name, orgtype, link_url, description, submitted_by_id, submitted, organization_id, status, updated) VALUES ('b41ffac5-b109-40e3-80c3-25511ff6639a', 'wftda', 'Women''s Flat Track Derby Association', 'Community', 'https://wftda.com', 'International governing body for the sport of women''s flat track roller derby.', 'd26ebd95-4d49-4534-ae6e-69b3bce9721c', '2025-04-01 12:06:57.091198', NULL, 'submitted', NULL);
83+
INSERT INTO public.organization_applications (id, name, display_name, orgtype, link_url, description, submitted_by_id, submitted, organization_id, status, updated) VALUES ('541ccd87-809e-43f2-9b09-4b7e4151abea', 'pypa', 'Python Packaging Authority', 'Community', 'https://pypa.io/', 'The Python Packaging Authority (PyPA) is a working group that maintains a core set of software projects used in Python packaging.', 'd8f60fd2-79a7-47a6-82a2-fdbd12af2cab', '2025-04-01 12:07:56.743806', NULL, 'submitted', NULL);
84+
INSERT INTO public.organization_applications (id, name, display_name, orgtype, link_url, description, submitted_by_id, submitted, organization_id, status, updated) VALUES ('1ba048e8-61f5-43cc-a336-33ad4a1962d2', 'tffutsd', 'tffutsD dlanoD', 'Company', 'https://oi.damerac', 'Hello', 'd8f60fd2-79a7-47a6-82a2-fdbd12af2cab', '2025-04-01 12:10:00.121531', NULL, 'submitted', NULL);
85+
INSERT INTO public.organization_applications (id, name, display_name, orgtype, link_url, description, submitted_by_id, submitted, organization_id, status, updated) VALUES ('c0b0337b-f7c4-4fdb-b559-0091c5472516', 'psf', 'Python Software Foundation', 'Community', 'https://python.org/psf/', 'The Python Software Foundation is an organization devoted to advancing open source technology related to the Python programming language.', '70713e05-0f9c-4f30-8899-3c4e8d55e77c', '2025-04-01 12:10:38.960408', NULL, 'submitted', NULL);
86+
INSERT INTO public.organization_applications (id, name, display_name, orgtype, link_url, description, submitted_by_id, submitted, organization_id, status, updated) VALUES ('f4b8c4dc-c716-441b-9a2a-eea9c0813782', 'cabotage', 'Cabotage', 'Company', 'https://cabotage.io', 'Cabotage deploys PyPI and other things.', '70713e05-0f9c-4f30-8899-3c4e8d55e77c', '2025-04-01 12:10:58.078384', NULL, 'submitted', NULL);

0 commit comments

Comments
 (0)