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

Make birthdate optional and less precise #1397

Merged
merged 6 commits into from
Mar 18, 2024

Conversation

charmander
Copy link
Contributor

  • Reduces friction when signing up
  • Reduces amount of personal information stored by default
  • Keeps exact birthdate private in case people don’t realize that displaying their age is equivalent to displaying their birthdate, as long as the transition is recorded

We still prevent users from displaying an age that’s inconsistent with anything they’ve done with ratings, and from changing their age once set.

Copy link

codecov bot commented Mar 4, 2024

Codecov Report

Attention: Patch coverage is 67.69231% with 21 lines in your changes are missing coverage. Please review.

Project coverage is 61.11%. Comparing base (ab64dd9) to head (1def20e).

Files Patch % Lines
weasyl/profile.py 60.86% 17 Missing and 1 partial ⚠️
weasyl/login.py 60.00% 1 Missing and 1 partial ⚠️
weasyl/journal.py 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1397      +/-   ##
==========================================
+ Coverage   60.00%   61.11%   +1.11%     
==========================================
  Files          94       94              
  Lines        9111     9164      +53     
  Branches     1641     1658      +17     
==========================================
+ Hits         5467     5601     +134     
+ Misses       3208     3111      -97     
- Partials      436      452      +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@kfkitsune kfkitsune left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visually reviewed, and it mostly looks okay; however I do have a question about the Alembic migration... if we're altering if nulls are permitted in columns, doesn't that cause an issue if the downgrade needs to be run for any records where a null is present for the birthday?

(Unsure if this is actually an issue, but it's just something I observed when looking at the changeset.)

Copy link
Member

@kfkitsune kfkitsune left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@charmander
Copy link
Contributor Author

Thanks for the review, kfkitsune! I might try to add a few more tests before deploying this.

I want to line some up horizontally, and it’s more readable this way anyway. Hopefully it doesn’t break anything.
or fuzzy, as it were

- Reduces friction when signing up
- Reduces amount of personal information stored by default
- Keeps exact birthdate private in case people don’t realize that displaying their age is equivalent to displaying their birthdate, as long as the transition is recorded

We still prevent users from displaying an age that’s inconsistent with anything they’ve done with ratings, and from changing their age once set.

TODO: `asserted_adult` should be filled in for existing users just in case their birthdate is removed by site staff.
I didn’t remove it from the `request.web_input` call in the controller.
@charmander charmander merged commit 5037155 into Weasyl:main Mar 18, 2024
6 checks passed
@charmander charmander deleted the signup-no-birthdate branch March 18, 2024 04:39
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.

2 participants