Oriel — AI & technology worth noticing, every day.

I Don’t Write Ruby. A Fix I Sent Is Now in Forem.

Post · https://dev.to/dannwaneri/i-dont-write-ruby-a-fix-i-sent-is-now-in-forem-13c5

On Oct 22, I read the word "Merged" twice. It was my first contribution to Forem (the platform that...

First seen by Oriel on .

AI summary

A developer used an AI coding assistant to make a first Ruby contribution to Forem, fixing an incorrect dashboard Posts count after a 12-week review process.

  • The badge used `articles_count`, which included statuses and archived posts excluded from the Posts tab, causing its displayed total to be too high.
  • The fix introduced `posts_count_for(user)` using `from_subforem.full_posts.where(archived: false).count` and applied it to desktop, mobile, and AJAX sidebar views.
  • Regression tests covered `#show` and `#sidebar`, verifying that one full post, one status, and one archived post produce a count of one.
  • Without a local Ruby/Postgres environment, the author relied on Forem CI; an initial test failure was corrected, while human review caught an unnecessary line CI missed.
  • The author recommends choosing unassigned contribution-ready bugs, verifying reports, signing the CLA, adding tests, disclosing local testing limitations, and expecting potentially long reviews.

#ruby on rails #open source #ai coding assistants #software testing

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Reactions

Total public reactions reported by the source; distinct from points and likes.

  • DEV Community: 28, latest observation ; +10 over observed period since

Comments

Comment count reported by the source.

  • DEV Community: 15, latest observation ; +7 over observed period since

Aliases

SourceExternal IDURL
DEV Community4911064https://dev.to/dannwaneri/i-dont-write-ruby-a-fix-i-sent-is-now-in-forem-13c5 Read discussion