Skip to content

Commit

Permalink
fix(engine): do not register config mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
Aschen committed Jan 23, 2022
1 parent 27d70cc commit e2356ff
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 21 deletions.
2 changes: 1 addition & 1 deletion lib/engine/AbstractEngine.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export declare abstract class AbstractEngine<TPlugin extends Plugin> {
* @param pluginName Used to define http routes
* @param plugin Plugin instance
* @param index Name of admin index to store engine documents
* @param adminConfigManager ConfigManager instance for admin index to register engine mappings
* @param adminConfigManager ConfigManager instance for admin index
* @param engineConfigManager ConfigManager instance for engine index to create config collection
*/
constructor(pluginName: string, plugin: Plugin, adminIndex: string, adminConfigManager: ConfigManager, engineConfigManager: ConfigManager);
Expand Down
9 changes: 1 addition & 8 deletions lib/engine/AbstractEngine.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/engine/AbstractEngine.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions lib/engine/AbstractEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export abstract class AbstractEngine<TPlugin extends Plugin> {
* @param pluginName Used to define http routes
* @param plugin Plugin instance
* @param index Name of admin index to store engine documents
* @param adminConfigManager ConfigManager instance for admin index to register engine mappings
* @param adminConfigManager ConfigManager instance for admin index
* @param engineConfigManager ConfigManager instance for engine index to create config collection
*/
constructor (
Expand All @@ -48,14 +48,6 @@ export abstract class AbstractEngine<TPlugin extends Plugin> {
this.engineConfigManager = engineConfigManager;

this.configType = `engine-${this.pluginName}`;

this.adminConfigManager.register('engine', {
properties: {
index: { type: 'keyword' },
group: { type: 'keyword' },
name: { type: 'keyword' },
}
});
}

async init (...args): Promise<any> {
Expand Down
2 changes: 1 addition & 1 deletion lib/engine/EngineContent.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export declare type EngineContent = {
*/
group: string;
/**
* Plugin name
* Engine name
*/
name: string;
};
2 changes: 1 addition & 1 deletion lib/engine/EngineContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type EngineContent = {
group: string;

/**
* Plugin name
* Engine name
*/
name: string;
};

0 comments on commit e2356ff

Please sign in to comment.