Skip to content

Commit

Permalink
feat: add ioxQuery limits (#6875)
Browse files Browse the repository at this point in the history
* feat: add ioxQuery limits

Add support for viewing and modifying the new IOx Query limits.§

* fix: move new limits to correct place in dialogue

* chore: update openapi version

* chore: update openapi version

* chore: update openapi sha
  • Loading branch information
mhilton authored Apr 4, 2024
1 parent 4d27a31 commit 730f98f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"prettier:fix": "pretty-quick --config .prettierrc.json --write '{src,cypress}/**/*.{ts,tsx}'",
"tsc": "tsc -p ./tsconfig.json --noEmit --pretty --skipLibCheck",
"tsc:watch": "yarn tsc --watch",
"generate": "export SHA=96ac07e89b65d81b5f84ffbc7279e8bf36353ddb && export REMOTE=https://raw.githubusercontent.com/influxdata/openapi/${SHA}/ && yarn generate-meta",
"generate": "export SHA=9ca282867ee2b2766ea60f29cdbb9b0556361335 && export REMOTE=https://raw.githubusercontent.com/influxdata/openapi/${SHA}/ && yarn generate-meta",
"generate-local": "export REMOTE=../openapi/ && yarn generate-meta",
"generate-local-cloud": "export REMOTE=../openapi/ && yarn generate-meta-cloud",
"generate-meta": "if [ -z \"${CLOUD_URL}\" ]; then yarn generate-meta-oss; else yarn generate-meta-cloud; fi",
Expand Down Expand Up @@ -85,7 +85,7 @@
"@babel/preset-env": "^7.20.2",
"@babel/runtime": "^7.20.6",
"@cypress/skip-test": "^2.6.1",
"@influxdata/oats": "0.5.3",
"@influxdata/oats": "^0.7.0",
"@testing-library/dom": "^8.17.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5",
Expand Down
22 changes: 22 additions & 0 deletions src/operator/OrgOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,28 @@ export const OrgOverlay: FC = () => {
</Grid.Column>
</Grid.Row>
)}
{limits?.ioxQuery && (
<Grid.Row>
<Grid.Column widthMD={Columns.Four}>
<Form.Label label="Partitions" />
<LimitsField
type={InputType.Number}
name="ioxQuery.partitions"
limits={limits}
onChangeLimits={setLimits}
/>
</Grid.Column>
<Grid.Column widthMD={Columns.Four}>
<Form.Label label="Parquet Files" />
<LimitsField
type={InputType.Number}
name="ioxQuery.parquetFiles"
limits={limits}
onChangeLimits={setLimits}
/>
</Grid.Column>
</Grid.Row>
)}
<Grid.Row>
<h4>Notification Rules</h4>
<Grid.Column widthMD={Columns.Four}>
Expand Down

0 comments on commit 730f98f

Please sign in to comment.