oso icon indicating copy to clipboard operation
oso copied to clipboard

Script to add new RF4 projects/artifacts to OSO project registry

Open ccerv1 opened this issue 1 year ago • 2 comments

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

ccerv1 avatar Apr 08 '24 21:04 ccerv1

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

ryscheng avatar May 05 '24 23:05 ryscheng

Agora API endpoints: https://vote.optimism.io/api_v1

ccerv1 avatar May 07 '24 17:05 ccerv1

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

ccerv1 avatar Jun 06 '24 13:06 ccerv1

Initial transformation here for existing projects https://github.com/opensource-observer/oss-directory/pull/367

Subsequent PR with the actual run.

ryscheng avatar Jun 07 '24 01:06 ryscheng

Minor fix around trim https://github.com/opensource-observer/oss-directory/pull/368

ryscheng avatar Jun 07 '24 01:06 ryscheng

write new files and merge projects with de-dupe https://github.com/opensource-observer/oss-directory/pull/377/files

ryscheng avatar Jun 07 '24 18:06 ryscheng

Add JSON support here https://github.com/opensource-observer/oss-directory/pull/378

ryscheng avatar Jun 11 '24 20:06 ryscheng

Closing for now I thnk the script is where we need it

ryscheng avatar Jun 11 '24 21:06 ryscheng