Script to add new RF4 projects/artifacts to OSO project registry
What is it?
We need to by syncing with the Agora RF4 sign-up database and handling the following cases:
Case 0: project is already on OSO --> link Agora UID with project ID Case 1: new valid project; none of the artifacts have been claimed --> add project and artifacts to OSO Case 2: existing project, new artifact --> add artifact to project on OSO Case 3: sub-team from within a larger project --> prompt decision: either ignore (treat as Case 0) or split the parent project
I think the current plan is to just get a CSV of registrations from Agora, convert it to yaml, merge into oss-directory.
Once indexing is done, Agora will query our API and snapshot it into their own database for voting
Agora API endpoints: https://vote.optimism.io/api_v1
As discussed earlier @ryscheng - here is a link to the CSV file. You'll see there is essentially one row per artifact and columns for URL (GitHub and NPM links I believe) and also for deployer and contract
Initial transformation here for existing projects https://github.com/opensource-observer/oss-directory/pull/367
Subsequent PR with the actual run.
Minor fix around trim https://github.com/opensource-observer/oss-directory/pull/368
write new files and merge projects with de-dupe https://github.com/opensource-observer/oss-directory/pull/377/files
Add JSON support here https://github.com/opensource-observer/oss-directory/pull/378
Closing for now I thnk the script is where we need it