adobe / adobe/oss-contributors

enhancements suggested for the `users_companies` table

Open
#4 2 comments 0 reactions 0 assignees View on GitHub
bigquery enhancement
Dominant language
JavaScript
Stars
35
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Thanks for sharing this!

https://bigquery.cloud.google.com/table/public-github-adobe:github_archive_query_views.users_companies?pli=1&tab=details

![image](https://user-images.githubusercontent.com/4095866/53261428-da740700-3688-11e9-839d-f214b96d1513.png)

Suggestions:

- Add the field 'user_id', as people can change their nick (but not their id).
- Add the field 'crawled_at'. Account will have multiple companies through their lifetime, and this will allow you to attribute commits that happened x years ago to the right company.

With 'crawled_at' you'll have to allow multiple entries per user, and adjust queries later. For example, the easiest queries would go through a view that just gives the latest company per user.

Contributor guide

Open the contributing guide

Research direction

Start with the linked BigQuery users_companies table and inspect the related views and queries that consume it. Confirm the schema changes for user_id and crawled_at, then verify that historical company records and the latest-company view can be represented without breaking existing queries.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
data-engineering, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.