-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: github data api * wip: point at production for metrics queries (REVERT BEFORE MERGE) * feat: use live data * chore: backfill script wip * chore: move metric prefixes to metrics repository * fix: eslint config * feat: backfill script * chore: tweak ui --------- Co-authored-by: Zack Pollard <[email protected]>
- Loading branch information
1 parent
a3fe960
commit 2befad4
Showing
35 changed files
with
1,126 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export VMETRICS_DATA_WRITE_TOKEN="op://tf_$ENVIRONMENT/vmetrics_data_write_token/token" | ||
export VMETRICS_DATA_ADMIN_TOKEN="op://tf_$ENVIRONMENT/vmetrics_data_admin_token/token" | ||
export VMETRICS_DATA_API_URL="https://data.immich.cloud" | ||
export GITHUB_INSTALLATION_ID="op://tf/github_app_immich_read_only/installation_id" | ||
export GITHUB_APP_ID="op://tf/github_app_immich_read_only/app_id" | ||
export GITHUB_PEM_FILE="op://tf/github_app_immich_read_only/pkcs8" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
import { FlatCompat } from '@eslint/eslintrc'; | ||
import js from '@eslint/js'; | ||
import typescriptEslint from '@typescript-eslint/eslint-plugin'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
import globals from 'globals'; | ||
import path from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all, | ||
}); | ||
|
||
export default [ | ||
{ | ||
ignores: ['eslint.config.mjs'], | ||
}, | ||
...compat.extends( | ||
'plugin:@typescript-eslint/recommended', | ||
), | ||
{ | ||
plugins: { | ||
'@typescript-eslint': typescriptEslint, | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
}, | ||
|
||
parser: tsParser, | ||
ecmaVersion: 5, | ||
sourceType: 'module', | ||
|
||
parserOptions: { | ||
project: 'tsconfig.json', | ||
tsconfigRootDir: __dirname, | ||
}, | ||
}, | ||
|
||
rules: { | ||
'@typescript-eslint/interface-name-prefix': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-floating-promises': 'error', | ||
'unicorn/prevent-abbreviations': 'off', | ||
'unicorn/filename-case': 'off', | ||
'unicorn/no-null': 'off', | ||
'unicorn/prefer-top-level-await': 'off', | ||
'unicorn/prefer-event-target': 'off', | ||
'unicorn/no-thenable': 'off', | ||
'unicorn/import-style': 'off', | ||
'unicorn/prefer-structured-clone': 'off', | ||
'@typescript-eslint/await-thenable': 'error', | ||
'@typescript-eslint/no-misused-promises': 'error', | ||
'require-await': 'off', | ||
'@typescript-eslint/require-await': 'error', | ||
curly: 2, | ||
'object-shorthand': ['error', 'always'], | ||
|
||
'no-restricted-imports': [ | ||
'error', | ||
{ | ||
patterns: [ | ||
{ | ||
group: ['.*'], | ||
message: 'Relative imports are not allowed.', | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
]; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.