-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: renamed non-inclusive language #18319
Conversation
Hey @Gilbert09! 👋 |
Can't review today but strong plus 1 |
eventDroppedCounter | ||
.labels({ | ||
event_type: 'analytics', | ||
drop_cause: 'blacklisted', | ||
drop_cause: 'disallowed', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this impact analytics that are relied on?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great question.
@tiina303 Git blame tells me you were the last around these parts of the code. Do you know whether there are any implications for changing this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooh indeed great catch, it is changing the metric label, so yes filtering for it in grafana-prod-us
would break / need updating
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good with this one. For any metrics I'd just search in the charts repo, where we have dashboards/alerts https://github.com/search?q=repo%3APostHog%2Fcharts%20blacklisted&type=code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I'm rather new with Grafana and I'm not too sure what I'm looking for in there. Considering the search in the charts repo returns nothing for me, are we all good, or are those two things not connected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes the search returns nothing (for neither repo), so we don't use the label explicitly in alerts nor dashboards.
example alerts conf: https://github.com/PostHog/charts/blob/main/config/vmalert/alerts/pipeline.yml
example dashboard conf: https://github.com/PostHog/posthog-cloud-infra/blob/fb2a10888e5c8ac2cb7c2268f1c710e38e49c9f2/terraform/modules/grafana/dashboards/webhooks.json#L1165
eventDroppedCounter | ||
.labels({ | ||
event_type: 'analytics', | ||
drop_cause: 'blacklisted', | ||
drop_cause: 'disallowed', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooh indeed great catch, it is changing the metric label, so yes filtering for it in grafana-prod-us
would break / need updating
Co-authored-by: Neil Kakkar <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with the changes, but I disagree with adding an extra tool (linter) to watch over us.
We've said over and over that process is the scar tissue of an organisation, and this is akin to adding more process because someone did something wrong in the past. We have been really good at flagging new instances of non inclusive language, so I would strongly consider removing the woke linter, fix existing issues, and trust that the current review process is good enough. It has been so far, at least in recent memory.
@mariusandra I'd challenge this and say that the current review process already isn't working considering that we have 202 cases of non-inclusive language in this one codebase - some of which was added in the last few months. I understand the idea of process being the scar tissue of an organisation, but the "process" in this scenario should be minimal. The linter won't fail and block PRs if it finds examples of the disallowed language, but instead, just annotate the code with a reminder and suggest an alternative. This can of course be ignored if need be, but I feel like this is a friendly low-maintenance way of avoiding any non-inclusive language accidentally entering the codebase. That being said, if you feel strongly against this, then I'm happy to remove the CI linter and will just keep an eye on this myself over the coming months and revisit it down the line if need be. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
IMHO "think about this when you review a PR" is more process than "add a linter and forget about it" I'd vote let's leave the linter in and if it gets in the way we can revisit it. I think the linter name is hilarious but "woke" as a term has been pretty weaponised so not everyone would agree. If there's an alternative linter with a different name I'd be tempted to say we should use that but that's not a strong suggestion |
The other argument for a linter is that English isn't everyone's first language. Forcing folk to think in their second (or third/fourth/fifth you show-offs) language and remember nuance of the changing acceptability of different terms is more work than letting the computer do it |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
Agreed with Marius that the sentiment is fine, though some of this feels just a little silly. Not being able to say "sanity check" or "dummy data" feels like this goes a little too far. No one in their right mind should be offended by these phrases, and if they do, that's quite frankly not our problem, and we shouldn't have to dance around words. I also worry about the appearance issues of having something called "woke" in the codebase as this is a huge red flag that we prioritize wokeness over just building a good product. When the two intersect, it very often leads to organizational bloat that prioritizes political correctness above everything else. And for someone like me who is here to put my head down and build a great product, it would make me think twice about joining. TL;DR: Sentiment is great, but we should carefully consider the repercussions of going too far, as there is a (much larger) swath of people who will be turned off by this more than the benefits of trying to be more gentle with our language. |
Feels like there's a common theme from the pushback here, and so to find some middle ground, I've removed the linting and reverted the changes that didn't involve the terms blacklisting/whitelisting - as these are terms we 100% shouldn't be using. For extra context, the use of both "dummy" and "sanity check" has been associated with something known as ableist language. Taken from here, this is a good summary of it:
|
.wokeignore
Outdated
.wokeignore | ||
posthog/management/sql/0050_event_partitions.sql | ||
posthog/migrations/0001_initial_squashed_0284_improved_caching_state_idx.py | ||
posthog/migrations/0160_organization_domain_whitelist.py | ||
posthog/migrations/0161_property_defs_search.py | ||
posthog/migrations/0223_organizationdomain.py | ||
*.ambr | ||
frontend/src/scenes/plugins/source/types/packages.json | ||
# External lib settings | ||
posthog/settings/web.py | ||
# External lib settings | ||
ee/settings.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm planning on keeping this in for the time being, it makes checking the code base for any future regressions much easier for me
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
I think your middle ground is good here @Gilbert09 |
Thanks for dialing down the changes to the least controversial ones. I completely agree we should stop using these two racially motivated words, so thanks for taking this on! However I would still remove the |
Thank you everyone for your feedback. Feels like we're coming to a nice middle-ground conclusion here. For what it's worth, I have strong opinions on the usage of racially motivated words, but a much weaker opinion on the extra terms. My original approach here was to use third-party software built by people who have given this problem a lot more thought than myself (e.g. @mariusandra In terms of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good for me! Thanks for keeping us accountable around these issues! 👍
Problem
whitelist
andblacklist
to describe good/bad lists of items.Changes
whitelist
in a database field, and so this requires a database migration to push through - to come later