-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Legacy services clean up #3367
Legacy services clean up #3367
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Should we do something with this?
shields/core/base-service/legacy-request-handler.js
Lines 109 to 113 in 07a8d2e
// When the legacy services have been rewritten, all the code in here | |
// will go away, which should achieve this goal in a simpler way. | |
// | |
// Ref: https://github.com/badges/shields/pull/2755 | |
function setCacheHeadersOnResponse(res, serviceOverrideCacheLengthSeconds) { |
@platan I believe we'll be able to start work on rewriting the request handler now that the legacy services are gone. 😉 |
// Legacy services do not have a route. | ||
} | ||
const { base, format, pattern } = this.route | ||
const queryParams = getQueryParamNames(this.route) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😁
doc/rewriting-services.md
Outdated
@@ -1,288 +0,0 @@ | |||
# Tips for rewriting legacy services |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This document has a lot of good content related to best practices for new-style services. Rather than delete it, I'd like to rework it into a design document.
Could you reset this file and then we can deal with that in a follow on?
If you want you could add a note at the top that the document is out of date and needs to be updated, so people take it with a grain of salt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -1,34 +0,0 @@ | |||
'use strict' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😁
bye bye stuff we don't need any more 👋 I find it slightly disappointing that this PR doesn't delete many hundreds of lines of terrible code we don't want any more, but maybe its a reflection of the fact that wrapping the legacy code up in |
This will hopefully allow us to close #2863!