Skip to content

Fix company attribution when the Sponsor company field contains a tem… - #249

Merged
kpodemski merged 1 commit into
masterfrom
fix-calculations
Sep 17, 2026
Merged

kpodemski merged 1 commit into
masterfrom
fix-calculations

Conversation

@kpodemski

@kpodemski kpodemski commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

extractCompany() checks the "Sponsor company" field before the employee time frames. Placeholder values such as ~, -, / or the default template text are aliases of "Open Source Community", so PRs from company employees who left the placeholder in are attributed to the community and the employee lookup never runs.

For PRs merged in 2025 this misattributes roughly 288 PrestaShop PRs to the community, so the dashboard shows PrestaShop at 56.8% of merged PRs instead of about 69.9%.

This change treats a sponsor value resolving to "Open Source Community" as "no sponsor declared" and falls back to the author's employment time frames. Explicit sponsor companies still take precedence, and unknown sponsor values keep their current behaviour.

Examples

Author Sponsor field PRs misattributed
jolelievre ~ 205
M0rgan01 - 67
Quetzacoalt91 / 11

Here are some of @jolelievre 2025 PRs where the Sponsor company field is ~, all of which the dashboard counts as community:

Merged PR Title
2025-02-28 [PrestaShop#38169](PrestaShop/PrestaShop#38169) Add setup log export action
2025-02-24 [PrestaShop#38111](PrestaShop/PrestaShop#38111) Refactor Discount creation domain services and allow creation without...
2025-02-06 [PrestaShop#37980](PrestaShop/PrestaShop#37980) Tests UI stabilization: order creation
2025-02-20 [autoupgrade#1177](PrestaShop/autoupgrade#1177) Update carrier feature flag stability
2025-02-25 [docker#414](PrestaShop/docker#414) Improve distribution parsing, and fix folder and tag check for publication
2025-02-24 [SeamlessUpgradeToolbox#24](PrestaShop/SeamlessUpgradeToolbox#24) Add more details in autoupgrade Readme
2025-02-28 [ga.tests.ui.pr#87](PrestaShop/ga.tests.ui.pr#87) Check if file exists for setup log export instead of checking the branch
2025-02-05 [ui-testing-library#391](PrestaShop/ui-testing-library#391) Wait for ajax call to end when adding a product in order creation

In total, 204 of his 2025 PRs have ~, plus one with the untouched template text.

The first one, PrestaShop#38169, makes the clearest example for the PR description: it's core work in the main repo by a long-standing PrestaShop employee, and the dashboard attributes it to the community only because of that ~.

@github-project-automation github-project-automation Bot moved this to Ready for review in PR Dashboard Sep 17, 2026
@jolelievre

Copy link
Copy Markdown
Contributor

That makes sense

@ps-jarvis ps-jarvis moved this from Ready for review to To be tested in PR Dashboard Sep 17, 2026
@kpodemski
kpodemski merged commit e068753 into master Sep 17, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from To be tested to Merged in PR Dashboard Sep 17, 2026
@Progi1984
Progi1984 deleted the fix-calculations branch September 17, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

4 participants