mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
43801f1f13
- First iteration of api for tags and tag-types - Documentation in place - Adds three new tables - tag_types - tags - feature_tag - Tagging a feature is adding a row in the feature_tag join table * #665 Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com> Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
35 lines
1.2 KiB
JavaScript
35 lines
1.2 KiB
JavaScript
'use strict';
|
|
|
|
const ClientMetricsStore = require('./fake-metrics-store');
|
|
const clientInstanceStore = require('./fake-client-instance-store');
|
|
const clientApplicationsStore = require('./fake-client-applications-store');
|
|
const featureToggleStore = require('./fake-feature-toggle-store');
|
|
const featureTagStore = require('./fake-feature-tag-store');
|
|
const eventStore = require('./fake-event-store');
|
|
const strategyStore = require('./fake-strategies-store');
|
|
const contextFieldStore = require('./fake-context-store');
|
|
const settingStore = require('./fake-setting-store');
|
|
|
|
module.exports = {
|
|
createStores: () => {
|
|
const db = {
|
|
select: () => ({
|
|
from: () => Promise.resolve(),
|
|
}),
|
|
};
|
|
|
|
return {
|
|
db,
|
|
clientApplicationsStore: clientApplicationsStore(),
|
|
clientMetricsStore: new ClientMetricsStore(),
|
|
clientInstanceStore: clientInstanceStore(),
|
|
featureToggleStore: featureToggleStore(),
|
|
featureTagStore: featureTagStore(),
|
|
eventStore: eventStore(),
|
|
strategyStore: strategyStore(),
|
|
contextFieldStore: contextFieldStore(),
|
|
settingStore: settingStore(),
|
|
};
|
|
},
|
|
};
|