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

feat: script to count product contributions by year #10957

Merged
merged 3 commits into from
Nov 15, 2024

Conversation

stephanegigandet
Copy link
Contributor

@stephanegigandet stephanegigandet commented Oct 31, 2024

Sample output on the dev test database:

year	active_editors	new_editors	products_edited	products_added	total_products
2012	2	2	1	1	1
2013	5	4	3	2	3
2014	6	4	3	2	5
2015	7	3	6	5	10
2016	6	4	5	3	13
2017	12	7	27	21	34
2018	21	11	55	44	78
2019	26	18	74	40	118
2020	31	17	120	53	171
2021	34	21	92	40	211
2022	36	17	147	67	278
2023	55	30	117	34	312
2024	48	21	96	49	361
all	159	159	361	361	361

Output on the whole database: https://docs.google.com/spreadsheets/d/11nrerWDwzFV1gZb0i16TI_shh9C3XgddYn5KcGl4DO8/edit?gid=0#gid=0

@john-gom
Copy link
Contributor

You are aware that we can do this in off-query now as well, right?

@stephanegigandet
Copy link
Contributor Author

You are aware that we can do this in off-query now as well, right?

Hi @john-gom , right, we have all the events there now? I need to look into it. Should I just connect to the postgres db directly and query the events table?

@john-gom
Copy link
Contributor

john-gom commented Nov 4, 2024

You are aware that we can do this in off-query now as well, right?

Hi @john-gom , right, we have all the events there now? I need to look into it. Should I just connect to the postgres db directly and query the events table?

There is a view called product_updates_by_owner in the views schema. There is a viewer postgres user with a password of off

@stephanegigandet stephanegigandet enabled auto-merge (squash) November 15, 2024 09:14
Copy link

sonarcloud bot commented Nov 15, 2024

@stephanegigandet stephanegigandet merged commit ca320be into main Nov 15, 2024
14 checks passed
@stephanegigandet stephanegigandet deleted the count-contributions branch November 15, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants