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

Rewrite [npm] typedefs badge using new-style service #1735

Merged
merged 11 commits into from
Jun 16, 2018
Merged

Rewrite [npm] typedefs badge using new-style service #1735

merged 11 commits into from
Jun 16, 2018

Conversation

paulmelnikow
Copy link
Member

For #1358! Reviving some work from a few months back…

# Conflicts:
#	services/base.js
# Conflicts:
#	lib/error-helper.js
#	package.json
#	server.js
#	services/appveyor/appveyor.js
#	services/base.js
#	services/errors.js
@paulmelnikow paulmelnikow added the service-badge New or updated service badge label Jun 16, 2018
@shields-ci
Copy link

shields-ci commented Jun 16, 2018

Warnings
⚠️

This PR modified the server but none of the service tests. That's okay so long as it's refactoring existing code.

⚠️

This PR modified services/npm/npm.js but not services/npm/npm.tester.js. That's okay so long as it's refactoring existing code.

Messages
📖

✨ Thanks for your contribution to Shields, @paulmelnikow!

📖

Thanks for contributing to our documentation. We ❤️ our documentarians!

Generated by 🚫 dangerJS

Copy link
Member

@chris48s chris48s left a comment

Choose a reason for hiding this comment

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

One small thing to make this more DRY

const json = await this._sendAndCacheRequest(apiUrl, {
headers: { 'Accept': '*/*' },
}).then(checkErrorResponse.asPromise({ notFoundMessage: 'package not found' }))
.then(asJson);
Copy link
Member

Choose a reason for hiding this comment

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

Now that I've merged #1702 you should be able to rebase this on to master and modify this to extend BaseJsonService and replace this block with _requestJson(). Apart from that, looks good 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

Ooh cool, will do!

@paulmelnikow
Copy link
Member Author

Thanks for reviewing.

@paulmelnikow paulmelnikow merged commit fa61247 into badges:master Jun 16, 2018
@shields-deployment
Copy link

shields-deployment bot commented Jun 16, 2018

This pull request was merged to master branch. Now this change is waiting for deployment.
Deploys usually happen every few weeks. After deployment changes are copied to gh-pages branch.

This badge displays deployment status:

@paulmelnikow paulmelnikow deleted the rewrite-npm-typedefs branch June 16, 2018 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-badge New or updated service badge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants