mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
add groups feature
This commit is contained in:
parent
6fd750dad5
commit
7f5dc4c152
119 changed files with 12416 additions and 402 deletions
1008
lib/db/api.js
1008
lib/db/api.js
File diff suppressed because it is too large
Load diff
|
@ -1,3 +1,7 @@
|
|||
/**
|
||||
* Copyright © 2019 contains code contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
|
||||
**/
|
||||
|
||||
var r = require('rethinkdb')
|
||||
|
||||
module.exports = {
|
||||
|
@ -49,9 +53,30 @@ module.exports = {
|
|||
return device('provider')('channel')
|
||||
}
|
||||
}
|
||||
, group: {
|
||||
indexFunction: function(device) {
|
||||
return device('group')('id')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
, logs: {
|
||||
primaryKey: 'id'
|
||||
}
|
||||
, groups: {
|
||||
primaryKey: 'id'
|
||||
, indexes: {
|
||||
privilege: null
|
||||
, owner: {
|
||||
indexFunction: function(group) {
|
||||
return group('owner')('email')
|
||||
}
|
||||
}
|
||||
, startTime: {
|
||||
indexFunction: function(group) {
|
||||
return group('dates').nth(0)('start')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue