File tree Expand file tree Collapse file tree 6 files changed +7
-91
lines changed
reva-admin-react/src/app/(admin)/certification-authority-structures/[certificationAuthorityStructureId]
certificateurs-administrateurs/[certificationAuthorityId]/certifications
reva-api/modules/referential Expand file tree Collapse file tree 6 files changed +7
-91
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ const getCertificationAuthorityAndCertificationsQuery = graphql(`
27
27
label
28
28
}
29
29
}
30
- searchCertificationsForAdmin (limit: 500, offset: 0) {
30
+ searchCertificationsV2ForAdmin (limit: 500, offset: 0) {
31
31
rows {
32
32
id
33
33
codeRncp
@@ -97,7 +97,7 @@ export const useCertificationsPage = ({
97
97
98
98
const certifications = useMemo (
99
99
( ) =>
100
- getCertificationAuthorityAndCertificationsResponse ?. searchCertificationsForAdmin ?. rows
100
+ getCertificationAuthorityAndCertificationsResponse ?. searchCertificationsV2ForAdmin ?. rows
101
101
. map ( ( c ) => ( {
102
102
id : c . id ,
103
103
label : `${ c . codeRncp } - ${ c . label } ` ,
@@ -117,7 +117,7 @@ export const useCertificationsPage = ({
117
117
certificationAuthority ?. certificationAuthorityStructures ,
118
118
certificationAuthority ?. certifications ,
119
119
getCertificationAuthorityAndCertificationsResponse
120
- ?. searchCertificationsForAdmin ?. rows ,
120
+ ?. searchCertificationsV2ForAdmin ?. rows ,
121
121
] ,
122
122
) ;
123
123
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const getCertificationAuthorityStructureAndCertificationsQuery = graphql(`
20
20
label
21
21
}
22
22
}
23
- searchCertificationsForAdmin (limit: 500, offset: 0) {
23
+ searchCertificationsV2ForAdmin (limit: 500, offset: 0) {
24
24
rows {
25
25
id
26
26
codeRncp
@@ -93,7 +93,7 @@ export const useCertificationsPage = ({
93
93
94
94
const certifications = useMemo (
95
95
( ) =>
96
- getCertificationAuthorityStructureAndCertificationsResponse ?. searchCertificationsForAdmin ?. rows
96
+ getCertificationAuthorityStructureAndCertificationsResponse ?. searchCertificationsV2ForAdmin ?. rows
97
97
. map ( ( c ) => ( {
98
98
id : c . id ,
99
99
label : `${ c . codeRncp } - ${ c . label } ` ,
@@ -106,7 +106,7 @@ export const useCertificationsPage = ({
106
106
[
107
107
certificationAuthorityStructure ?. certifications ,
108
108
getCertificationAuthorityStructureAndCertificationsResponse
109
- ?. searchCertificationsForAdmin ?. rows ,
109
+ ?. searchCertificationsV2ForAdmin ?. rows ,
110
110
] ,
111
111
) ;
112
112
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -255,12 +255,6 @@ type Query {
255
255
organismId : UUID
256
256
searchText : String
257
257
): CertificationPage !
258
- searchCertificationsForAdmin (
259
- offset : Int
260
- limit : Int
261
- searchText : String
262
- status : CertificationStatus
263
- ): CertificationPage !
264
258
searchCertificationsV2ForAdmin (
265
259
offset : Int
266
260
limit : Int
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import { getRegions } from "./features/getRegions";
14
14
import { getReorientationReasons } from "./features/getReorientationReasons" ;
15
15
import { getVulnerabilityIndicators } from "./features/getVulnerabilityIndicators" ;
16
16
import { replaceCertification } from "./features/replaceCertification" ;
17
- import { searchCertificationsForAdmin } from "./features/searchCertificationsForAdmin" ;
18
17
import { searchCertificationsV2ForAdmin } from "./features/searchCertificationsV2ForAdmin" ;
19
18
import { updateCertification } from "./features/updateCertification" ;
20
19
import { updateCompetenceBlocsByCertificationId } from "./features/updateCompetenceBlocsByCertificationId" ;
@@ -115,13 +114,6 @@ const unsafeReferentialResolvers = {
115
114
searchText ?: string ;
116
115
} ,
117
116
) => searchCertificationsForCandidate ( payload ) ,
118
- searchCertificationsForAdmin : ( _ : any , payload : any ) =>
119
- searchCertificationsForAdmin ( {
120
- offset : payload . offset ,
121
- limit : payload . limit ,
122
- searchText : payload . searchText ,
123
- status : payload . status ,
124
- } ) ,
125
117
searchCertificationsV2ForAdmin : ( _ : any , payload : any ) =>
126
118
searchCertificationsV2ForAdmin ( {
127
119
offset : payload . offset ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const isAdminOrCertificationRegistryManagerOfCertification = [
13
13
export const referentialResolversSecurityMap = {
14
14
"Mutation.*" : defaultSecurity ,
15
15
16
- "Query.searchCertificationsForAdmin " : [ hasRole ( [ "admin" ] ) ] ,
16
+ "Query.searchCertificationsV2ForAdmin " : [ hasRole ( [ "admin" ] ) ] ,
17
17
18
18
"Mutation.referential_updateCertification" : [ hasRole ( [ "admin" ] ) ] ,
19
19
"Mutation.referential_replaceCertification" : [ hasRole ( [ "admin" ] ) ] ,
You can’t perform that action at this time.
0 commit comments