@dracul/audit-frontend 1.35.11 → 1.35.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dracul/audit-frontend",
3
- "version": "1.35.11",
3
+ "version": "1.35.12",
4
4
  "description": "Audit frontend",
5
5
  "author": "Cristian Incarnato <cristian.cdi@gmail.com>",
6
6
  "publishConfig": {
@@ -38,5 +38,5 @@
38
38
  "type": "git",
39
39
  "url": "git+https://github.com/draculjs/modular-framework.git"
40
40
  },
41
- "gitHead": "750fb29ad6271d5efbb26e8cf063a667e33bac52"
41
+ "gitHead": "342e52a3f499a40b77891cd8ca2267131a2223cd"
42
42
  }
@@ -293,7 +293,7 @@ export default {
293
293
  }
294
294
  }
295
295
 
296
- return audit.resourceData?.Spec?.Name || audit.details
296
+ return audit.resourceName || audit.resourceData?.Spec?.Name || audit.details
297
297
  },
298
298
  performSearch() {
299
299
  this.pageNumber = 1
@@ -22,43 +22,43 @@ export default {
22
22
  methods: {
23
23
  createNewAudit() {
24
24
  AuditProvider.createAudit('CREATE', 'Servicio', 'kdsf8rg9c48v', [], {
25
- "id": "7a6irev0so3iuiobiw1fpf08z",
26
- "name": "nuevoservicioTesting",
27
- "stack": "testing",
28
- "image": {
29
- "id": "",
30
- "fullname": "sndregistry.sondeosglobal.com/docs/snd-docs:latest",
31
- "domain": "sndregistry.sondeosglobal.com",
32
- "namespace": "docs",
33
- "name": "snd-docs",
34
- "tag": "latest",
35
- "nameWithTag": "snd-docs:latest"
36
- },
37
- "createdAt": "2024-12-09T14:38:53.389502821Z",
38
- "updatedAt": "2024-12-17T11:31:41.591560506Z",
39
- "labels": [
40
- {
41
- "name": "com.docker.stack.namespace",
42
- "value": "testing"
43
- }
44
- ],
45
- "envs": [
46
- {
47
- "name": "CONTROL_VERSION",
48
- "value": "41873"
49
- }
50
- ],
51
- "limits": {},
52
- "mode": "replic",
53
- "extraHosts": [],
54
- "dns": []
55
- })
25
+ "id": "7a6irev0so3iuiobiw1fpf08z",
26
+ "name": "nuevoservicioTesting",
27
+ "stack": "testing",
28
+ "image": {
29
+ "id": "",
30
+ "fullname": "sndregistry.sondeosglobal.com/docs/snd-docs:latest",
31
+ "domain": "sndregistry.sondeosglobal.com",
32
+ "namespace": "docs",
33
+ "name": "snd-docs",
34
+ "tag": "latest",
35
+ "nameWithTag": "snd-docs:latest"
36
+ },
37
+ "createdAt": "2024-12-09T14:38:53.389502821Z",
38
+ "updatedAt": "2024-12-17T11:31:41.591560506Z",
39
+ "labels": [
40
+ {
41
+ "name": "com.docker.stack.namespace",
42
+ "value": "testing"
43
+ }
44
+ ],
45
+ "envs": [
46
+ {
47
+ "name": "CONTROL_VERSION",
48
+ "value": "41873"
49
+ }
50
+ ],
51
+ "limits": {},
52
+ "mode": "replic",
53
+ "extraHosts": [],
54
+ "dns": []
55
+ }, 'FORTES')
56
56
  },
57
57
  updateAudit() {
58
58
  AuditProvider.createAudit('UPDATE', 'Servicio', 'kdsf8rg9c48v', [
59
59
  { field: 'name', oldValue: 'debops', newValue: 'devops' },
60
60
  { field: 'image', oldValue: 'sndregistry.sondeosglobal.com/docs/snd-docs', newValue: 'sndregistry.sondeosglobal.com/dockerway/docker-devops:2.13.0' },
61
- { field: 'stack', oldValue: 'docker', newValue: 'dockerway'}
61
+ { field: 'stack', oldValue: 'docker', newValue: 'dockerway' }
62
62
  ])
63
63
  },
64
64
  deleteAudit() {
@@ -41,10 +41,10 @@ class AuditProvider {
41
41
  })
42
42
  }
43
43
 
44
- createAudit(action, entity, details, changes, resourceData){
44
+ createAudit(action, entity, details, changes, resourceData, resourceName){
45
45
  return this.getGraphqlClient().mutate({
46
46
  mutation: require('./gql/Audit/createAudit.graphql'),
47
- variables: {action, entity, details, changes, resourceData},
47
+ variables: {action, entity, details, changes, resourceData, resourceName},
48
48
  fetchPolicy: "no-cache"
49
49
  })
50
50
  }
@@ -3,9 +3,10 @@ mutation createAudit(
3
3
  $entity: String!,
4
4
  $details: String,
5
5
  $changes: [ChangesInput],
6
- $resourceData: JSON
6
+ $resourceData: JSON,
7
+ $resourceName: String,
7
8
  ) {
8
- createAudit(action: $action, entity: $entity, details: $details, changes: $changes, resourceData: $resourceData) {
9
+ createAudit(action: $action, entity: $entity, details: $details, changes: $changes, resourceData: $resourceData, resourceName: $resourceName) {
9
10
  id
10
11
  user {
11
12
  username
@@ -19,5 +20,6 @@ mutation createAudit(
19
20
  newValue
20
21
  }
21
22
  resourceData
23
+ resourceName
22
24
  }
23
25
  }
@@ -14,6 +14,7 @@ query fetchAudit{
14
14
  newValue
15
15
  }
16
16
  resourceData
17
+ resourceName
17
18
  }
18
19
  }
19
20
 
@@ -14,5 +14,6 @@ query findAudit($id:ID!){
14
14
  newValue
15
15
  }
16
16
  resourceData
17
+ resourceName
17
18
  }
18
19
  }
@@ -22,6 +22,7 @@ query paginateAudit( $pageNumber: Int, $itemsPerPage:Int, $search: String, $filt
22
22
  newValue
23
23
  }
24
24
  resourceData
25
+ resourceName
25
26
  }
26
27
  }
27
28
  }