From 0c0449aa17e07b7bc1c21af1c9f9e9e658026adc Mon Sep 17 00:00:00 2001 From: Dave Richer Date: Tue, 9 Apr 2024 12:54:58 -0400 Subject: [PATCH] - Hasura and PrettierRC Signed-off-by: Dave Richer --- .prettierrc.js | 48 +++++++++++++++++++++++++++++++++---- hasura/metadata/tables.yaml | 23 ++++++++++++++++++ 2 files changed, 67 insertions(+), 4 deletions(-) diff --git a/.prettierrc.js b/.prettierrc.js index f2c6fc849..509834503 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,3 +1,22 @@ +// Original Version +// exports.default = { +// printWidth: 120, +// useTabs: false, +// tabWidth: 2, +// trailingComma: 'es5', +// semi: true, +// singleQuote: false, +// bracketSpacing: true, +// arrowParens: 'always', +// jsxSingleQuote: false, +// bracketSameLine: false, +// endOfLine: 'lf', +// importOrder: ['^@core/(.*)$', '^@server/(.*)$', '^@ui/(.*)$', '^[./]'], +// importOrderSeparation: true, +// importOrderSortSpecifiers: true, +// }; + +// Modified Version (Works with current Changeset, minus files modified recently) const config = { printWidth: 120, useTabs: false, @@ -9,10 +28,31 @@ const config = { arrowParens: "always", jsxSingleQuote: false, bracketSameLine: false, - endOfLine: "lf", - importOrder: ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"], - importOrderSeparation: true, - importOrderSortSpecifiers: true + endOfLine: "lf" + // importOrder: ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"], + // importOrderSeparation: true, + // importOrderSortSpecifiers: true }; module.exports = config; + +// The warnings you're seeing are because the options importOrder, importOrderSeparation, and importOrderSortSpecifiers are not recognized by Prettier. These options are specific to the @trivago/prettier-plugin-sort-imports plugin, which you have removed from your Prettier configuration. To resolve these warnings, you should remove these options from your .prettierrc.js file. Here's how your updated .prettierrc.js file should look: + +// const config = { +// printWidth: 120, +// useTabs: false, +// tabWidth: 2, +// trailingComma: "es5", +// semi: true, +// singleQuote: true, +// bracketSpacing: true, +// arrowParens: "always", +// jsxSingleQuote: false, +// bracketSameLine: false, +// endOfLine: "lf", +// importOrder: ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"], +// importOrderSeparation: true, +// importOrderSortSpecifiers: true +// }; +// +// module.exports = config; diff --git a/hasura/metadata/tables.yaml b/hasura/metadata/tables.yaml index 7a9de6b10..94cba47e3 100644 --- a/hasura/metadata/tables.yaml +++ b/hasura/metadata/tables.yaml @@ -5797,6 +5797,29 @@ - active: _eq: true check: null + event_triggers: + - name: tasks_assigned_changed + definition: + enable_manual: false + insert: + columns: '*' + update: + columns: + - assigned_to + retry_conf: + interval_sec: 10 + num_retries: 3 + timeout_sec: 60 + webhook_from_env: HASURA_API_URL + headers: + - name: event-secret + value_from_env: EVENT_SECRET + request_transform: + method: POST + query_params: {} + template_engine: Kriti + url: '{{$base_url}}/tasks-assigned-handler' + version: 2 - table: name: timetickets schema: public