@outliant/sunrise-utils 1.1.1 → 1.1.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/.eslintrc +1 -0
- package/CHANGELOG.md +7 -0
- package/lib/projectPipeline.js +7 -4
- package/package.json +1 -1
package/.eslintrc
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -4,12 +4,19 @@ 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.1.2](https://github.com/outliant/sunrise-utils/compare/1.1.1...1.1.2)
|
|
8
|
+
|
|
9
|
+
- chore: set departmentId to optional [`#7`](https://github.com/outliant/sunrise-utils/pull/7)
|
|
10
|
+
|
|
7
11
|
#### [1.1.1](https://github.com/outliant/sunrise-utils/compare/1.1.0...1.1.1)
|
|
8
12
|
|
|
13
|
+
> 14 April 2023
|
|
14
|
+
|
|
9
15
|
- chore: add search for projectIds [`#5`](https://github.com/outliant/sunrise-utils/pull/5)
|
|
10
16
|
- chore: add match_phrase_prefix search for project fields [`#6`](https://github.com/outliant/sunrise-utils/pull/6)
|
|
11
17
|
- chore: revert taskPipeline [`3fb9c24`](https://github.com/outliant/sunrise-utils/commit/3fb9c2486b1459a0b33050e6691963e8aa04cfcf)
|
|
12
18
|
- chore: update projectId filter query [`dbe2f3c`](https://github.com/outliant/sunrise-utils/commit/dbe2f3c6cc40c470d02c78911a1fc0ba30cda900)
|
|
19
|
+
- chore(release): 1.1.1 [`b27a11a`](https://github.com/outliant/sunrise-utils/commit/b27a11a385d0f4f20333e0a681a2b4fc7d8c276b)
|
|
13
20
|
|
|
14
21
|
#### [1.1.0](https://github.com/outliant/sunrise-utils/compare/1.0.11...1.1.0)
|
|
15
22
|
|
package/lib/projectPipeline.js
CHANGED
|
@@ -23,15 +23,18 @@ class ProjectPipeline {
|
|
|
23
23
|
value: orgId
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
}
|
|
27
|
-
|
|
26
|
+
}
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
if (departmentId) {
|
|
30
|
+
mustQuery.push({
|
|
28
31
|
term: {
|
|
29
32
|
department_id: {
|
|
30
33
|
value: departmentId
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
|
-
}
|
|
34
|
-
|
|
36
|
+
});
|
|
37
|
+
}
|
|
35
38
|
|
|
36
39
|
if (query.search && query.search.length > 0) {
|
|
37
40
|
const should = searchFilter(query, searchFields);
|