Commit bc71e8f
authored
[O2B-1534] Migrate log overview to use filtering model pattern (#2083)
* chore: remove redundant model assignment.
* chore: move all filters denoted as so to a filteringModel
* Make filterInputModel extend filterModel
* rename inputfilter to ParsedInputFilter
* implement authorfilter with ParsedInputFilterModel changes
* re-implement filter
* add tag-filters to the filtering object
* replace titleFilter and contentFilter with RawTextFilterModels
* make Authorfilter an implementation of RawTextFilterModel
* add runs filter to the filteringmodel
* add environments filter to the filteringmodel
* add lhcFills filter to the filteringmodel
* add created filter to the filteringmodel
* move the sort 'filter' to fetchlogs, since it doesn't actually filter anything
* change filter to rawTextFilter for title
* fix test by changing event type to 'change'
* fix content and author tests
* import openFilteringPanel and resetFilters
* fix createdAt filter test
* change event types to change
* fix isAnyFilterActive
* remove _raw as from authorfilterModel, as it serves no purpose
* chore: removed ParsedInputFilterModel
* chore: add toLowerCase to filterQueryParam computation
* [O2B-1530] Lhc fills add sb duration filter (#2080)
* Filtering by stableBeamsStart and stableBeamsEnd has been added to LHC Fills overview page
* lhcFills endpoint & DTO validation modified and testing added for the aforementioned changes
---------
Co-authored-by: GuustMetz <guust.metz@cern.ch>
Co-authored-by: Guust <metzguust@gmail.com>
* [O2B-1544] Fix pagination for filtered envs and add a test (#2096)
* Replaced the two-query pattern with a single queryBuilder in GetAllEnvironmentsUseCase. The previous approach was redundant following Sequelize performance improvements; furthermore, the original implementation's logic was flawed which resulted in the pagination bug.
* remove the combination operator from runs
* remove the combination operator from envirionments
* remove the combination operator from lhcFills
* make filter computation much more compact using filteringmodel.normalize
* add happy-flow tests for logs api
* fix usecase unit tests
* chore: provide the authorFilterMode directly to the component
* chore: alter rawTextFilter to accept a boolean parameter that determines if the reset function also notifies the observers
* chore: 1. revert previous change. 2. overwrite reset in author model and call notify there
* chore: remove true from the reset function call
* chore: add placeholders for the new rawTextFilters
* improve reset readability
* check runnumber fill number and lhc period for existence rather than for length
* undo test comments
* chore rename reset to clear()
* make overview test more efficient with beforeEach
* test: remove unneeded OpenFilterPanel calls
* remove takescreenshot
* Remove unneeded javadoc params
* chore: change the with margins to roughly span the filters the entire filter popover
* test: add happy-flow rootOnly test
* test: add log sorting tests for runs and for envirionments
* reduce the width of the author filter component
* chore removed unneeded length checks from should successfully filter by rootOnly
* chore: remove the needless 'limit' part of the rootOnly logs test
* feat: create textInputFilter
* chore: replace runNumbersFilter and rawTextFileters with logsActiveColumns
* feat: add a width argument to textinputFIlter
* replace the rest of the rawTextFilters
* update tests to function with the new textInput components
* fix failing tests
* chore: delete fillNumbersFilter createdFilter, logs/environmentFilter, runs/environmentFilter and schemeNameFilter
* undo incorrect return description of the author component jsdoc1 parent 47203c7 commit bc71e8f
30 files changed
Lines changed: 537 additions & 994 deletions
File tree
- lib
- domain/dtos
- filters
- public
- components/Filters
- LhcFillsFilter
- LogsFilter
- author
- RunsFilter
- common/filters
- views
- DataPasses/ActiveColumns
- Environments/ActiveColumns
- LhcFills/ActiveColumns
- Logs
- ActiveColumns
- Overview
- Runs
- ActiveColumns
- Overview
- RunPerDataPass
- RunPerPeriod
- RunsPerSimulationPass
- usecases/log
- test
- api
- lib/usecases/log
- public
- logs
- runs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
31 | 24 | | |
32 | 25 | | |
33 | 26 | | |
34 | 27 | | |
35 | 28 | | |
36 | 29 | | |
37 | 30 | | |
38 | | - | |
39 | | - | |
| 31 | + | |
| 32 | + | |
40 | 33 | | |
41 | 34 | | |
42 | 35 | | |
43 | 36 | | |
44 | 37 | | |
45 | | - | |
| 38 | + | |
46 | 39 | | |
47 | 40 | | |
48 | 41 | | |
| |||
This file was deleted.
Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 9 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
63 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 65 | | |
69 | 66 | | |
Lines changed: 9 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 17 | + | |
30 | 18 | | |
31 | 19 | | |
32 | 20 | | |
33 | 21 | | |
34 | 22 | | |
35 | 23 | | |
36 | 24 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 25 | + | |
| 26 | + | |
42 | 27 | | |
43 | 28 | | |
44 | 29 | | |
| |||
55 | 40 | | |
56 | 41 | | |
57 | 42 | | |
58 | | - | |
59 | | - | |
| 43 | + | |
| 44 | + | |
60 | 45 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
65 | 50 | | |
This file was deleted.
This file was deleted.
This file was deleted.
Lines changed: 0 additions & 25 deletions
This file was deleted.
0 commit comments