mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACS-6924] Rename tags and categories plugins to mitigate naming conflicts (#3687)
* [ACS-6924] Rename tags and categories plugins to mitigate conflicts * [ACS-6924] Add missing logic for tags and categories plugins
This commit is contained in:
parent
c883e16d2b
commit
33264f0731
@ -13,8 +13,8 @@
|
||||
"aosPlugin": true,
|
||||
"contentService": true,
|
||||
"folderRules": true,
|
||||
"tags": true,
|
||||
"categories": true
|
||||
"tagsEnabled": true,
|
||||
"categoriesEnabled": true
|
||||
},
|
||||
"oauth2": {
|
||||
"host": "{protocol}//{hostname}{:port}/auth/realms/alfresco",
|
||||
|
@ -117,3 +117,13 @@ if [ -n "${APP_BASE_SHARE_URL}" ]; then
|
||||
sed -e "s/\"baseShareUrl\": \".*\"/\"baseShareUrl\": \"${encoded}\"/g" \
|
||||
-i "$APP_CONFIG_FILE"
|
||||
fi
|
||||
|
||||
if [ -n "${APP_CONFIG_PLUGIN_TAGS}" ]; then
|
||||
echo "SET APP_CONFIG_PLUGIN_TAGS"
|
||||
sed -e "s/\"tagsEnabled\": [^,]*/\"tagsEnabled\": ${APP_CONFIG_PLUGIN_TAGS}/g" -i "$APP_CONFIG_FILE"
|
||||
fi
|
||||
|
||||
if [ -n "${APP_CONFIG_PLUGIN_CATEGORIES}" ]; then
|
||||
echo "SET APP_CONFIG_PLUGIN_CATEGORIES"
|
||||
sed -e "s/\"categoriesEnabled\": [^,]*/\"categoriesEnabled\": ${APP_CONFIG_PLUGIN_CATEGORIES}/g" -i "$APP_CONFIG_FILE"
|
||||
fi
|
||||
|
@ -947,7 +947,7 @@ describe('app.evaluators', () => {
|
||||
};
|
||||
|
||||
app.areTagsEnabled(context);
|
||||
expect(context.appConfig.get).toHaveBeenCalledWith('plugins.tags', true);
|
||||
expect(context.appConfig.get).toHaveBeenCalledWith('plugins.tagsEnabled', true);
|
||||
});
|
||||
|
||||
it('should return true if get from appConfig returns true', () => {
|
||||
@ -980,7 +980,7 @@ describe('app.evaluators', () => {
|
||||
};
|
||||
|
||||
app.areCategoriesEnabled(context);
|
||||
expect(context.appConfig.get).toHaveBeenCalledWith('plugins.categories', true);
|
||||
expect(context.appConfig.get).toHaveBeenCalledWith('plugins.categoriesEnabled', true);
|
||||
});
|
||||
|
||||
it('should return true if get from appConfig returns true', () => {
|
||||
|
@ -647,6 +647,6 @@ export function isSmartFolder(context: RuleContext): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
export const areTagsEnabled = (context: AcaRuleContext): boolean => context.appConfig.get('plugins.tags', true);
|
||||
export const areTagsEnabled = (context: AcaRuleContext): boolean => context.appConfig.get('plugins.tagsEnabled', true);
|
||||
|
||||
export const areCategoriesEnabled = (context: AcaRuleContext): boolean => context.appConfig.get('plugins.categories', true);
|
||||
export const areCategoriesEnabled = (context: AcaRuleContext): boolean => context.appConfig.get('plugins.categoriesEnabled', true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user