Skip to content

Commit

Permalink
Merge branch 'main' into kc/automation-for-readme-and-logo
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik authored Aug 14, 2024
2 parents 00db661 + 8a2bb13 commit f269b8f
Show file tree
Hide file tree
Showing 19 changed files with 181 additions and 41 deletions.
1 change: 0 additions & 1 deletion .github/workflows/registry-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
files: |
registry/**
- name: Print out all the changed filse
env:
ADDED_FILES: ${{ steps.connector-version-changed-files.outputs.added_files }}
Expand Down
16 changes: 12 additions & 4 deletions registry-automation/cmd/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ func uploadConnectorVersionPackage(client *storage.Client, connector Connector,
return connectorVersion, err
}

uploadedTgzUrl, err := uploadConnectorVersionDefinition(client, connector.Name, connector.Namespace, version, connectorMetadataTgzPath)
uploadedTgzUrl, err := uploadConnectorVersionDefinition(client, connector.Namespace, connector.Name, version, connectorMetadataTgzPath)
if err != nil {
return connectorVersion, fmt.Errorf("failed to upload the connector version definition - connector: %v version:%v - err: %v", connector.Name, version, err)
} else {
Expand Down Expand Up @@ -623,7 +623,7 @@ func buildRegistryPayload(
uploadedConnectorDefinitionTgzUrl string,
) (ConnectorVersion, error) {
var connectorVersion ConnectorVersion
var connectorVersionDockerImage string
var connectorVersionDockerImage string = ""
connectorVersionPackagingDefinition, ok := connectorVersionMetadata["packagingDefinition"].(map[interface{}]interface{})
if !ok {
return connectorVersion, fmt.Errorf("could not find the 'packagingDefinition' of the connector %s version %s in the connector's metadata", connectorName, version)
Expand Down Expand Up @@ -660,11 +660,19 @@ func buildRegistryPayload(
connectorVersionType = ManagedDockerBuild
}

var connectorVersionImage *string

if connectorVersionDockerImage == "" {
connectorVersionImage = nil
} else {
connectorVersionImage = &connectorVersionDockerImage
}

connectorVersion = ConnectorVersion{
Namespace: connectorNamespace,
Name: connectorName,
Version: version,
Image: &connectorVersionDockerImage,
Image: connectorVersionImage,
PackageDefinitionURL: uploadedConnectorDefinitionTgzUrl,
IsMultitenant: connectorInfo.HubRegistryConnector[0].MultitenantConnector != nil,
Type: connectorVersionType,
Expand All @@ -680,7 +688,7 @@ func updateRegistryGQL(payload []ConnectorVersion) error {

req := graphql.NewRequest(`
mutation InsertConnectorVersion($connectorVersion: [hub_registry_connector_version_insert_input!]!) {
insert_hub_registry_connector_version(objects: $connectorVersion, on_conflict: {constraint: connector_version_namespace_name_version_key, update_columns: [image, package_definition_url]}) {
insert_hub_registry_connector_version(objects: $connectorVersion, on_conflict: {constraint: connector_version_namespace_name_version_key, update_columns: [image, package_definition_url, is_multitenant]}) {
affected_rows
returning {
id
Expand Down
23 changes: 1 addition & 22 deletions registry/hasura/azure-cosmos/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,7 @@
"is_verified": true,
"is_hosted_by_hasura": true,
"packages": [
{
"version": "0.1.3",
"uri": "https://github.com/hasura/ndc-azure-cosmos-connector/releases/download/v0.1.3/connector-definition.tgz",
"checksum": {
"type": "sha256",
"value": "34655ff615be0d5738ffe1811972776808e9880a6fa3ec673123844c648154d7"
},
"source": {
"hash": "97032d1a41fd932d637b5ba24ca6611d9e1f4905"
}
},
{
"version": "0.1.2",
"uri": "https://github.com/hasura/ndc-azure-cosmos-connector/releases/download/v0.1.2/connector-definition.tgz",
"checksum": {
"type": "sha256",
"value": "09ce246a9039d2aaf799a7e0402b243fb3763ba802535348a9fee243de1bf1b7"
},
"source": {
"hash": "f67b2f80d64175a055a9489d4e59f30d5d3870a0"
}
}

],
"source_code": {
"is_open_source": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.1.2",
"uri": "https://github.com/hasura/ndc-azure-cosmos-connector/releases/download/v0.1.2/connector-definition.tgz",
"checksum": {
"type": "sha256",
"value": "09ce246a9039d2aaf799a7e0402b243fb3763ba802535348a9fee243de1bf1b7"
},
"source": {
"hash": "f67b2f80d64175a055a9489d4e59f30d5d3870a0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.1.3",
"uri": "https://github.com/hasura/ndc-azure-cosmos-connector/releases/download/v0.1.3/connector-definition.tgz",
"checksum": {
"type": "sha256",
"value": "34655ff615be0d5738ffe1811972776808e9880a6fa3ec673123844c648154d7"
},
"source": {
"hash": "97032d1a41fd932d637b5ba24ca6611d9e1f4905"
}
}
24 changes: 12 additions & 12 deletions registry/hasura/elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ Below, you'll find a matrix of all supported features for the Elasticsearch conn
<!-- DocDB matrix -->

| Feature | Supported | Notes |
| ------------------------------- | --------- | ----- |
| Native Queries + Logical Models | | |
| Simple Object Query | | |
| Filter / Search | | |
| Simple Aggregation | | |
| Sort | | |
| Paginate | | |
| Nested Objects | | |
| Nested Arrays | | |
| Nested Filtering | | |
| Nested Sorting | | |
| Nested Relationships | | |
| ------------------------------- | -------- | ----- |
| Native Queries + Logical Models | | |
| Simple Object Query || |
| Filter / Search || |
| Simple Aggregation || |
| Sort || |
| Paginate || |
| Nested Objects || |
| Nested Arrays || |
| Nested Filtering || |
| Nested Sorting || |
| Nested Relationships || |


## Before you get Started
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.1.0",
"uri": "https://github.com/hasura/ndc-elasticsearch/releases/download/v0.1.0/connector-definition.tgz",
"checksum": {
"type": "sha256",
"value": "a856e10b6b30b516db2bb38af08037ad5db32bfd4ec072270fb8685872e13d5b"
},
"source": {
"hash": "4c6fabedaf3a28cdd6c55a18a37e1db974a83262"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.1.1",
"uri": "https://github.com/hasura/ndc-elasticsearch/releases/download/v0.1.1/connector-definition.tgz",
"checksum": {
"type": "sha256",
"value": "60629c9b24467fa4ed58c87732410203eedbdee31cdd18e90c635f10d23a8e23"
},
"source": {
"hash": "413a2a4ddfd1910757c40c38e9a18148bc3b3bdc"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"uri": "https://github.com/hasura/ndc-elasticsearch/releases/download/v0.2.0/connector-definition.tgz",
"checksum": {
"type": "sha256",
"value": "7ba4762ae3863a2ea149a5ecf4a93f19a7889f9d36dde27b1cb60b6758ad0e3a"
},
"source": {
"hash": "f5938f8c76829de7f16cf291c95a06f590b16d9a"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "1.0.0",
"uri": "https://github.com/hasura/ndc-elasticsearch/releases/download/v1.0.0/connector-definition.tgz",
"checksum": {
"type": "sha256",
"value": "6ca06b00361a272b0afd7ce5ac314a12460b9c99336e43a4a317de00f00ae6ae"
},
"source": {
"hash": "9f1f508f551b4a9dec02c49e3312f38c24bb16c4"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "1.0.1",
"uri": "https://github.com/hasura/ndc-elasticsearch/releases/download/v1.0.1/connector-definition.tgz",
"checksum": {
"type": "sha256",
"value": "83b0b4f5b1f60a50e303f6354c4d48d397fc7d0a361eb8a14d8fe11b63fe6abd"
},
"source": {
"hash": "72fad205f57e88781da6acafe1e03a7d220467c7"
}
}
11 changes: 11 additions & 0 deletions registry/hasura/mysql/releases/v0.1.0/connector-packaging.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.1.0",
"uri": "https://github.com/hasura/ndc-jvm-mono/releases/download/mysql%2Fv0.1.0/package.tar.gz",
"checksum": {
"type": "sha256",
"value": "09b51f9be725099345159880d21efb712776bfd09291a0daa81d7e7b1418ca2c"
},
"source": {
"hash": "145792746281b606bcef2dfe20d1f0ad69efe01e"
}
}
4 changes: 2 additions & 2 deletions registry/hasura/open-api-lambda/metadata.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"overview": {
"namespace": "hasura",
"description": "The Open API Lambda Connector allows you to import already existing APIs specified by the Open API Spec into you Hasura DDN subgraphs",
"title": "Open API Lambda Connector",
"description": "The OpenAPI Lambda Connector allows you to import already existing APIs specified by the Open API Spec into you Hasura DDN subgraphs",
"title": "OpenAPI Lambda Connector",
"logo": "logo.png",
"tags": [],
"latest_version": "v0.1.1"
Expand Down
11 changes: 11 additions & 0 deletions registry/hasura/oracle/releases/v0.1.0/connector-packaging.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.1.0",
"uri": "https://github.com/hasura/ndc-jvm-mono/releases/download/oracle%2Fv0.1.0/package.tar.gz",
"checksum": {
"type": "sha256",
"value": "0d837408a213f55df34062b96a2ac7fabcf8c61891918b6b2754d90fc61dd24c"
},
"source": {
"hash": "145792746281b606bcef2dfe20d1f0ad69efe01e"
}
}
11 changes: 11 additions & 0 deletions registry/hasura/postgres/releases/v1.0.2/connector-packaging.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "1.0.2",
"uri": "https://github.com/hasura/ndc-postgres/releases/download/v1.0.2/package.tar.gz",
"checksum": {
"type": "sha256",
"value": "38d4f4a843b3cc7c1b798c21594c8ffcbcd7595c5d456927ea61fe02a7f9d80f"
},
"source": {
"hash": "1378805c72a16934788d3ab6a5bc767f8f0b9741"
}
}
11 changes: 11 additions & 0 deletions registry/hasura/snowflake/releases/v0.1.0/connector-packaging.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.1.0",
"uri": "https://github.com/hasura/ndc-jvm-mono/releases/download/snowflake%2Fv0.1.0/package.tar.gz",
"checksum": {
"type": "sha256",
"value": "564757bc44bebe56560fe21a1306507d160caf084d69556bded4a7ed392e1b41"
},
"source": {
"hash": "145792746281b606bcef2dfe20d1f0ad69efe01e"
}
}
11 changes: 11 additions & 0 deletions registry/hasura/sqlserver/releases/v0.1.0/connector-packaging.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.1.0",
"uri": "https://github.com/hasura/ndc-sqlserver/releases/download/v0.1.0/package.tar.gz",
"checksum": {
"type": "sha256",
"value": "5f47a1df3055b694ffaf13058e201ac0fa83db53ce2044cd15eeaaa841565cb4"
},
"source": {
"hash": "e26d6bd1a22540dcf5c5b29460260c2d23ff2657"
}
}
11 changes: 11 additions & 0 deletions registry/hasura/sqlserver/releases/v0.1.1/connector-packaging.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.1.1",
"uri": "https://github.com/hasura/ndc-sqlserver/releases/download/v0.1.1/package.tar.gz",
"checksum": {
"type": "sha256",
"value": "340f11a2dbc180af838327c09949ac0dc14c94eb87b0d6b5a28c765ec928b1a9"
},
"source": {
"hash": "638a2b608f7a9c4625de7df35c61c909d2ce16b1"
}
}
11 changes: 11 additions & 0 deletions registry/hasura/sqlserver/releases/v0.1.2/connector-packaging.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.1.2",
"uri": "https://github.com/hasura/ndc-sqlserver/releases/download/v0.1.2/package.tar.gz",
"checksum": {
"type": "sha256",
"value": "102c642b2e0ddea1eaa471c5189ecd3423a20f91ad83995e09f9d4721dd85732"
},
"source": {
"hash": "bc0fd3d126f6c142587e014aa900fc6bc90cd59d"
}
}

0 comments on commit f269b8f

Please sign in to comment.