-
Notifications
You must be signed in to change notification settings - Fork 50
chore: update influxdata support links #7085
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
Closed
Closed
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,108 +1,41 @@ | ||
| // Libraries | ||
| import React, {FC, useState} from 'react' | ||
| import React, {FC} from 'react' | ||
|
|
||
| // Components | ||
| import { | ||
| Form, | ||
| Input, | ||
| Button, | ||
| Heading, | ||
| TextArea, | ||
| ButtonType, | ||
| ButtonShape, | ||
| InfluxColors, | ||
| ComponentSize, | ||
| ComponentColor, | ||
| HeadingElement, | ||
| ComponentStatus, | ||
| } from '@influxdata/clockface' | ||
|
|
||
| interface Props { | ||
| orgID: string | ||
| } | ||
|
|
||
| export const SeriesCardinalityIncreaseForm: FC<Props> = ({orgID}) => { | ||
| const [increaseAmount, onChangeIncreaseAmount] = useState<string>('') | ||
| const [requestDetails, onChangeRequestDetails] = useState<string>('') | ||
|
|
||
| const handleAmountValidation = (value: string): string | null => { | ||
| if (!value) { | ||
| return 'Amount is required' | ||
| } | ||
| return null | ||
| } | ||
|
|
||
| const handleDetailsValidation = (value: string): string | null => { | ||
| if (!value) { | ||
| return 'Use-case details are required' | ||
| } | ||
| return null | ||
| } | ||
|
|
||
| const isFormValid = (): boolean => { | ||
| return !!increaseAmount && !!requestDetails | ||
| } | ||
|
|
||
| export const SeriesCardinalityIncreaseForm: FC = () => { | ||
| const handleSubmit = (): void => { | ||
| window.open( | ||
| `mailto:support@influxdata.com?subject=Request%20Series%20Cardinality%20Increase&body=Organization ID%3A%20${orgID}%0D%0A%0D%0ARequested Series Cardinality Limit:%20${increaseAmount}%0D%0A%0D%0AUse-Case Details:%0D%0A${requestDetails}` | ||
| ) | ||
| window.open(`https://support.influxdata.com/s/login`) | ||
| } | ||
|
|
||
| return ( | ||
| <Form onSubmit={handleSubmit}> | ||
| <div> | ||
| <Form.Divider lineColor={InfluxColors.Grey15} /> | ||
| <Heading element={HeadingElement.H4}> | ||
| Request Series Cardinality Limit Increase | ||
| </Heading> | ||
| <Form.ValidationElement | ||
| label="Approximate Series Cardinality Needed" | ||
| validationFunc={handleAmountValidation} | ||
| value={increaseAmount} | ||
| required={true} | ||
| > | ||
| {status => ( | ||
| <Input | ||
| name="Approximate Series Cardinality Needed" | ||
| placeholder="Tell us how much series cardinality you need." | ||
| required={true} | ||
| status={status} | ||
| autoFocus={true} | ||
| value={increaseAmount} | ||
| onChange={e => onChangeIncreaseAmount(e.target.value)} | ||
| testID="rate-alert-form-amount" | ||
| /> | ||
| )} | ||
| </Form.ValidationElement> | ||
| <Form.ValidationElement | ||
| label="Use-Case Details" | ||
| validationFunc={handleDetailsValidation} | ||
| value={requestDetails} | ||
| required={true} | ||
| > | ||
| {status => ( | ||
| <TextArea | ||
| name="Use-Case Details" | ||
| placeholder="Tell us about your use-case, what you've tried so far, and why you need an increase." | ||
| status={status} | ||
| value={requestDetails} | ||
| onChange={e => onChangeRequestDetails(e.target.value)} | ||
| testID="rate-alert-form-details" | ||
| rows={10} | ||
| /> | ||
| )} | ||
| </Form.ValidationElement> | ||
| <p> | ||
| To request a series cardinality limit increase, please contact our | ||
| support team. | ||
| </p> | ||
| <Button | ||
| shape={ButtonShape.Default} | ||
| type={ButtonType.Submit} | ||
| onClick={handleSubmit} | ||
| size={ComponentSize.Medium} | ||
| color={ComponentColor.Primary} | ||
| className="rate-alert--request-increase-button" | ||
| text="Submit Request" | ||
| status={ | ||
| isFormValid() ? ComponentStatus.Default : ComponentStatus.Disabled | ||
| } | ||
| /> | ||
| </Form> | ||
| </div> | ||
| ) | ||
| } |
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,12 +1,12 @@ | ||
| export const RATE_LIMIT_ERROR_STATUS = 429 | ||
|
|
||
| export const RATE_LIMIT_ERROR_TEXT = | ||
| 'Oops. It looks like you have exceeded the query limits allowed as part of your plan. If you would like to increase your query limits, reach out to support@influxdata.com.' | ||
| 'Oops. It looks like you have exceeded the query limits allowed as part of your plan. If you would like to increase your query limits, reach out at support.influxdata.com.' | ||
|
|
||
| export const ASSET_LIMIT_ERROR_STATUS = 403 | ||
|
|
||
| export const ASSET_LIMIT_ERROR_TEXT = | ||
| 'Oops. It looks like you have exceeded the asset limits allowed as part of your plan. If you would like to increase your limits, reach out to support@influxdata.com.' | ||
| 'Oops. It looks like you have exceeded the asset limits allowed as part of your plan. If you would like to increase your limits, reach out at support.influxdata.com.' | ||
|
|
||
| export const REQUEST_TIMEOUT_STATUS = 408 | ||
| export const GATEWAY_TIMEOUT_STATUS = 504 |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we include
rel="noopener noreferrer"here for security purposes?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added