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

fix(dashboard filters): add "previous quarter" as option #30506

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
001d61e
Added previous quarter to date filer
personofnorank Oct 3, 2024
1383614
Added previous quarter logic to custom frame
personofnorank Oct 3, 2024
06124a4
Added previous quarter logic to custom frame
personofnorank Oct 3, 2024
aa31f1a
Fixed bug in quarter variable declaration
personofnorank Oct 3, 2024
5246b5a
Fixed unexpected lexical declaration in case block
personofnorank Oct 3, 2024
8614cc7
Updated previous quarter language in response to feedback from @micha…
personofnorank Oct 3, 2024
13db748
Added unit test for previous calendar quarter filter
personofnorank Oct 3, 2024
d1f8921
Fixed syntax error
personofnorank Oct 4, 2024
962c51c
Added previous quarter coverage to getTimeOffset.test.ts
personofnorank Oct 4, 2024
392cd0c
Deleted two spaces as required by prettier
personofnorank Oct 4, 2024
13c8ffa
get_since_until should return two dates not one
personofnorank Oct 4, 2024
30e2e2d
get_since_until should return two dates not one
personofnorank Oct 4, 2024
c36bdb8
Prettier/lint fixes
personofnorank Oct 4, 2024
83e411e
Removed trailing whitespace
personofnorank Oct 7, 2024
7333ffe
Removed trailing whitespace
personofnorank Oct 7, 2024
ced2a80
removed unnecessary 'else' after 'return'
personofnorank Oct 9, 2024
f7f5177
hopefully made Prettier happy by using vim-prettier to edit
personofnorank Oct 9, 2024
8846476
Using correct methods to set date
personofnorank Oct 10, 2024
3f6d97b
Replaced previous calendar quarter tests with suggestion from @michae…
personofnorank Oct 10, 2024
7c854df
Fixed missing declaration in test
personofnorank Oct 10, 2024
2f6e28b
fixed typo in tests
personofnorank Oct 17, 2024
f638353
Added previous quarter range to date_parser.py
personofnorank Oct 17, 2024
8fab40e
Aligned date parser tests with date parser logic
personofnorank Oct 17, 2024
bc154da
Corrected syntax for getTimeOffset in getTimeOffset.test.ts
personofnorank Oct 18, 2024
28d7f43
comparator syntax
personofnorank Oct 18, 2024
7cd7f4d
fixed wrong assignment types in getTimeOffset
personofnorank Oct 18, 2024
f506ec2
timeRangeFilter
personofnorank Oct 19, 2024
8bab026
Same test for pcq as for other date ranges
personofnorank Oct 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed trailing whitespace
  • Loading branch information
personofnorank committed Oct 7, 2024
commit 83e411e086503b5f8be55744772086a6cd7a1b01
54 changes: 54 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";


export default [
{files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"]},
{files: ["**/*.js"], languageOptions: {sourceType: "commonjs"}},
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
];

{
"env": {
"browser": true,
"es6": true
},
"extends": [
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"wx": "readonly",
"getCurrentPages": "readonly",
"getApp": "readonly",
"Page": "readonly",
"Component": "readonly",
"App": "readonly"
},
"root": true,
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"prettier/prettier": "error",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/interface-name-prefix": ["warn", "always"],
"@typescript-eslint/explicit-function-return-type": ["error", {
"allowExpressions": true,
"allowTypedFunctionExpressions": true,
"allowHigherOrderFunctions": true
}],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/indent": ["error", 2]
}
}
Loading