hotfix/2026-03-27 - Missing chatter stuff.
This commit is contained in:
@@ -24,6 +24,15 @@
|
|||||||
- name: x-imex-auth
|
- name: x-imex-auth
|
||||||
value_from_env: DATAPUMP_AUTH
|
value_from_env: DATAPUMP_AUTH
|
||||||
comment: Project Mexico
|
comment: Project Mexico
|
||||||
|
- name: Chatter API Data Pump
|
||||||
|
webhook: '{{HASURA_API_URL}}/data/chatter-api'
|
||||||
|
schedule: 45 4 * * *
|
||||||
|
include_in_metadata: true
|
||||||
|
payload: {}
|
||||||
|
headers:
|
||||||
|
- name: x-imex-auth
|
||||||
|
value_from_env: DATAPUMP_AUTH
|
||||||
|
comment: ""
|
||||||
- name: Chatter Data Pump
|
- name: Chatter Data Pump
|
||||||
webhook: '{{HASURA_API_URL}}/data/chatter'
|
webhook: '{{HASURA_API_URL}}/data/chatter'
|
||||||
schedule: 45 5 * * *
|
schedule: 45 5 * * *
|
||||||
|
|||||||
@@ -2156,10 +2156,12 @@
|
|||||||
- active:
|
- active:
|
||||||
_eq: true
|
_eq: true
|
||||||
columns:
|
columns:
|
||||||
|
- commission_rates
|
||||||
- created_at
|
- created_at
|
||||||
- employeeid
|
- employeeid
|
||||||
- id
|
- id
|
||||||
- labor_rates
|
- labor_rates
|
||||||
|
- payout_method
|
||||||
- percentage
|
- percentage
|
||||||
- teamid
|
- teamid
|
||||||
- updated_at
|
- updated_at
|
||||||
@@ -2167,10 +2169,12 @@
|
|||||||
- role: user
|
- role: user
|
||||||
permission:
|
permission:
|
||||||
columns:
|
columns:
|
||||||
|
- commission_rates
|
||||||
- created_at
|
- created_at
|
||||||
- employeeid
|
- employeeid
|
||||||
- id
|
- id
|
||||||
- labor_rates
|
- labor_rates
|
||||||
|
- payout_method
|
||||||
- percentage
|
- percentage
|
||||||
- teamid
|
- teamid
|
||||||
- updated_at
|
- updated_at
|
||||||
@@ -2188,10 +2192,12 @@
|
|||||||
- role: user
|
- role: user
|
||||||
permission:
|
permission:
|
||||||
columns:
|
columns:
|
||||||
|
- commission_rates
|
||||||
- created_at
|
- created_at
|
||||||
- employeeid
|
- employeeid
|
||||||
- id
|
- id
|
||||||
- labor_rates
|
- labor_rates
|
||||||
|
- payout_method
|
||||||
- percentage
|
- percentage
|
||||||
- teamid
|
- teamid
|
||||||
- updated_at
|
- updated_at
|
||||||
@@ -2560,6 +2566,101 @@
|
|||||||
_eq: X-Hasura-User-Id
|
_eq: X-Hasura-User-Id
|
||||||
- active:
|
- active:
|
||||||
_eq: true
|
_eq: true
|
||||||
|
- table:
|
||||||
|
name: esignature_documents
|
||||||
|
schema: public
|
||||||
|
object_relationships:
|
||||||
|
- name: document
|
||||||
|
using:
|
||||||
|
foreign_key_constraint_on: documentid
|
||||||
|
- name: job
|
||||||
|
using:
|
||||||
|
foreign_key_constraint_on: jobid
|
||||||
|
insert_permissions:
|
||||||
|
- role: user
|
||||||
|
permission:
|
||||||
|
check:
|
||||||
|
job:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
columns:
|
||||||
|
- completed
|
||||||
|
- documentid
|
||||||
|
- external_document_id
|
||||||
|
- jobid
|
||||||
|
- message
|
||||||
|
- opened
|
||||||
|
- recipients
|
||||||
|
- rejected
|
||||||
|
- status
|
||||||
|
- subject
|
||||||
|
- title
|
||||||
|
comment: ""
|
||||||
|
select_permissions:
|
||||||
|
- role: user
|
||||||
|
permission:
|
||||||
|
columns:
|
||||||
|
- completed
|
||||||
|
- completed_at
|
||||||
|
- created_at
|
||||||
|
- documentid
|
||||||
|
- external_document_id
|
||||||
|
- id
|
||||||
|
- jobid
|
||||||
|
- message
|
||||||
|
- opened
|
||||||
|
- recipients
|
||||||
|
- rejected
|
||||||
|
- status
|
||||||
|
- subject
|
||||||
|
- title
|
||||||
|
- updated_at
|
||||||
|
filter:
|
||||||
|
job:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
comment: ""
|
||||||
|
update_permissions:
|
||||||
|
- role: user
|
||||||
|
permission:
|
||||||
|
columns:
|
||||||
|
- completed
|
||||||
|
- completed_at
|
||||||
|
- created_at
|
||||||
|
- documentid
|
||||||
|
- external_document_id
|
||||||
|
- message
|
||||||
|
- opened
|
||||||
|
- recipients
|
||||||
|
- rejected
|
||||||
|
- status
|
||||||
|
- subject
|
||||||
|
- title
|
||||||
|
- updated_at
|
||||||
|
filter:
|
||||||
|
job:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
check: null
|
||||||
|
comment: ""
|
||||||
- table:
|
- table:
|
||||||
name: eula_acceptances
|
name: eula_acceptances
|
||||||
schema: public
|
schema: public
|
||||||
@@ -3458,6 +3559,13 @@
|
|||||||
table:
|
table:
|
||||||
name: email_audit_trail
|
name: email_audit_trail
|
||||||
schema: public
|
schema: public
|
||||||
|
- name: esignature_documents
|
||||||
|
using:
|
||||||
|
foreign_key_constraint_on:
|
||||||
|
column: jobid
|
||||||
|
table:
|
||||||
|
name: esignature_documents
|
||||||
|
schema: public
|
||||||
- name: exportlogs
|
- name: exportlogs
|
||||||
using:
|
using:
|
||||||
foreign_key_constraint_on:
|
foreign_key_constraint_on:
|
||||||
@@ -6506,6 +6614,7 @@
|
|||||||
- id
|
- id
|
||||||
- jobid
|
- jobid
|
||||||
- memo
|
- memo
|
||||||
|
- payout_context
|
||||||
- productivehrs
|
- productivehrs
|
||||||
- rate
|
- rate
|
||||||
- task_name
|
- task_name
|
||||||
@@ -6531,6 +6640,7 @@
|
|||||||
- id
|
- id
|
||||||
- jobid
|
- jobid
|
||||||
- memo
|
- memo
|
||||||
|
- payout_context
|
||||||
- productivehrs
|
- productivehrs
|
||||||
- rate
|
- rate
|
||||||
- task_name
|
- task_name
|
||||||
@@ -6565,6 +6675,7 @@
|
|||||||
- id
|
- id
|
||||||
- jobid
|
- jobid
|
||||||
- memo
|
- memo
|
||||||
|
- payout_context
|
||||||
- productivehrs
|
- productivehrs
|
||||||
- rate
|
- rate
|
||||||
- task_name
|
- task_name
|
||||||
@@ -6748,6 +6859,7 @@
|
|||||||
- id
|
- id
|
||||||
- jobid
|
- jobid
|
||||||
- memo
|
- memo
|
||||||
|
- payout_context
|
||||||
- productivehrs
|
- productivehrs
|
||||||
- rate
|
- rate
|
||||||
- updated_at
|
- updated_at
|
||||||
@@ -6768,6 +6880,7 @@
|
|||||||
- id
|
- id
|
||||||
- jobid
|
- jobid
|
||||||
- memo
|
- memo
|
||||||
|
- payout_context
|
||||||
- productivehrs
|
- productivehrs
|
||||||
- rate
|
- rate
|
||||||
- updated_at
|
- updated_at
|
||||||
@@ -6798,6 +6911,7 @@
|
|||||||
- id
|
- id
|
||||||
- jobid
|
- jobid
|
||||||
- memo
|
- memo
|
||||||
|
- payout_context
|
||||||
- productivehrs
|
- productivehrs
|
||||||
- rate
|
- rate
|
||||||
- updated_at
|
- updated_at
|
||||||
|
|||||||
@@ -51,7 +51,8 @@ awslocal ses verify-email-identity --email-address noreply@imex.online --region
|
|||||||
|
|
||||||
# Secrets
|
# Secrets
|
||||||
ensure_secret_file "CHATTER_PRIVATE_KEY" "/tmp/certs/io-ftp-test.key"
|
ensure_secret_file "CHATTER_PRIVATE_KEY" "/tmp/certs/io-ftp-test.key"
|
||||||
ensure_secret_string "CHATTER_COMPANY_KEY_6713" "${CHATTER_COMPANY_KEY_6713:-REPLACE_ME}"
|
ensure_secret_string "CHATTER_COMPANY_KEY_6713" "${CHATTER_COMPANY_KEY_6713}"
|
||||||
|
ensure_secret_string "CHATTER_COMPANY_KEY_6746" "${CHATTER_COMPANY_KEY_6746}"
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
ensure_log_group "development"
|
ensure_log_group "development"
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ const createLocation = async (req, res) => {
|
|||||||
|
|
||||||
const chatterApi = await createChatterClient(DEFAULT_COMPANY_ID);
|
const chatterApi = await createChatterClient(DEFAULT_COMPANY_ID);
|
||||||
|
|
||||||
const locationIdentifier = `${DEFAULT_COMPANY_ID}-${bodyshop.id}`;
|
const locationIdentifier = bodyshop?.imexshopid ?? `${DEFAULT_COMPANY_ID}-${bodyshop.id}`;
|
||||||
|
|
||||||
const locationPayload = {
|
const locationPayload = {
|
||||||
name: bodyshop.shopname,
|
name: bodyshop.shopname,
|
||||||
|
|||||||
Reference in New Issue
Block a user