Skip to content

Remove obsolete user created_at guard - #6862

Open
colby-swandale wants to merge 1 commit into
masterfrom
colby/remove-user-created-at-guard
Open

colby-swandale wants to merge 1 commit into
masterfrom
colby/remove-user-created-at-guard

Conversation

@colby-swandale

@colby-swandale colby-swandale commented Sep 21, 2026

Copy link
Copy Markdown
Member

Summary

  • restore User#log_actor_attributes to require created_at when calculating account age
  • remove the incident-specific test for omitting account age when created_at is missing
  • rely on the preceding backfill to populate timestamps for active and soft-deleted users

Stacked on #6861, which must be deployed and its maintenance task completed before this change is deployed.

Testing

  • bin/rubocop --format simple --force-exclusion -- app/models/user.rb test/models/user_test.rb
  • bin/rails test test/tasks/maintenance/backfill_user_created_at_task_test.rb
  • bin/rails test test/integration/request_log_payload_test.rb:116
  • bin/rails test test/models/user_test.rb

Co-authored-by: Amp amp@ampcode.com


Stack created with GitHub Stacks CLIGive Feedback 💬

@colby-swandale
colby-swandale added this pull request to stack #6863 September 21, 2026 06:20
@codecov

codecov Bot commented Sep 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.84%. Comparing base (e65eab2) to head (fbd3505).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6862      +/-   ##
==========================================
- Coverage   97.84%   97.84%   -0.01%     
==========================================
  Files         538      538              
  Lines       11947    11945       -2     
==========================================
- Hits        11689    11687       -2     
  Misses        258      258              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jenshenny jenshenny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the cleanup!

Base automatically changed from colby/backfill-user-created-at to master September 21, 2026 21:07
Co-authored-by: Amp <amp@ampcode.com>
@colby-swandale
colby-swandale force-pushed the colby/remove-user-created-at-guard branch from 8d48aa1 to fbd3505 Compare September 21, 2026 21:07
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