Closed ladissi closed 3 years ago
For the issue of the script yielding more orgs than the website shows, it's because some orgs are not yet marked as approved in the backend django admin.
Here's a screenshot of my local environment where I changed all 13 cti contributor orgs to approved. This is the same number found by the script.
I have completed testing the script logic. Here are my steps and observations:
Observed: the test org was added by the script
Observed: test org was added to the frontend as a cti contributor. 14 total
==========Script Start==========
Creating a set of organizations that have the topic tag -> topic:civictechindex
Successfully retrieved the following org -> dict_keys(['OpenOakland', 'Code for PDX', 'Hack for LA', 'Civic Tech Index', 'EnCiv', 'Code for Chapel Hill', 'Code for Tulsa', 'Yale OpenLab', 'Code for Kansas City', '100 Automations', 'BetaNYC', 'Code for Buffalo', "Hack for LA's Sandbox"])
Find civic tech organizations and update their cti_contributor column value
Find and Update Complete
==========Script End============
Observed: the test org was removed from the backend and frontend 13 total Update: the organization was not removed from the database, but only hidden because of the view filter being applied showing only CTI CONTRIBUTORS.
To answer the questions we had during the meeting:
Kevin and Levi will talk about this further in depth.
Overview
Test index contributor query code that identified which organizations are index contributors by creating a test repository and organization where we can toggle the civictechindex topic tag. Additionally verify why all results are not showing up in UI.
Action Items
Resources/Instructions