Skip to content

Commit

Permalink
Replace collection logic highestSemVer with LATEST_VERSION_CHILDREN o…
Browse files Browse the repository at this point in the history
…ption, to match latest server version.

Signed-off-by: Ralf King <[email protected]>
  • Loading branch information
rkg-mm committed Sep 16, 2024
1 parent fc359ae commit 83649f8
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@
"project_collection_logic_aggregate_direct_children": "Aggregate direct children",
"project_collection_logic_aggregate_direct_children_with_tag": "Aggregate direct children with tag",
"project_collection_logic_desc": "Specifies if this project is a collection project and which metrics calculation logic to apply for a collection project. Collection projects do not have own components but display data of their children using one of the available logics.",
"project_collection_logic_highest_semver_child": "Show highest SemVer child",
"project_collection_logic_latest_version_children": "Aggregate direct children marked as latest",
"project_collection_logic_none": "None",
"project_created": "Project created",
"project_deleted": "Project deleted",
Expand Down
10 changes: 5 additions & 5 deletions src/views/portfolio/projects/Project.vue
Original file line number Diff line number Diff line change
Expand Up @@ -607,21 +607,21 @@ export default {
return this.$refs[tab && tab[1] ? tab[1].toLowerCase() : 'overview'];
},
getCollectionLogicText: function (project) {
let title = 'Metrics of collection project are calculated ';
let title = 'Metrics of collection project are calculated by aggregating numbers of ';
switch (project.collectionLogic) {
case 'NONE':
return '';
case 'AGGREGATE_DIRECT_CHILDREN':
title += 'by aggregating numbers of all direct children.';
title += 'all direct children.';
break;
case 'AGGREGATE_DIRECT_CHILDREN_WITH_TAG':
const tag = !project.collectionTag
? ''
: xssFilters.inDoubleQuotedAttr(project.collectionTag.name);
title += `by aggregating numbers of direct children with tag '${tag}'.`;
title += `direct children with tag '${tag}'.`;
break;
case 'HIGHEST_SEMVER_CHILD':
title += 'by using the child with highest SemVer version.';
case 'LATEST_VERSION_CHILDREN':
title += 'latest versions of direct children.';
break;
}
return title;
Expand Down
4 changes: 2 additions & 2 deletions src/views/portfolio/projects/ProjectCreateProjectModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ export default {
),
},
{
value: 'HIGHEST_SEMVER_CHILD',
value: 'LATEST_VERSION_CHILDREN',
text: this.$i18n.t(
'message.project_collection_logic_highest_semver_child',
'message.project_collection_logic_latest_version_children',
),
},
],
Expand Down
4 changes: 2 additions & 2 deletions src/views/portfolio/projects/ProjectDetailsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,9 @@ export default {
),
},
{
value: 'HIGHEST_SEMVER_CHILD',
value: 'LATEST_VERSION_CHILDREN',
text: this.$i18n.t(
'message.project_collection_logic_highest_semver_child',
'message.project_collection_logic_latest_version_children',
),
},
],
Expand Down
10 changes: 5 additions & 5 deletions src/views/portfolio/projects/ProjectList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -261,19 +261,19 @@ export default {
);
let collectionIcon = '';
if (row.collectionLogic !== 'NONE') {
let title = 'Metrics of collection project are calculated ';
let title = 'Metrics of collection project are calculated by aggregating numbers of ';
switch (row.collectionLogic) {
case 'AGGREGATE_DIRECT_CHILDREN':
title += 'by aggregating numbers of all direct children.';
title += 'all direct children.';
break;
case 'AGGREGATE_DIRECT_CHILDREN_WITH_TAG':
const tag = !row.collectionTag
? ''
: xssFilters.inDoubleQuotedAttr(row.collectionTag.name);
title += `by aggregating numbers of direct children with tag '${tag}'.`;
title += `direct children with tag '${tag}'.`;
break;
case 'HIGHEST_SEMVER_CHILD':
title += 'by using the child with highest SemVer version.';
case 'LATEST_VERSION_CHILDREN':
title += 'latest versions of direct children.';
break;
}
collectionIcon = ` <i class="fa fa-calculator fa-fw icon-cellend" title="${title}"></i>`;
Expand Down

0 comments on commit 83649f8

Please sign in to comment.