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 funding links to sidebar #2522

Merged
merged 2 commits into from Oct 6, 2020
Merged

Conversation

gjtorikian
Copy link
Contributor

Building off of rubygems/rubygems#3060 and rubygems/rubygems#3390, this adds the funding_uri information to a gem's page on rubygems.org.

test/unit/pusher_test.rb Outdated Show resolved Hide resolved
@gjtorikian gjtorikian force-pushed the funding_uri branch 2 times, most recently from cc2e5e1 to fb820c5 Compare October 2, 2020 14:21
config/locales/es.yml Outdated Show resolved Hide resolved
@@ -15,7 +15,8 @@ class RubygemSearchableTest < ActiveSupport::TestCase
number: "1.0.1",
rubygem: @rubygem,
summary: "some summary",
description: "some description")
description: "some description",
metadata: { "funding_uri" => "http://example.com" })
Copy link
Member

Choose a reason for hiding this comment

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

you will need to specify all *_uri keys in this.
sorry, this is a bit confusing, this test should have been updated when we migrated to metadata links.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I actually can't run tests locally so hopefully this works.

Copy link
Member

Choose a reason for hiding this comment

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

let us know if something is not working on dev set up, we have a docker compose file for all services deps.

"mailing_list_uri" => "http://example.com",
"bug_tracker_uri" => "http://example.com",
"funding_uri" => "http://example.com"
},
Copy link
Member

Choose a reason for hiding this comment

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

you seem to have dropped the change for which we had to update metadata.

funding_uri: "HTTP://example.com"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Didn't you just tell me not to do that? #2522 (comment)

This test makes no sense to me, I'm sorry. Are you able to just push to this branch directly? I do not know anything about legacy metadata or broken tests, I just want to show a single link on an HTML page. 😭

Copy link
Member

Choose a reason for hiding this comment

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

we are testing if metadata uri keys are indexed to ES as expected. I have added some info about the key where the assert may fail.

Also, adds test to ensure funding_uri method exists on Links.
@sonalkr132
Copy link
Member

Thank you @gjtorikian

@sonalkr132 sonalkr132 merged commit c72d05f into rubygems:master Oct 6, 2020
@sonalkr132 sonalkr132 temporarily deployed to staging October 7, 2020 05:30 Inactive
@sonalkr132 sonalkr132 temporarily deployed to production October 9, 2020 04:29 Inactive
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.

None yet

2 participants