@outliant/sunrise-utils 1.4.1 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/helpers/taskFilter/index.js +22 -1
- package/lib/projectPipeline.js +1 -1
- package/lib/taskPipeline.js +7 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,22 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [1.4.3](https://github.com/outliant/sunrise-utils/compare/1.4.2...1.4.3)
|
|
8
|
+
|
|
9
|
+
- chore: task pipeline exclude archived tasks by default [`b4b9954`](https://github.com/outliant/sunrise-utils/commit/b4b99546e44b222c2bc7fd42157f30ed71efb883)
|
|
10
|
+
|
|
11
|
+
#### [1.4.2](https://github.com/outliant/sunrise-utils/compare/1.4.1...1.4.2)
|
|
12
|
+
|
|
13
|
+
> 24 June 2025
|
|
14
|
+
|
|
15
|
+
- chore(release): 1.4.2 [`0702182`](https://github.com/outliant/sunrise-utils/commit/0702182ea776a11e4d08f714f10d37d656b189d6)
|
|
16
|
+
- chore: build fix [`b2abcdb`](https://github.com/outliant/sunrise-utils/commit/b2abcdb45682fbdece85bd25d87905a923af9c87)
|
|
17
|
+
|
|
7
18
|
#### [1.4.1](https://github.com/outliant/sunrise-utils/compare/1.4.0...1.4.1)
|
|
8
19
|
|
|
20
|
+
> 9 April 2025
|
|
21
|
+
|
|
22
|
+
- chore(release): 1.4.1 [`194cb5e`](https://github.com/outliant/sunrise-utils/commit/194cb5ea4ba1faadc19d43e132da34d02170a769)
|
|
9
23
|
- chore: minor fix [`b006891`](https://github.com/outliant/sunrise-utils/commit/b0068914ca0c23a99a1badde04131ba296898e52)
|
|
10
24
|
- chore: minor fix [`9d6a965`](https://github.com/outliant/sunrise-utils/commit/9d6a9657094b92873c948c1071edb9aa85a33b81)
|
|
11
25
|
|
|
@@ -280,7 +280,7 @@ module.exports.defaultCustomColumns = [
|
|
|
280
280
|
}
|
|
281
281
|
];
|
|
282
282
|
|
|
283
|
-
module.exports.
|
|
283
|
+
module.exports.defaultExcludeOnHoldTaskFilter = {
|
|
284
284
|
bool: {
|
|
285
285
|
should: [
|
|
286
286
|
{
|
|
@@ -301,6 +301,27 @@ module.exports.defaultTaskFilter = {
|
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
303
|
|
|
304
|
+
module.exports.defaultExcludeArchivedTaskFilter = {
|
|
305
|
+
bool: {
|
|
306
|
+
should: [
|
|
307
|
+
{
|
|
308
|
+
term: {
|
|
309
|
+
deleted: false
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
bool: {
|
|
314
|
+
must_not: {
|
|
315
|
+
exists: {
|
|
316
|
+
field: 'deleted'
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
|
|
304
325
|
module.exports.defaultFilterSetting = {
|
|
305
326
|
filters: [
|
|
306
327
|
{
|
package/lib/projectPipeline.js
CHANGED
|
@@ -96,7 +96,7 @@ class ProjectPipeline {
|
|
|
96
96
|
buildSortScript(query = {}, customSort = []) {
|
|
97
97
|
const sortMultiple = (query.sort || 'desc').split(',');
|
|
98
98
|
const sortByMultiple = (query.sortBy || 'created_at').split(',');
|
|
99
|
-
|
|
99
|
+
let projectPipelinesSort = [];
|
|
100
100
|
|
|
101
101
|
if (sortByMultiple.length > 0) {
|
|
102
102
|
sortByMultiple.forEach((s, i) => {
|
package/lib/taskPipeline.js
CHANGED
|
@@ -5,7 +5,8 @@ const {
|
|
|
5
5
|
taskStatusOptions,
|
|
6
6
|
taskAgeColorOptions,
|
|
7
7
|
defaultCustomColumns,
|
|
8
|
-
|
|
8
|
+
defaultExcludeOnHoldTaskFilter,
|
|
9
|
+
defaultExcludeArchivedTaskFilter,
|
|
9
10
|
buildTaskPipelineFilter,
|
|
10
11
|
defaultFilterSetting
|
|
11
12
|
} = require('../helpers/taskFilter');
|
|
@@ -86,7 +87,11 @@ class TaskPipeline {
|
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
if (!filters.find((f) => f.value === 'on_hold' && f.type === 'status')) {
|
|
89
|
-
mustQuery.push(
|
|
90
|
+
mustQuery.push(defaultExcludeOnHoldTaskFilter);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (!filters.find((f) => f.value === 'archived' && f.type === 'status')) {
|
|
94
|
+
mustQuery.push(defaultExcludeArchivedTaskFilter);
|
|
90
95
|
}
|
|
91
96
|
|
|
92
97
|
return { bool: { must: mustQuery } };
|