Skip to content

Commit

Permalink
remove api from service names
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Sep 26, 2019
1 parent a98372a commit e146651
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 16 deletions.
4 changes: 2 additions & 2 deletions packages/insights-web/src/scenes/connections/saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import connectionsLogic from 'scenes/connections/logic'

import client from 'lib/client'

const connectionsService = client.service('api/connections')
const connectionTestService = client.service('api/connection-test')
const connectionsService = client.service('connections')
const connectionTestService = client.service('connection-test')

export default kea({
path: () => ['scenes', 'connections', 'saga'],
Expand Down
2 changes: 1 addition & 1 deletion packages/insights-web/src/scenes/dashboard/graph/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import dashboardLogic from 'scenes/dashboard/logic'
import headerLogic from 'scenes/header/logic'

import client from 'lib/client'
const resultsService = client.service('api/results')
const resultsService = client.service('results')

const logic = connect({
actions: [
Expand Down
4 changes: 2 additions & 2 deletions packages/insights-web/src/scenes/dashboard/saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import dashboardLogic from 'scenes/dashboard/logic'

import client from 'lib/client'

const dashboardsService = client.service('api/dashboards')
const dashboardItemsService = client.service('api/dashboard-items')
const dashboardsService = client.service('dashboards')
const dashboardItemsService = client.service('dashboard-items')

export default kea({
path: () => ['scenes', 'dashboard', 'saga'],
Expand Down
12 changes: 6 additions & 6 deletions packages/insights-web/src/scenes/explorer/saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import delay from 'lib/utils/delay'

import client from 'lib/client'

const connectionsService = client.service('api/connections')
const structureService = client.service('api/structure')
const resultsService = client.service('api/results')
const favouritesService = client.service('api/favourites')
const dashboardsService = client.service('api/dashboards')
const dashboardItemsService = client.service('api/dashboard-items')
const connectionsService = client.service('connections')
const structureService = client.service('structure')
const resultsService = client.service('results')
const favouritesService = client.service('favourites')
const dashboardsService = client.service('dashboards')
const dashboardItemsService = client.service('dashboard-items')

function fetchBlob (params) {
var qs = document.querySelector('meta[name=csrf-token]')
Expand Down
2 changes: 1 addition & 1 deletion packages/insights-web/src/scenes/header/share/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import messg from 'messg'

import client from 'lib/client'

const urlService = client.service('api/url')
const urlService = client.service('url')

class AutoFocusInput extends Component {
componentDidMount () {
Expand Down
3 changes: 1 addition & 2 deletions packages/insights-web/src/scenes/header/views/saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import messg from 'messg'

import client from 'lib/client'

// import controller from './controller.rb'
const viewsService = client.service('api/views')
const viewsService = client.service('views')

export default kea({
path: () => ['scenes', 'header', 'viewsSaga'],
Expand Down
4 changes: 2 additions & 2 deletions packages/insights-web/src/scenes/structure/saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import client from 'lib/client'

import structureLogic from 'scenes/structure/logic'

const connectionsService = client.service('api/connections')
const structureService = client.service('api/structure')
const connectionsService = client.service('connections')
const structureService = client.service('structure')

export default kea({
path: () => ['scenes', 'structure', 'saga'],
Expand Down

0 comments on commit e146651

Please sign in to comment.