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

Remove legacy badge-data functions #3369

Closed
paulmelnikow opened this issue Apr 27, 2019 · 0 comments · Fixed by #3392
Closed

Remove legacy badge-data functions #3369

paulmelnikow opened this issue Apr 27, 2019 · 0 comments · Fixed by #3392
Labels
core Server, BaseService, GitHub auth, Shared helpers

Comments

@paulmelnikow
Copy link
Member

There are three places in production code where we're still using makeBadgeData:

core/base-service/legacy-request-handler.js:const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
core/base-service/legacy-request-handler.js:// are used by makeBadgeData (see `lib/badge-data.js`) and related functions.
core/server/server.js:const { makeBadgeData } = require('../../lib/badge-data')

And a couple more in tests:

core/base-service/base-svg-scraping.spec.js:const { makeBadgeData } = require('../../lib/badge-data')
core/base-service/legacy-request-handler.spec.js:const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')

It would be great to rewrite these. It could be done as part of #3328, though it might be possible to think ahead to that and replace the badgeData-related code with calls to coalesceBadge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Server, BaseService, GitHub auth, Shared helpers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant