Skip to content

Commit f7f109a

Browse files
Merge branch 'develop' into feature_2822
2 parents b72e147 + 3649a31 commit f7f109a

File tree

10 files changed

+413
-268
lines changed

10 files changed

+413
-268
lines changed

roles/database/files/sql/idempotent/fworch-texts.sql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,14 @@ INSERT INTO txt VALUES ('displayRejected', 'German', 'Abgelehnte anzeigen')
11541154
INSERT INTO txt VALUES ('displayRejected', 'English', 'Display rejected');
11551155
INSERT INTO txt VALUES ('add_interface', 'German', 'Schnittstelle hinzufügen');
11561156
INSERT INTO txt VALUES ('add_interface', 'English', 'Add Interface');
1157+
INSERT INTO txt VALUES ('edit_interface', 'German', 'Schnittstelle bearbeiten');
1158+
INSERT INTO txt VALUES ('edit_interface', 'English', 'Edit Interface');
1159+
INSERT INTO txt VALUES ('interface_contain_nwarea','German','Schnittstellen dürfen keine Netzbereiche enthalten');
1160+
INSERT INTO txt VALUES ('interface_contain_nwarea','English','Interfaces must not contain network areas');
1161+
INSERT INTO txt VALUES ('direction_contain_nwarea','German','Quelle und Ziel dürfen nicht gleichzeitig einen Netzbereich enthalten');
1162+
INSERT INTO txt VALUES ('direction_contain_nwarea','English','Source and destination must not contain a network area at the same time');
1163+
INSERT INTO txt VALUES ('only_common_service', 'German', 'Dieser Netzbereich kann nur in der Registerkarte Gemeinsame Dienste verwendet werden.');
1164+
INSERT INTO txt VALUES ('only_common_service', 'English', 'This network area can only be used in common services tab');
11571165
INSERT INTO txt VALUES ('delete_interface', 'German', 'Schnittstelle löschen');
11581166
INSERT INTO txt VALUES ('delete_interface', 'English', 'Delete Interface');
11591167
INSERT INTO txt VALUES ('insert_forbidden', 'German', 'Einfügen verboten');

roles/lib/files/FWO.Api.Client/APIcalls/allObjects/getAllObjectDetails.graphql

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ query getAllObjectDetails (
22
$management_id: [Int!]
33
$type: [String!]
44
$uid: [String!]
5-
$time: String
5+
$import_id: bigint
66
$obj_name: [String!]
77
$limit: Int
88
$offset: Int
@@ -25,7 +25,8 @@ query getAllObjectDetails (
2525
offset: $offset
2626
where: {
2727
stm_obj_typ: { obj_typ_name: { _in: $type } }
28-
active: { _eq: true }
28+
obj_last_seen: { _gte: $import_id }
29+
obj_create: { _lte: $import_id }
2930
obj_name: { _in: $obj_name }
3031
obj_uid: { _in: $uid }
3132
}
@@ -38,7 +39,8 @@ query getAllObjectDetails (
3839
offset: $offset
3940
where: {
4041
stm_svc_typ: { svc_typ_name: { _in: $type } }
41-
active: { _eq: true }
42+
svc_last_seen: { _gte: $import_id }
43+
svc_create: { _lte: $import_id }
4244
svc_name: { _in: $obj_name }
4345
svc_uid: { _in: $uid }
4446
}
@@ -51,7 +53,8 @@ query getAllObjectDetails (
5153
offset: $offset
5254
where: {
5355
stm_usr_typ: { usr_typ_name: { _in: $type } }
54-
active: { _eq: true }
56+
user_last_seen: { _gte: $import_id }
57+
user_create: { _lte: $import_id }
5558
user_name: { _in: $obj_name }
5659
user_uid: { _in: $uid }
5760
}

roles/lib/files/FWO.Api.Client/APIcalls/networkObject/getNetworkObjectDetails.graphql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ query getNetworkObjectDetails(
22
$management_id: [Int!]
33
$nwObjTyp: [String!]
44
$nwObjUid: [String!]
5-
$time: String
5+
$import_id: bigint
66
$obj_name: [String!]
77
$obj_ip: [cidr!]
88
$limit: Int
@@ -16,12 +16,13 @@ query getNetworkObjectDetails(
1616
offset: $offset
1717
where: {
1818
stm_obj_typ: { obj_typ_name: { _in: $nwObjTyp } }
19-
active: { _eq: true }
19+
obj_last_seen: { _gte: $import_id }
20+
obj_create: { _lte: $import_id }
2021
obj_name: { _in: $obj_name }
2122
obj_ip: { _in: $obj_ip }
2223
obj_uid: { _in: $nwObjUid }
2324
}
24-
order_by: { obj_name: asc }
25+
order_by: [{ obj_name: asc }, { obj_id: asc }]
2526
) {
2627
...networkObjectDetails
2728
}

roles/lib/files/FWO.Api.Client/APIcalls/networkService/getNetworkServiceDetails.graphql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
query getNetworkServiceDetails(
22
$management_id: [Int!]
3-
$time: String
3+
$import_id: bigint
44
$svc_name: [String!]
55
$svc_port: [Int!]
66
$limit: Int
@@ -13,11 +13,12 @@ query getNetworkServiceDetails(
1313
limit: $limit
1414
offset: $offset
1515
where: {
16-
active: { _eq: true }
16+
svc_last_seen: { _gte: $import_id }
17+
svc_create: { _lte: $import_id }
1718
svc_name: { _in: $svc_name }
1819
svc_port: { _in: $svc_port }
1920
}
20-
order_by: { svc_name: asc }
21+
order_by: [{ svc_name: asc }, { svc_id: asc }]
2122
) {
2223
...networkServiceDetails
2324
}

roles/lib/files/FWO.Api.Client/APIcalls/user/getUserDetails.graphql

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
query listUsers(
1+
query getUserDetails(
22
$management_id: [Int!]
3-
$time: String
3+
$import_id: bigint
44
$user_name: [String!]
55
$limit: Int
66
$offset: Int
@@ -11,8 +11,12 @@ query listUsers(
1111
userObjects: usrs(
1212
limit: $limit
1313
offset: $offset
14-
where: { active: { _eq: true }, user_name: { _in: $user_name } }
15-
order_by: { user_name: asc }
14+
where: {
15+
user_last_seen: { _gte: $import_id }
16+
user_create: { _lte: $import_id }
17+
user_name: { _in: $user_name }
18+
}
19+
order_by: [{ user_name: asc }, { user_id: asc }]
1620
) {
1721
...userDetails
1822
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace FWO.Data
2+
{
3+
public enum Direction
4+
{
5+
Source,
6+
Destination
7+
}
8+
}

0 commit comments

Comments
 (0)