Skip to content

Commit be0c7b6

Browse files
authored
Merge pull request #426 from medizininformatik-initiative/new-pagination-search
New pagination search
2 parents 195fa6b + 0dedbbd commit be0c7b6

File tree

207 files changed

+7602
-1961
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+7602
-1961
lines changed

cypress/e2e/CohortSearch/cohort-search.feature

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,21 @@ Feature: Cohort Search
66
And I set the language to German
77

88
Scenario Outline: Search for Criterium "<criterium>"
9-
And the table should have 50 rows
9+
And the table should have 20 rows
1010
And the button "<button1>" should be disabled
1111
And the button "<button2>" should be disabled
1212
When I type "<criterium>" in the search input field
1313
Then I should see a row containing "<criterium>"
1414
When I clear the search input field
15-
Then the table should have 50 rows
15+
Then the table should have 20 rows
1616

1717
Examples: Search Criteria
18-
| criterium | button1 | button2 |
19-
| Aktuelles chronologisches Alter | Zur Kohortenselektion hinzufügen | Kohortenselektion anzeigen |
20-
| Diabetes | Zur Kohortenselektion hinzufügen | Kohortenselektion anzeigen |
21-
18+
| criterium | button1 | button2 |
19+
| Aktuelles chronologisches Alter | Zur Kohortenselektion hinzufügen | Kohortenselektion anzeigen |
20+
| Diabetes | Zur Kohortenselektion hinzufügen | Kohortenselektion anzeigen |
2221

2322
Scenario Outline: Select Cohort elements
24-
Given I type "<criterium>" in the search input field
23+
Given I type "<criterium>" in the search input field
2524
Then I select the checkbox in the row containing "<criterium>"
2625
And I click on the button "<button1>"
2726
Then the button "<button2>" should be enabled
@@ -30,5 +29,5 @@ Feature: Cohort Search
3029
Then I am on the "Feasibility Editor" page
3130

3231
Examples: Selection Criteria
33-
| criterium | button1 | button2 |
34-
| Aktuelles chronologisches Alter| Zur Kohortenselektion hinzufügen | Kohortenselektion anzeigen |
32+
| criterium | button1 | button2 |
33+
| Aktuelles chronologisches Alter | Zur Kohortenselektion hinzufügen | Kohortenselektion anzeigen |

package-lock.json

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"monaco-editor": "0.29.1",
5656
"ng-lint-staged": "^12.0.3",
5757
"ngx-filesaver": "^15.0.0",
58+
"ngx-infinite-scroll": "^15.0.0",
5859
"ngx-webstorage-service": "^4.1.0",
5960
"rxjs": "~7.8.0",
6061
"ts-jest": "^27.1.1",

src/app/app-routing.module.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
import { RouterModule, Routes } from '@angular/router';
2+
3+
import { BasePaths } from './app-paths';
4+
import { CriteriaSearchDataResolverService } from './service/Resolver/CriteriaSearchDataResolver.service';
5+
import { CriteriaSearchFilterResolverService } from './service/Resolver/CriteriaSearchFilterResolver.service';
16
import { DataProtectionComponent } from './site/data-protection/data-protection.component';
27
import { NgModule } from '@angular/core';
38
import { RoleGuard } from './core/auth/guards/role.guard';
4-
import { RouterModule, Routes } from '@angular/router';
5-
import { BasePaths } from './app-paths';
69

710
export const routes: Routes = [
811
{
@@ -42,6 +45,10 @@ export const routes: Routes = [
4245
},
4346
{
4447
path: BasePaths.feasibilityQuery,
48+
resolve: {
49+
preLoadCriteriaData: CriteriaSearchDataResolverService,
50+
preLoadCriteriaFilter: CriteriaSearchFilterResolverService,
51+
},
4552
canLoad: [RoleGuard],
4653
data: {
4754
navId: BasePaths.feasibilityQuery,

src/app/model/Actuator/Information/Build/BuildInformation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BuildDetailsData } from 'src/app/model/Interface/ActuatorInfoIData/BuildData/BuildDetailsData';
1+
import { BuildDetailsData } from 'src/app/model/Interface/ActuatorInfoData/BuildData/BuildDetailsData';
22

33
export class BuildDetails {
44
private artifact: string;

src/app/model/Actuator/Information/BuildInformation.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { BuildDetailsData } from '../../Interface/ActuatorInfoIData/BuildData/BuildDetailsData';
2-
import { BuildInformationData } from '../../Interface/ActuatorInfoIData/BuildInformationData';
31
import { BuildDetails } from './Build/BuildInformation';
2+
import { BuildInformationData } from '../../Interface/ActuatorInfoData/BuildInformationData';
43
import { GitInformation } from './Git/GitInformation';
54
import { TerminologyInformation } from './Terminology/TerminologyInformation';
65

src/app/model/Actuator/Information/Git/GitBranchInformation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GitBranchData } from 'src/app/model/Interface/ActuatorInfoIData/GitData/GitBranchData';
1+
import { GitBranchData } from 'src/app/model/Interface/ActuatorInfoData/GitData/GitBranchData';
22

33
export class GitBranchInformation {
44
private name: string;

src/app/model/Actuator/Information/Git/GitBuildInformation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GitBuildData } from '../../../Interface/ActuatorInfoIData/GitData/GitBuildData';
1+
import { GitBuildData } from '../../../Interface/ActuatorInfoData/GitData/GitBuildData';
22

33
export class GitBuildInformation {
44
private version: string;

src/app/model/Actuator/Information/Git/GitCommitIdInformation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GitCommitIdData } from 'src/app/model/Interface/ActuatorInfoIData/GitData/GitCommitIdData';
1+
import { GitCommitIdData } from 'src/app/model/Interface/ActuatorInfoData/GitData/GitCommitIdData';
22

33
export class GitCommitIdInformation {
44
private full: string;

src/app/model/Actuator/Information/Git/GitCommitInformation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GitCommitData } from 'src/app/model/Interface/ActuatorInfoIData/GitData/GitCommitData';
1+
import { GitCommitData } from 'src/app/model/Interface/ActuatorInfoData/GitData/GitCommitData';
22
import { GitCommitIdInformation } from './GitCommitIdInformation';
33

44
export class GitCommitInformation {

0 commit comments

Comments
 (0)