File tree Expand file tree Collapse file tree 7 files changed +33
-3
lines changed Expand file tree Collapse file tree 7 files changed +33
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @graphprotocol/graph-cli ' : patch
3
+ ---
4
+
5
+ remove ipfs check for studio deploys
Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @graphprotocol/graph-cli ' : minor
3
+ ---
4
+
5
+ Part of the Hosted Service migration throw an error when users are trying to use ` hosted-service ` product in ` graph [auth|deploy|init] ` commands.
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ interface CreateCompilerOptions {
11
11
outputDir : string ;
12
12
outputFormat : string ;
13
13
skipMigrations : boolean ;
14
+ // TODO: Remove this is unused
14
15
blockIpfsMethods ?: RegExpMatchArray ;
15
16
protocol : Protocol ;
16
17
}
Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ export default class AuthCommand extends Command {
57
57
required : true ,
58
58
} ) ) ;
59
59
60
+ // Poor var naming will cleanup later
61
+ ( { node } = chooseNodeUrl ( { product : node , studio : false } ) ) ;
62
+
60
63
// eslint-disable-next-line -- prettier has problems with ||=
61
64
deployKey =
62
65
deployKey ||
@@ -68,6 +71,10 @@ export default class AuthCommand extends Command {
68
71
this . error ( '✖ Deploy key must not exceed 200 characters' , { exit : 1 } ) ;
69
72
}
70
73
74
+ if ( product === 'hosted-service' || node ?. match ( / a p i .t h e g r a p h .c o m / ) ) {
75
+ this . error ( '✖ The hosted service is deprecated' , { exit : 1 } ) ;
76
+ }
77
+
71
78
try {
72
79
await saveDeployKey ( node ! , deployKey ) ;
73
80
print . success ( `Deploy key set for ${ node } ` ) ;
Original file line number Diff line number Diff line change @@ -281,6 +281,10 @@ export default class DeployCommand extends Command {
281
281
] )
282
282
. then ( ( { product } ) => product as string ) ) ;
283
283
284
+ if ( product === 'hosted-service' ) {
285
+ this . error ( '✖ The hosted service is deprecated' , { exit : 1 } ) ;
286
+ }
287
+
284
288
const { node } = chooseNodeUrl ( {
285
289
product,
286
290
studio,
@@ -455,7 +459,7 @@ export default class DeployCommand extends Command {
455
459
outputDir,
456
460
outputFormat : 'wasm' ,
457
461
skipMigrations,
458
- blockIpfsMethods : isStudio || undefined , // Network does not support publishing subgraphs with IPFS methods
462
+ blockIpfsMethods : undefined ,
459
463
protocol,
460
464
} ) ;
461
465
Original file line number Diff line number Diff line change @@ -201,6 +201,11 @@ export default class InitCommand extends Command {
201
201
} = flags ;
202
202
203
203
initDebugger ( 'Flags: %O' , flags ) ;
204
+
205
+ if ( product === 'hosted-service' ) {
206
+ this . error ( '✖ The hosted service is deprecated' , { exit : 1 } ) ;
207
+ }
208
+
204
209
let { node, allowSimpleName } = chooseNodeUrl ( {
205
210
product,
206
211
// if we are loading example, we want to ensure we are using studio
@@ -595,6 +600,10 @@ async function processInitForm(
595
600
} ,
596
601
] ) ;
597
602
603
+ if ( product == 'hosted-service' ) {
604
+ this . error ( '✖ The hosted service is deprecated' , { exit : 1 } ) ;
605
+ }
606
+
598
607
const { subgraphName } = await prompt . ask < { subgraphName : string } > ( [
599
608
{
600
609
type : 'input' ,
Original file line number Diff line number Diff line change @@ -201,8 +201,7 @@ describe.sequential(
201
201
'--skip-git' ,
202
202
'--protocol' ,
203
203
'near' ,
204
- '--product' ,
205
- 'hosted-service' ,
204
+ '--studio' ,
206
205
'--from-contract' ,
207
206
'app.good-morning.near' ,
208
207
'--network' ,
You can’t perform that action at this time.
0 commit comments