Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Gcp enhancement milestone1 #657

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open

Conversation

Bharatkk-metron
Copy link
Collaborator

@Bharatkk-metron Bharatkk-metron commented Apr 30, 2024

Services:

Cloud Spanner
Code Deploy
Cloud Router
AlloyDB for PostgreSQL

Miro Board Link:

https://miro.com/app/board/uXjVNrblgf8=/

@Bharatkk-metron Bharatkk-metron requested a review from a team as a code owner April 30, 2024 14:11
Copy link

socket-security bot commented Apr 30, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@aws-sdk/[email protected] environment Transitive: filesystem, network, shell +61 3.43 MB aws-sdk-bot
npm/@aws-sdk/[email protected] None +1 282 kB aws-sdk-bot
npm/@babel/[email protected] environment +6 120 kB nicolo-ribaudo
npm/@babel/[email protected] environment, filesystem, unsafe Transitive: shell +30 5.56 MB nicolo-ribaudo
npm/@babel/[email protected] None +3 624 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 11.7 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 1.88 MB nicolo-ribaudo
npm/@babel/[email protected] None 0 68.9 kB nicolo-ribaudo
npm/@babel/[email protected] environment +3 2.5 MB nicolo-ribaudo
npm/@eslint-community/[email protected] None 0 431 kB eslint-community-bot
npm/@jridgewell/[email protected] None 0 53.2 kB jridgewell
npm/@jridgewell/[email protected] None 0 169 kB jridgewell
npm/@jupiterone/[email protected] environment Transitive: eval, unsafe +6 2.29 MB jupiterone-dev
npm/@jupiterone/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +519 86.7 MB jupiterone-dev
npm/@jupiterone/[email protected] environment Transitive: eval, filesystem, network, shell, unsafe +181 23.3 MB jupiterone-dev
npm/@lifeomic/[email protected] None 0 33.5 kB lifeomicdev
npm/@types/[email protected] None 0 84.1 kB types
npm/@types/[email protected] None 0 4.72 kB types
npm/@types/[email protected] None 0 10.9 kB types
npm/@types/[email protected] None 0 5.45 kB types
npm/@types/[email protected] None 0 31.7 kB types
npm/@types/[email protected] Transitive: filesystem, network +2 82.6 kB types
npm/@types/[email protected] None +1 2.04 MB types
npm/@types/[email protected] None 0 23.3 kB types
npm/@typescript-eslint/[email protected] Transitive: environment, eval, filesystem, unsafe +61 44 MB jameshenry
npm/[email protected] None 0 531 kB marijn
npm/[email protected] None 0 32.1 kB sindresorhus
npm/[email protected] environment +1 215 kB jonschlinkert
npm/[email protected] None 0 32.3 kB eslintbot
npm/[email protected] Transitive: unsafe +16 940 kB simenb
npm/[email protected] filesystem +1 109 kB mrmlnc
npm/[email protected] environment, network +4 302 kB google-wombot
npm/[email protected] eval +5 127 kB ljharb
npm/[email protected] environment, filesystem, shell +7 1.14 MB google-wombot
npm/[email protected] None 0 51.5 kB kael
npm/[email protected] None 0 34.4 kB oss-bot
npm/[email protected] environment +7 606 kB simenb
npm/[email protected] network +3 493 kB node-fetch-bot
npm/[email protected] Transitive: environment +4 546 kB simenb
npm/[email protected] None 0 33.5 kB google-wombot
npm/[email protected] None 0 247 kB ljharb
npm/[email protected] None +2 125 kB npm-cli-ops
npm/[email protected] None +9 262 kB ljharb
npm/[email protected] environment, filesystem, unsafe +13 33.8 MB blakeembrey

🚮 Removed packages: npm/@aws-sdk/[email protected], npm/@aws-sdk/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@eslint-community/[email protected], npm/@jridgewell/[email protected], npm/@jridgewell/[email protected], npm/@jridgewell/[email protected], npm/@jupiterone/[email protected], npm/@jupiterone/[email protected], npm/@jupiterone/[email protected], npm/@lifeomic/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@smithy/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

CHANGELOG.md Outdated
@@ -1,8 +1,64 @@
# v3.4.0 (Tue Apr 28 2024)

### Added
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Readme is updated automatically, no need to update this manually.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the added content.

description: 'AlloyDB for Postgre SQL Connection.',
defaultsToDisabled: false,
},
[IngestionSources.PROJECT_HAS_ALLOYDB_SERVICE_RELATIONSHIP]: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We usually don't include to ingest sources relationships steps, we include ingestion steps only

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed from all relationships.

};
return createGoogleCloudIntegrationEntity(data, {
entityData: {
source: {},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add data to the source

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.

@@ -0,0 +1,80 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove snaps. We don't longer use them

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed all snapshot files.

ingestionSourceId: IngestionSources.ALLOYDB_POSTGRE_SQL_BACKUP,
name: 'fetch-alloydb-postgre-sql-backup',
entities: [
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the new approaches, we usually create constants to declare entities and relationships.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Followed the new approach for all the new steps.

entities: [],
relationships: [
{
_type: RELATIONSHIP_TYPE_CLOUD_DEPLOY_SERVICE_HAS_DELIVERY_PIPELINE,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to a constant

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

name: 'Cloud Deploy Automation',
entities: [
{
resourceName: 'Cloud Deploy Automation',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to a constant

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

relationships: [
{
_class: RelationshipClass.HAS,
_type: RELATIONSHIP_TYPE_COMPUTE_NETWORK_HAS_ROUTER,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to a constant

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

name: 'Compute Router',
entities: [
{
resourceName: 'Cloud Compute Router',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to a constant

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

test('should convert to entity', () => {
expect(
createKmsCryptoKeyEntity({
cryptoKey: getMockKmsCryptoKey(),
location: 'us',
projectId: 'j1-gc-integration-dev-v2',
projectId: 'j1-gc-integration-dev-v3',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this updated? We do have the matchRequestById in the recordings

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants