Skip to content

Commit

Permalink
Issue 50: Store LSSS requests in an internal queue (UI)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaladay committed May 1, 2020
1 parent d333335 commit 47a3353
Show file tree
Hide file tree
Showing 23 changed files with 1,066 additions and 170 deletions.
373 changes: 211 additions & 162 deletions app/config/apiMapping.js
Original file line number Diff line number Diff line change
@@ -1,166 +1,215 @@
// CONVENTION: must match model name, case sensitive
var apiMapping = {
Product: {
validations: true,
lazy: true,
channel: '/channel/products',
all: {
'endpoint': '/private/queue',
'controller': 'products',
'method': '',
'httpMethod': 'GET'
},
create: {
'endpoint': '/private/queue',
'controller': 'products',
'method': '',
'httpMethod': 'POST'
},
update: {
'endpoint': '/private/queue',
'controller': 'products',
'method': '',
'httpMethod': 'PUT'
},
remove: {
'endpoint': '/private/queue',
'controller': 'products',
'method': '',
'httpMethod': 'DELETE'
},
listen: {
'endpoint': '/channel',
'controller': 'products'
}
},
User: {
lazy: true,
channel: '/channel/users',
instantiate: {
'endpoint': '/private/queue',
'controller': 'users',
'method': 'credentials'
},
all: {
'endpoint': '/private/queue',
'controller': 'users'
},
listen: {
'endpoint': '/channel',
'controller': 'users'
},
update: {
'endpoint': '/private/queue',
'controller': 'users',
'method': 'update'
}
},
RemoteProductManager: {
validations: true,
lazy: true,
channel: '/channel/remote-product-manager',
all: {
'endpoint': '/private/queue',
'controller': 'remote-product-manager',
'method': '',
'httpMethod': 'GET'
},
create: {
'endpoint': '/private/queue',
'controller': 'remote-product-manager',
'method': '',
'httpMethod': 'POST'
},
update: {
'endpoint': '/private/queue',
'controller': 'remote-product-manager',
'method': '',
'httpMethod': 'PUT'
},
remove: {
'endpoint': '/private/queue',
'controller': 'remote-product-manager',
'method': '',
'httpMethod': 'DELETE'
},
listen: {
'endpoint': '/channel',
'controller': 'remote-product-manager'
},
types: {
'endpoint': '/channel',
'controller': 'remote-product-manager',
'method': 'types/',
'httpMethod': 'GET'
},
scaffolding: {
'endpoint': '/channel',
'controller': 'remote-product-manager',
'method': 'scaffolding/:type/',
'httpMethod': 'GET'
}
},
Status: {
validations: true,
lazy: true,
channel: '/channel/status',
all: {
'endpoint': '/private/queue',
'controller': 'status',
'method': '',
'httpMethod': 'GET'
},
create: {
'endpoint': '/private/queue',
'controller': 'status',
'method': '',
'httpMethod': 'POST'
},
update: {
'endpoint': '/private/queue',
'controller': 'status',
'method': '',
'httpMethod': 'PUT'
},
remove: {
'endpoint': '/private/queue',
'controller': 'status',
'method': '',
'httpMethod': 'DELETE'
},
listen: {
'endpoint': '/channel',
'controller': 'status'
}
},
RemoteProducts: {
all: {
'endpoint': '/private/queue',
'controller': 'products/remote'
},
listen: {
'endpoint': '/channel',
'controller': 'products/remote'
}
},
ProductsStats: {
all: {
'endpoint': '/private/queue',
'controller': 'products/stats'
},
listen: {
'endpoint': '/channel',
'controller': 'products/stats'
}
},
ActiveSprints: {
all: {
'endpoint': '/private/queue',
'controller': 'sprints/active'
},
listen: {
'endpoint': '/channel',
'controller': 'sprints/active'
}
Product: {
validations: true,
lazy: true,
channel: '/channel/products',
all: {
'endpoint': '/private/queue',
'controller': 'products',
'method': '',
'httpMethod': 'GET'
},
create: {
'endpoint': '/private/queue',
'controller': 'products',
'method': '',
'httpMethod': 'POST'
},
update: {
'endpoint': '/private/queue',
'controller': 'products',
'method': '',
'httpMethod': 'PUT'
},
remove: {
'endpoint': '/private/queue',
'controller': 'products',
'method': '',
'httpMethod': 'DELETE'
},
listen: {
'endpoint': '/channel',
'controller': 'products'
}
},
FeatureRequest: {
validations: false,
channel: '/channel/internal/request',
push: {
'endpoint': '/private/queue',
'controller': 'internal/request',
'method': 'push',
'httpMethod': 'PUT'
},
},
InternalRequest: {
validations: true,
lazy: true,
channel: '/channel/internal/request',
all: {
'endpoint': '/private/queue',
'controller': 'internal/request',
'method': '',
'httpMethod': 'GET'
},
create: {
'endpoint': '/private/queue',
'controller': 'internal/request',
'method': '',
'httpMethod': 'POST'
},
update: {
'endpoint': '/private/queue',
'controller': 'internal/request',
'method': '',
'httpMethod': 'PUT'
},
submitFeatureProposal: {
'endpoint': '/private/queue',
'controller': 'internal/request',
'method': '',
'httpMethod': 'PUT'
},
remove: {
'endpoint': '/private/queue',
'controller': 'internal/request',
'method': '',
'httpMethod': 'DELETE'
},
listen: {
'endpoint': '/channel',
'controller': 'internal/request'
}
},
User: {
lazy: true,
channel: '/channel/users',
instantiate: {
'endpoint': '/private/queue',
'controller': 'users',
'method': 'credentials'
},
all: {
'endpoint': '/private/queue',
'controller': 'users'
},
listen: {
'endpoint': '/channel',
'controller': 'users'
},
update: {
'endpoint': '/private/queue',
'controller': 'users',
'method': 'update'
}
},
RemoteProductManager: {
validations: true,
lazy: true,
channel: '/channel/remote-product-manager',
all: {
'endpoint': '/private/queue',
'controller': 'remote-product-manager',
'method': '',
'httpMethod': 'GET'
},
create: {
'endpoint': '/private/queue',
'controller': 'remote-product-manager',
'method': '',
'httpMethod': 'POST'
},
update: {
'endpoint': '/private/queue',
'controller': 'remote-product-manager',
'method': '',
'httpMethod': 'PUT'
},
remove: {
'endpoint': '/private/queue',
'controller': 'remote-product-manager',
'method': '',
'httpMethod': 'DELETE'
},
listen: {
'endpoint': '/channel',
'controller': 'remote-product-manager'
},
types: {
'endpoint': '/channel',
'controller': 'remote-product-manager',
'method': 'types/',
'httpMethod': 'GET'
},
scaffolding: {
'endpoint': '/channel',
'controller': 'remote-product-manager',
'method': 'scaffolding/:type/',
'httpMethod': 'GET'
}
},
Status: {
validations: true,
lazy: true,
channel: '/channel/status',
all: {
'endpoint': '/private/queue',
'controller': 'status',
'method': '',
'httpMethod': 'GET'
},
create: {
'endpoint': '/private/queue',
'controller': 'status',
'method': '',
'httpMethod': 'POST'
},
update: {
'endpoint': '/private/queue',
'controller': 'status',
'method': '',
'httpMethod': 'PUT'
},
remove: {
'endpoint': '/private/queue',
'controller': 'status',
'method': '',
'httpMethod': 'DELETE'
},
listen: {
'endpoint': '/channel',
'controller': 'status'
}
},
RemoteProducts: {
all: {
'endpoint': '/private/queue',
'controller': 'products/remote'
},
listen: {
'endpoint': '/channel',
'controller': 'products/remote'
}
},
ProductsStats: {
all: {
'endpoint': '/private/queue',
'controller': 'products/stats'
},
listen: {
'endpoint': '/channel',
'controller': 'products/stats'
}
},
ActiveSprints: {
all: {
'endpoint': '/private/queue',
'controller': 'sprints/active'
},
listen: {
'endpoint': '/channel',
'controller': 'sprints/active'
}
}
};

0 comments on commit 47a3353

Please sign in to comment.