oso icon indicating copy to clipboard operation
oso copied to clipboard

Add more eligibility checks to the RF4 dbt model

Open ryscheng opened this issue 1 year ago • 2 comments

What is it?

  • does the project have more than one contributor
  • has there been a recent commit in the last 30 days
  • have there been more than 10 days of activity in the last 90 days

ryscheng avatar May 21 '24 17:05 ryscheng

For now at least, we need to take a final version of this model and adding a field in here

ryscheng avatar May 21 '24 17:05 ryscheng

Latest thoughts from Jonas are here

Checks to consider:

  1. Enforce Eligibility criteria
  2. Check that Github repo has min number of commits (e.g. 100)
  3. Check that Github repo has min number of stars (e.g. 20)
  4. Check that Github repo is in relevant language (Solidity or Javascript)

ccerv1 avatar May 21 '24 19:05 ccerv1

Current repo checks:

repo_snapshot.commit_count >= 10
and repo_snapshot.days_with_commits_count >= 3
and repo_snapshot.first_commit_time < '2024-05-01'
and repo_snapshot.star_count >= 10
and repo_snapshot.language in ('Solidity', 'JavaScript', 'TypeScript')
and repo_snapshot.license_type != 'Unspecified'

ccerv1 avatar May 27 '24 10:05 ccerv1