Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: dedupe project entries in oss-directory #2603

Closed
ccerv1 opened this issue Dec 9, 2024 · 1 comment
Closed

chore: dedupe project entries in oss-directory #2603

ccerv1 opened this issue Dec 9, 2024 · 1 comment
Assignees
Labels
c:data Gathering data (e.g. indexing)

Comments

@ccerv1
Copy link
Member

ccerv1 commented Dec 9, 2024

What is it?

A few duplicates seem to have popped up in OSSD after recent bulk imports:

with cte as (
  select
    artifact_id,
    array_agg(distinct(project_name)) as projects,
    count(distinct project_name) as num_projects
  from `oso.artifacts_by_project_v1`
  where artifact_source = 'GITHUB'
  group by 1
  order by 3 desc
)
select * from cte where num_projects > 1

Here is an export from this query.

@ccerv1 ccerv1 self-assigned this Dec 9, 2024
@github-project-automation github-project-automation bot moved this to Backlog in OSO Dec 9, 2024
@ccerv1 ccerv1 added the c:data Gathering data (e.g. indexing) label Dec 9, 2024
@ccerv1
Copy link
Member Author

ccerv1 commented Dec 10, 2024

@ccerv1 ccerv1 closed this as completed Dec 10, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in OSO Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:data Gathering data (e.g. indexing)
Projects
Status: Done
Development

No branches or pull requests

1 participant