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

Legacy services clean up #3367

Merged
merged 8 commits into from
Apr 27, 2019
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
<a href="https://circleci.com/gh/badges/daily-tests">
<img src="https://img.shields.io/circleci/project/github/badges/daily-tests.svg?label=service%20tests"
alt="service-test status"></a>
<a href="https://docs.google.com/spreadsheets/d/1cHIUSVaiKrIFw3KIu0yt-EMNlMkIfU5alE7YKZ4PeOE/edit#gid=0">
<img src="https://img.shields.io/github/search/badges/shields/extends%20LegacyService.svg?label=legacy%20services%20needing%20refactor"
alt="legacy services needing refactor"></a>
<a href="https://coveralls.io/github/badges/shields">
<img src="https://img.shields.io/coveralls/github/badges/shields.svg"
alt="coverage"></a>
Expand Down
10 changes: 2 additions & 8 deletions core/base-service/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,8 @@ module.exports = class BaseService {

static getDefinition() {
const { category, name, isDeprecated } = this

let base, format, pattern, queryParams
try {
;({ base, format, pattern } = this.route)
queryParams = getQueryParamNames(this.route)
} catch (e) {
// Legacy services do not have a route.
}
const { base, format, pattern } = this.route
const queryParams = getQueryParamNames(this.route)
Copy link
Member

Choose a reason for hiding this comment

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

😁


const examples = this.examples.map((example, index) =>
transformExample(example, index, this)
Expand Down
288 changes: 0 additions & 288 deletions doc/rewriting-services.md

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@
"start": "concurrently --names server,frontend \"npm run start:server\" \"cross-env GATSBY_BASE_URL=http://localhost:8080 gatsby develop --port 3000\"",
"e2e": "start-server-and-test start http://localhost:3000 test:e2e",
"e2e-on-build": "cross-env CYPRESS_baseUrl=http://localhost:8080 start-server-and-test start:server http://localhost:8080 test:e2e",
"refactoring-report": "node scripts/refactoring-cli.js",
"badge": "cross-env NODE_CONFIG_ENV=test TRACE_SERVICES=true node scripts/badge-cli.js"
},
"lint-staged": {
Expand Down
19 changes: 0 additions & 19 deletions scripts/refactoring-cli.js

This file was deleted.

34 changes: 0 additions & 34 deletions services/legacy-service.js

This file was deleted.