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

Add 'Until' column to contributors index #303

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joshuay03
Copy link

Closes #289

QA (with synced Rails repo)

  • Ran migration successfully
  • Loaded and verified all pages
  • Verified that dc/sync works as expected with a fresh DB

Screenshot 2024-08-24 at 1 15 56 pm

@joshuay03 joshuay03 force-pushed the add-until-column-to-contributors-index branch 2 times, most recently from a30b515 to 8daf9f8 Compare August 24, 2024 05:08
@@ -5,9 +5,8 @@ def test_index
get :index
assert_response :success

assert_select 'span.listing-total', 'Showing 5 releases'
Copy link
Author

Choose a reason for hiding this comment

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

Duplicated below.

@joshuay03 joshuay03 force-pushed the add-until-column-to-contributors-index branch 2 times, most recently from 5df299d to 499e068 Compare August 24, 2024 05:27
@@ -4,34 +4,53 @@ class RepoTest < ActiveSupport::TestCase
test '#sync_ranks' do
Repo.new.send(:sync_ranks)

{jeremy: 1, david: 2, jose: 3, xavier: 3, vijay: 3}.each do |c, r|
{jeremy: 1, david: 2, jose: 2, xavier: 4, vijay: 4}.each do |c, r|
Copy link
Author

@joshuay03 joshuay03 Aug 24, 2024

Choose a reason for hiding this comment

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

This seems like a bug. Not introduced here cause it can be observed on the official site.

I think it makes more sense that if multiple contributors share a rank the next contributor should be assigned the next rank i.e. this should be:

Suggested change
{jeremy: 1, david: 2, jose: 2, xavier: 4, vijay: 4}.each do |c, r|
{jeremy: 1, david: 2, jose: 2, xavier: 3, vijay: 3}.each do |c, r|

@fxn
Copy link
Member

fxn commented Aug 24, 2024

Hey, thanks for proposing this.

I am not 100% sure I like the idea. Reason is, the spirit to this website is to give credit to people and pay tribute to them with public recognition. It is less about "data". I'd even consider dropping "Since".

Let us think about it.

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.

Suggestion | Add a Until column to the contributors index page
2 participants