Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to deploy the App from Hasura Git #2

Open
cyrsis opened this issue Aug 12, 2021 · 0 comments
Open

Try to deploy the App from Hasura Git #2

cyrsis opened this issue Aug 12, 2021 · 0 comments

Comments

@cyrsis
Copy link

cyrsis commented Aug 12, 2021

Just try to have some fun make it from git deployment

Selected Specific Holder

"\hasura\

Got the following error

##Apply Meta

--- project
+++ server
@@ -1,580 +1,36 @@
-- array_relationships:
-  - name: orders_with_billing_address
-    using:
-      foreign_key_constraint_on:
-        column: billing_address_id
-        table: order
-  - name: orders_with_shipping_address
-    using:
-      foreign_key_constraint_on:
-        column: shipping_address_id
-        table: order
-  delete_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  - permission:
-      columns: '*'
-      filter:
-        user_id:
-          _eq: X-Hasura-User-Id
-    role: user
-  insert_permissions:
-  - permission:
-      check: {}
-      columns: '*'
-    role: site-admin
-  - permission:
-      check:
-        user_id:
-          _eq: X-Hasura-User-Id
-      columns: '*'
-    role: user
-  object_relationships:
-  - name: user
-    using:
-      foreign_key_constraint_on: user_id
-  select_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  - permission:
-      columns: '*'
-      filter:
-        user_id:
-          _eq: X-Hasura-User-Id
-    role: user
-  table:
-    name: address
+- table:
+    name: online_users
-  update_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  - permission:
-      columns: '*'
-      filter:
-        user_id:
-          _eq: X-Hasura-User-Id
-    role: user
-- delete_permissions:
-  - permission:
-      filter: {}
-    role: site-admin
-  insert_permissions:
-  - permission:
-      check: {}
-      columns: '*'
-    role: site-admin
-  select_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  table:
-    name: site_admin
+- table:
+    name: restaurant_tables
-  update_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-- array_relationships:
-  - name: products
-    using:
-      foreign_key_constraint_on:
-        column: order_id
-        table: order_product
-  delete_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  insert_permissions:
-  - permission:
-      check: {}
-      columns: '*'
-    role: site-admin
-  - permission:
-      check:
-        user_id:
-          _eq: X-Hasura-User-Id
-      columns: '*'
-    role: user
-  object_relationships:
-  - name: user
-    using:
-      foreign_key_constraint_on: user_id
-  - name: billing_address
-    using:
-      foreign_key_constraint_on: billing_address_id
-  - name: shipping_address
-    using:
-      foreign_key_constraint_on: shipping_address_id
-  - name: order_status
-    using:
-      foreign_key_constraint_on: status
-  select_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  - permission:
-      columns: '*'
-      filter:
-        user_id:
-          _eq: X-Hasura-User-Id
-    role: user
-  table:
-    name: order
+- table:
+    name: todos
-  update_permissions:
+- select_permissions:
-      columns: '*'
-      filter: {}
-    role: site-admin
-- delete_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  insert_permissions:
-  - permission:
-      check: {}
-      columns: '*'
-    role: site-admin
-  - permission:
-      check:
-        order:
-          user_id:
-            _eq: X-Hasura-User-Id
-      columns: '*'
-    role: user
-  object_relationships:
-  - name: order
-    using:
-      foreign_key_constraint_on: order_id
-  - name: product
-    using:
-      foreign_key_constraint_on: product_id
-  select_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  - permission:
-      columns: '*'
-      filter:
-        order:
-          user_id:
-            _eq: X-Hasura-User-Id
-    role: user
-  table:
-    name: order_product
-    schema: public
-  update_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-- array_relationships:
-  - name: orders
-    using:
-      foreign_key_constraint_on:
-        column: status
-        table: order
-  delete_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  insert_permissions:
-  - permission:
-      check: {}
-      columns: '*'
-    role: site-admin
-  is_enum: true
-  select_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  - permission:
-      columns: '*'
-      filter: {}
-    role: user
-  table:
-    name: order_status
-    schema: public
-  update_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-- array_relationships:
-  - name: orders
-    using:
-      foreign_key_constraint_on:
-        column: product_id
-        table: order_product
-  - name: product_reviews
-    using:
-      foreign_key_constraint_on:
-        column: product_id
-        table: product_review
-  delete_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  insert_permissions:
-  - permission:
-      check: {}
-      columns: '*'
-    role: site-admin
-  object_relationships:
-  - name: category
-    using:
-      foreign_key_constraint_on: category_display_name
-  select_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  - permission:
-      columns: '*'
-      filter: {}
-    role: anonymous
-  - permission:
-      columns: '*'
-      filter: {}
-    role: user
-  table:
-    name: product
-    schema: public
-  update_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-- array_relationships:
-  - name: products
-    using:
-      foreign_key_constraint_on:
-        column: category_display_name
-        table: product
-  delete_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  insert_permissions:
-  - permission:
-      check: {}
-      columns: '*'
-    role: site-admin
-  is_enum: true
-  select_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  - permission:
-      columns: '*'
-      filter: {}
-    role: anonymous
-  - permission:
-      columns: '*'
-      filter: {}
-    role: user
-  table:
-    name: product_category_enum
-    schema: public
-  update_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-- delete_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  - permission:
-      filter:
-        user:
-          id:
-            _eq: X-Hasura-User-Id
-          orders:
-            products:
-              id:
-                _ceq: product_id
-    role: user
-  insert_permissions:
-  - permission:
-      check: {}
-      columns: '*'
-    role: site-admin
-  - permission:
-      check:
-        user:
-          id:
-            _eq: X-Hasura-User-Id
-          orders:
-            products:
-              id:
-                _ceq: product_id
-      - product_id
-      - rating
-      - comment
-      set:
-        user_id: X-Hasura-User-Id
-    role: user
-  object_relationships:
-  - name: user
-    using:
-      foreign_key_constraint_on: user_id
-  - name: product
-    using:
-      foreign_key_constraint_on: product_id
-  select_permissions:
-  - permission:
-      columns: '*'
+      - photo_desc
+      - photo_url
+      - created_at
+      - updated_at
+      - id
-    role: user
-  - permission:
-      columns: '*'
-      filter: {}
-      columns: '*'
-      filter: {}
-    role: site-admin
-  table:
-    name: product_review
-    schema: public
-  update_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  - permission:
-      - product_id
-      - rating
-      - comment
-      filter:
-        user:
-          id:
-            _eq: X-Hasura-User-Id
-          orders:
-            products:
-              id:
-                _ceq: product_id
-      set:
-        user_id: X-Hasura-User-Id
-    role: user
-- array_relationships:
-  - name: addresses
-    using:
-      foreign_key_constraint_on:
-        column: user_id
-        table: address
-  - name: orders
-    using:
-      foreign_key_constraint_on:
-        column: user_id
-        table: order
-  - name: product_reviews
-    using:
-      foreign_key_constraint_on:
-        column: user_id
-        table: product_review
-  delete_permissions:
-  - permission:
+      - id
+      - photo_url
+      - photo_desc
+      - created_at
+      - updated_at
-    role: site-admin
-  insert_permissions:
-  - permission:
-      check: {}
-      columns: '*'
-    role: site-admin
-  select_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-  - permission:
-      columns: '*'
-      filter:
-        id:
-          _eq: X-Hasura-User-Id
-    role: user
+    role: public
-    name: user
+    name: user_photos
-  update_permissions:
-  - permission:
-      columns: '*'
-      filter: {}
-    role: site-admin
-actions:
-- name: adminLogin
-  definition:
-    kind: ""
-    type: query
-    handler: '{{NEXTJS_SERVER_URL}}/api/actions/admin-login'
-    arguments:
-    - name: params
-      type: AdminLoginInput!
-      description: null
-    output_type: JWT
-  permissions:
-  - role: anonymous
-- name: adminSignup
-  definition:
-    kind: synchronous
-    type: mutation
-    handler: '{{NEXTJS_SERVER_URL}}/api/actions/admin-signup'
-    arguments:
-    - name: params
-      type: AdminSignupInput!
-      description: null
-    output_type: JWT
-  permissions:
-  - role: site-admin
-- name: createPaymentIntent
-  definition:
-    kind: synchronous
-    type: mutation
-    handler: '{{NEXTJS_SERVER_URL}}/api/actions/create-payment-intent'
-    arguments:
-    - name: params
-      type: CreatePaymentIntentInput!
-      description: null
-    output_type: PaymentIntentClientSecret
-  permissions:
-  - role: anonymous
-  - role: site-admin
-  - role: user
-- name: login
-  definition:
-    kind: synchronous
-    type: mutation
-    handler: '{{NEXTJS_SERVER_URL}}/api/actions/login'
-    arguments:
-    - name: params
-      type: LoginInput!
-      description: null
-    output_type: JWT
-  permissions:
-  - role: anonymous
-- name: refreshToken
-  definition:
-    kind: ""
-    type: query
-    handler: '{{NEXTJS_SERVER_URL}}/api/actions/refresh-token'
-    arguments:
-    - name: params
-      type: RefreshTokenInput!
-      description: null
-    output_type: RefreshTokenJWT
-  permissions:
-  - role: anonymous
-  - role: site-admin
-  - role: user
-- name: signup
-  definition:
-    kind: synchronous
-    type: mutation
-    handler: '{{NEXTJS_SERVER_URL}}/api/actions/signup'
-    arguments:
-    - name: params
-      type: SignupInput!
-      description: null
-    output_type: JWT
-  permissions:
-  - role: anonymous
-custom_types:
-  enums: []
-  input_objects:
-  - name: SignupInput
-    fields:
-    - name: name
-      type: String!
-      description: null
-    - name: email
-      type: String!
-      description: null
-    - name: password
-      type: String!
-      description: null
-  - name: LoginInput
-    fields:
-    - name: email
-      type: String!
-      description: null
-    - name: password
-      type: String!
-      description: null
-  - name: AdminLoginInput
-    fields:
-    - name: email
-      type: String!
-      description: null
-    - name: password
-      type: String!
-      description: null
-  - name: AdminSignupInput
-    fields:
-    - name: name
-      type: String!
-      description: null
-    - name: email
-      type: String!
-      description: null
-    - name: password
-      type: String!
-      description: null
-  - name: CreatePaymentIntentInput
-    fields:
-    - name: paymentAmount
-      type: Float!
-      description: null
-  - name: RefreshTokenInput
-    fields:
-    - name: refreshToken
-      type: String!
-      description: null
-  objects:
-  - name: PaymentIntentClientSecret
-    fields:
-    - name: clientSecret
-      type: String!
-      description: null
-  - name: JWT
-    fields:
-    - name: name
-      type: String!
-      description: null
-    - name: email
-      type: String!
-      description: null
-    - name: token
-      type: String!
-      description: null
-    - name: refreshToken
-      type: String!
-      description: null
-  - name: RefreshTokenJWT
-    fields:
-    - name: token
-      type: String!
-      description: null
-  scalars: []
+- table:
+    name: users
+    schema: public

{
  "internal": [
    {
      "definition": {
        "schema": "public",
        "name": "order_status"
      },
      "reason": "Inconsistent object: no such table/view exists in source: \"order_status\"",
      "name": "table order_status in source default",
      "type": "table"
    },
    {
      "definition": {
        "schema": "public",
        "name": "order"
      },
      "reason": "Inconsistent object: no such table/view exists in source: \"order\"",
      "name": "table order in source default",
      "type": "table"
    },
    {
      "definition": {
        "schema": "public",
        "name": "site_admin"
      },
      "reason": "Inconsistent object: no such table/view exists in source: \"site_admin\"",
      "name": "table site_admin in source default",
      "type": "table"
    },
    {
      "definition": {
        "schema": "public",
        "name": "product_review"
      },
      "reason": "Inconsistent object: no such table/view exists in source: \"product_review\"",
      "name": "table product_review in source default",
      "type": "table"
    },
    {
      "definition": {
        "schema": "public",
        "name": "address"
      },
      "reason": "Inconsistent object: no such table/view exists in source: \"address\"",
      "name": "table address in source default",
      "type": "table"
    },
    {
      "definition": {
        "schema": "public",
        "name": "product"
      },
      "reason": "Inconsistent object: no such table/view exists in source: \"product\"",
      "name": "table product in source default",
      "type": "table"
    },
    {
      "definition": {
        "schema": "public",
        "name": "user"
      },
      "reason": "Inconsistent object: no such table/view exists in source: \"user\"",
      "name": "table user in source default",
      "type": "table"
    },
    {
      "definition": {
        "schema": "public",
        "name": "order_product"
      },
      "reason": "Inconsistent object: no such table/view exists in source: \"order_product\"",
      "name": "table order_product in source default",
      "type": "table"
    },
    {
      "definition": {
        "schema": "public",
        "name": "product_category_enum"
      },
      "reason": "Inconsistent object: no such table/view exists in source: \"product_category_enum\"",
      "name": "table product_category_enum in source default",
      "type": "table"
    },
    {
      "definition": {
        "definition": {
          "output_type": "JWT",
          "arguments": [
            {
              "name": "params",
              "type": "AdminLoginInput!",
              "description": null
            }
          ],
          "headers": [],
          "handler": "{{NEXTJS_SERVER_URL}}/api/actions/admin-login",
          "type": "query",
          "timeout": 30,
          "forward_client_headers": false
        },
        "name": "adminLogin",
        "comment": null
      },
      "reason": "Inconsistent object: in action \"adminLogin\"; Value for environment variables not found: NEXTJS_SERVER_URL",
      "name": "action adminLogin",
      "type": "action"
    },
    {
      "definition": {
        "definition": {
          "kind": "synchronous",
          "output_type": "PaymentIntentClientSecret",
          "arguments": [
            {
              "name": "params",
              "type": "CreatePaymentIntentInput!",
              "description": null
            }
          ],
          "headers": [],
          "handler": "{{NEXTJS_SERVER_URL}}/api/actions/create-payment-intent",
          "type": "mutation",
          "timeout": 30,
          "forward_client_headers": false
        },
        "name": "createPaymentIntent",
        "comment": null
      },
      "reason": "Inconsistent object: in action \"createPaymentIntent\"; Value for environment variables not found: NEXTJS_SERVER_URL",
      "name": "action createPaymentIntent",
      "type": "action"
    },
    {
      "definition": {
        "definition": {
          "output_type": "RefreshTokenJWT",
          "arguments": [
            {
              "name": "params",
              "type": "RefreshTokenInput!",
              "description": null
            }
          ],
          "headers": [],
          "handler": "{{NEXTJS_SERVER_URL}}/api/actions/refresh-token",
          "type": "query",
          "timeout": 30,
          "forward_client_headers": false
        },
        "name": "refreshToken",
        "comment": null
      },
      "reason": "Inconsistent object: in action \"refreshToken\"; Value for environment variables not found: NEXTJS_SERVER_URL",
      "name": "action refreshToken",
      "type": "action"
    },
    {
      "definition": {
        "definition": {
          "kind": "synchronous",
          "output_type": "JWT",
          "arguments": [
            {
              "name": "params",
              "type": "SignupInput!",
              "description": null
            }
          ],
          "headers": [],
          "handler": "{{NEXTJS_SERVER_URL}}/api/actions/signup",
          "type": "mutation",
          "timeout": 30,
          "forward_client_headers": false
        },
        "name": "signup",
        "comment": null
      },
      "reason": "Inconsistent object: in action \"signup\"; Value for environment variables not found: NEXTJS_SERVER_URL",
      "name": "action signup",
      "type": "action"
    },
    {
      "definition": {
        "definition": {
          "kind": "synchronous",
          "output_type": "JWT",
          "arguments": [
            {
              "name": "params",
              "type": "LoginInput!",
              "description": null
            }
          ],
          "headers": [],
          "handler": "{{NEXTJS_SERVER_URL}}/api/actions/login",
          "type": "mutation",
          "timeout": 30,
          "forward_client_headers": false
        },
        "name": "login",
        "comment": null
      },
      "reason": "Inconsistent object: in action \"login\"; Value for environment variables not found: NEXTJS_SERVER_URL",
      "name": "action login",
      "type": "action"
    },
    {
      "definition": {
        "definition": {
          "kind": "synchronous",
          "output_type": "JWT",
          "arguments": [
            {
              "name": "params",
              "type": "AdminSignupInput!",
              "description": null
            }
          ],
          "headers": [],
          "handler": "{{NEXTJS_SERVER_URL}}/api/actions/admin-signup",
          "type": "mutation",
          "timeout": 30,
          "forward_client_headers": false
        },
        "name": "adminSignup",
        "comment": null
      },
      "reason": "Inconsistent object: in action \"adminSignup\"; Value for environment variables not found: NEXTJS_SERVER_URL",
      "name": "action adminSignup",
      "type": "action"
    }
  ],
  "path": "$.args",
  "error": "cannot continue due to inconsistent metadata",
  "code": "unexpected"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant