@outliant/sunrise-utils 1.4.0 → 1.4.2
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
CHANGED
|
@@ -4,9 +4,24 @@ 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.2](https://github.com/outliant/sunrise-utils/compare/1.4.1...1.4.2)
|
|
8
|
+
|
|
9
|
+
- chore: build fix [`b2abcdb`](https://github.com/outliant/sunrise-utils/commit/b2abcdb45682fbdece85bd25d87905a923af9c87)
|
|
10
|
+
|
|
11
|
+
#### [1.4.1](https://github.com/outliant/sunrise-utils/compare/1.4.0...1.4.1)
|
|
12
|
+
|
|
13
|
+
> 9 April 2025
|
|
14
|
+
|
|
15
|
+
- chore(release): 1.4.1 [`194cb5e`](https://github.com/outliant/sunrise-utils/commit/194cb5ea4ba1faadc19d43e132da34d02170a769)
|
|
16
|
+
- chore: minor fix [`b006891`](https://github.com/outliant/sunrise-utils/commit/b0068914ca0c23a99a1badde04131ba296898e52)
|
|
17
|
+
- chore: minor fix [`9d6a965`](https://github.com/outliant/sunrise-utils/commit/9d6a9657094b92873c948c1071edb9aa85a33b81)
|
|
18
|
+
|
|
7
19
|
#### [1.4.0](https://github.com/outliant/sunrise-utils/compare/1.3.10...1.4.0)
|
|
8
20
|
|
|
21
|
+
> 8 April 2025
|
|
22
|
+
|
|
9
23
|
- chore: refactor task/project pipeline common filters #86b4dg28t [`54a12a9`](https://github.com/outliant/sunrise-utils/commit/54a12a9e80ea402825bd64589efdf91b65c207a1)
|
|
24
|
+
- chore(release): 1.4.0 [`9ce7737`](https://github.com/outliant/sunrise-utils/commit/9ce7737cbb222b68ab84dcf6ed0fe8841732ad38)
|
|
10
25
|
|
|
11
26
|
#### [1.3.10](https://github.com/outliant/sunrise-utils/compare/1.3.9...1.3.10)
|
|
12
27
|
|
package/helpers/commonFilter.js
CHANGED
|
@@ -17,8 +17,6 @@ module.exports = (filter) => {
|
|
|
17
17
|
return module.exports.isAnyOf(filter);
|
|
18
18
|
case 'is_empty':
|
|
19
19
|
return module.exports.isEmpty(filter);
|
|
20
|
-
case 'is_any_of':
|
|
21
|
-
return module.exports.isAnyOf(filter);
|
|
22
20
|
case 'is_not_empty':
|
|
23
21
|
return module.exports.isNotEmpty(filter);
|
|
24
22
|
case 'is_equal':
|
|
@@ -20,7 +20,7 @@ module.exports = (filter) => {
|
|
|
20
20
|
module.exports.isEqual = (filter) => {
|
|
21
21
|
return {
|
|
22
22
|
match: {
|
|
23
|
-
_id: filter.value
|
|
23
|
+
_id: (filter.value || '').toUpperCase()
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -30,7 +30,7 @@ module.exports.isNotEqual = (filter) => {
|
|
|
30
30
|
bool: {
|
|
31
31
|
must_not: {
|
|
32
32
|
match: {
|
|
33
|
-
_id: filter.value
|
|
33
|
+
_id: (filter.value || '').toUpperCase()
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -20,7 +20,7 @@ module.exports = (filter) => {
|
|
|
20
20
|
module.exports.isEqual = (filter) => {
|
|
21
21
|
return {
|
|
22
22
|
match: {
|
|
23
|
-
project_id: filter.value
|
|
23
|
+
project_id: (filter.value || '').toUpperCase()
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -30,7 +30,7 @@ module.exports.isNotEqual = (filter) => {
|
|
|
30
30
|
bool: {
|
|
31
31
|
must_not: {
|
|
32
32
|
match: {
|
|
33
|
-
project_id: filter.value
|
|
33
|
+
project_id: (filter.value || '').toUpperCase()
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
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) => {
|