@outliant/sunrise-utils 1.1.20 → 1.1.22

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,23 @@ 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.22](https://github.com/outliant/sunrise-utils/compare/1.1.21...1.1.22)
8
+
9
+ - chore: update sticky filters migration sort rule #86azcbz94 [`#28`](https://github.com/outliant/sunrise-utils/pull/28)
10
+
11
+ #### [1.1.21](https://github.com/outliant/sunrise-utils/compare/1.1.20...1.1.21)
12
+
13
+ > 27 February 2024
14
+
15
+ - chore: sticky filters updates #86azcbz94 [`#27`](https://github.com/outliant/sunrise-utils/pull/27)
16
+ - chore(release): 1.1.21 [`460494e`](https://github.com/outliant/sunrise-utils/commit/460494ea934259a3cc970540155b16a52656b903)
17
+
7
18
  #### [1.1.20](https://github.com/outliant/sunrise-utils/compare/1.1.19...1.1.20)
8
19
 
20
+ > 2 February 2024
21
+
9
22
  - chore: add default project and tasks sticky filter setting #866a4ga0a [`#26`](https://github.com/outliant/sunrise-utils/pull/26)
23
+ - chore(release): 1.1.20 [`d55e6a4`](https://github.com/outliant/sunrise-utils/commit/d55e6a4587dc214f3d84369ad0f7676e8ca01909)
10
24
 
11
25
  #### [1.1.19](https://github.com/outliant/sunrise-utils/compare/1.1.18...1.1.19)
12
26
 
@@ -102,9 +102,7 @@ module.exports.defaultCustomColumns = [
102
102
  ];
103
103
 
104
104
  module.exports.defaultFilterSetting = {
105
- search: '',
106
105
  filters: [],
107
- queries: {},
108
106
  columns: [
109
107
  'project_id',
110
108
  'created_at',
@@ -112,13 +110,11 @@ module.exports.defaultFilterSetting = {
112
110
  'region',
113
111
  'lastPulseComment'
114
112
  ],
115
- sorts: [
116
- {
117
- field: 'created_at',
118
- direction: 'desc',
119
- text: 'Create At'
120
- }
121
- ]
113
+ queries: {
114
+ sort: 'desc',
115
+ sortBy: 'created_at',
116
+ text: 'Create At'
117
+ }
122
118
  };
123
119
 
124
120
  module.exports.buildProjectPipelineFilter = (filter) => {
@@ -247,8 +247,6 @@ module.exports.defaultTaskFilter = {
247
247
  };
248
248
 
249
249
  module.exports.defaultFilterSetting = {
250
- search: '',
251
- queries: {},
252
250
  filters: [
253
251
  {
254
252
  condition: 'is_equal',
@@ -267,13 +265,11 @@ module.exports.defaultFilterSetting = {
267
265
  'last_comment',
268
266
  'last_comment_date'
269
267
  ],
270
- sorts: [
271
- {
272
- field: 'ready_at',
273
- direction: 'asc',
274
- text: 'Age'
275
- }
276
- ]
268
+ queries: {
269
+ sort: 'desc',
270
+ sortBy: 'ready_at',
271
+ text: 'Age'
272
+ }
277
273
  };
278
274
 
279
275
  module.exports.buildTaskPipelineFilter = (filter) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@outliant/sunrise-utils",
3
3
  "description": "Helper functions for project Sunrise",
4
- "version": "1.1.20",
4
+ "version": "1.1.22",
5
5
  "license": "ISC",
6
6
  "author": "Outliant",
7
7
  "main": "index.js",
@@ -195,9 +195,7 @@ describe('projectPipeline', function () {
195
195
  describe('defaultFilterSetting', () => {
196
196
  it('should be equal to default project filter setting', () => {
197
197
  expect(projectPipeline.defaultFilterSetting).to.be.deep.equal({
198
- search: '',
199
198
  filters: [],
200
- queries: {},
201
199
  columns: [
202
200
  'project_id',
203
201
  'created_at',
@@ -205,13 +203,11 @@ describe('projectPipeline', function () {
205
203
  'region',
206
204
  'lastPulseComment'
207
205
  ],
208
- sorts: [
209
- {
210
- field: 'created_at',
211
- direction: 'desc',
212
- text: 'Create At'
213
- }
214
- ]
206
+ queries: {
207
+ sort: 'desc',
208
+ sortBy: 'created_at',
209
+ text: 'Create At'
210
+ }
215
211
  });
216
212
  });
217
213
  });
@@ -585,7 +585,6 @@ describe('taskPipeline', function () {
585
585
  describe('defaultFilterSetting', () => {
586
586
  it('should be equal to default task filter setting', () => {
587
587
  expect(taskPipeline.defaultFilterSetting).to.be.deep.equal({
588
- search: '',
589
588
  queries: {},
590
589
  filters: [
591
590
  {
@@ -605,13 +604,11 @@ describe('taskPipeline', function () {
605
604
  'last_comment',
606
605
  'last_comment_date'
607
606
  ],
608
- sorts: [
609
- {
610
- field: 'ready_at',
611
- direction: 'asc',
612
- text: 'Age'
613
- }
614
- ]
607
+ queries: {
608
+ sort: 'desc',
609
+ sortBy: 'ready_at',
610
+ text: 'Age'
611
+ }
615
612
  });
616
613
  });
617
614
  });