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

migrate examples to openApi part 25; affects [ctan dub hexpm jira pulsar scoop] #9749

Merged
merged 1 commit into from
Dec 24, 2023

Conversation

chris48s
Copy link
Member

Refs #9285

I wonder what number the last of these PRs will be?

@chris48s chris48s added service-badge Accepted and actionable changes, features, and bugs documentation Developer and end-user documentation labels Nov 19, 2023
Copy link
Contributor

Warnings
⚠️ This PR modified service code for ctan but not its test code.
That's okay so long as it's refactoring existing code.
⚠️ This PR modified service code for dub but not its test code.
That's okay so long as it's refactoring existing code.
⚠️ This PR modified service code for hexpm but not its test code.
That's okay so long as it's refactoring existing code.
⚠️ This PR modified service code for jira but not its test code.
That's okay so long as it's refactoring existing code.
⚠️ This PR modified service code for pulsar but not its test code.
That's okay so long as it's refactoring existing code.
⚠️ This PR modified service code for scoop but not its test code.
That's okay so long as it's refactoring existing code.
Messages
📖 ✨ Thanks for your contribution to Shields, @chris48s!

Generated by 🚫 dangerJS against ce47bd5

@@ -96,52 +108,58 @@ class HexPmVersion extends BaseHexPmService {
}
}

function DownloadsForInterval(downloadInterval) {
Copy link
Member Author

Choose a reason for hiding this comment

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

There is a bit of refactoring going on here.

Previously, this service used the same pattern we see in #9732 (comment)

Previously we defined a function that returns a class, and then called that function with 'day', 'week' and 'all' to generate 3 classes. One for each interval.

I don't think this really buys us much here. I converted this to a single class with an :interval(dd|dw|dt) param. This allows us to have a single example page and show interval as a drop-down menu, which is much more in line with how we do all our other downloads badges.

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense!

@chris48s chris48s changed the title migrate some services from examples to openApi part 25; affects [ctan dub hexpm jira pulsar scoop] migrate examples to openApi part 25; affects [ctan dub hexpm jira pulsar scoop] Nov 19, 2023
Copy link
Member

@PyvesB PyvesB left a comment

Choose a reason for hiding this comment

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

Another one that looks great! 👍🏻

@chris48s chris48s added this pull request to the merge queue Dec 24, 2023
Merged via the queue into badges:master with commit 86581e6 Dec 24, 2023
25 checks passed
@chris48s chris48s deleted the 9285-part25 branch December 24, 2023 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Developer and end-user documentation service-badge Accepted and actionable changes, features, and bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants