-
Notifications
You must be signed in to change notification settings - Fork 13
Conversation
@@ -15,7 +15,7 @@ import { | |||
} from './constants'; | |||
import { CloudSourceRepositoriesStepsSpec } from '../cloud-source-repositories/constants'; | |||
import { cloudfunctions_v1 } from 'googleapis'; | |||
import { STEP_CLOUD_STORAGE_BUCKETS } from '../storage'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get rid of this and use the new constant?
src/steps/storage/constants.ts
Outdated
@@ -2,3 +2,18 @@ export const CLOUD_STORAGE_BUCKET_ENTITY_CLASS = 'DataStore'; | |||
export const CLOUD_STORAGE_BUCKET_ENTITY_TYPE = 'google_storage_bucket'; | |||
|
|||
export const STEP_CLOUD_STORAGE_BUCKETS = 'fetch-cloud-storage-buckets'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be able to remove these lines
8405221
to
1182ed7
Compare
src/steps/app-engine/index.ts
Outdated
CLOUD_STORAGE_BUCKET_ENTITY_TYPE, | ||
STEP_CLOUD_STORAGE_BUCKETS, | ||
} from '../storage'; | ||
import { StorageEntitiesSpec, StorageStepsSpec } from '../storage'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the export * from './constants'
line from storage/index.ts
? Exporting from index.ts
can quickly lead to circular dependencies, so it's much better to always import from constants
and to stop the practice of export * from './constants'
.
import { StorageEntitiesSpec, StorageStepsSpec } from '../storage'; | |
import { StorageEntitiesSpec, StorageStepsSpec } from '../storage/constants'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in commit f007ff0 :)
1182ed7
to
f007ff0
Compare
87b7d88
to
44fd8ab
Compare
f007ff0
to
d26edbe
Compare
d26edbe
to
2dd5a03
Compare
🚀 PR was released in |
Refactor
storage
constants to match new structure requirements.