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

upcoming: [M3-8308] - Add bucket rate limit info to Object Storage Bucket Details drawer #10821

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

Add bucket rate limit info to Object Storage Bucket Details drawer ([#10821](https://github.com/linode/manager/pull/10821))
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { truncateMiddle } from 'src/utilities/truncate';
import { readableBytes } from 'src/utilities/unitConversions';

import { AccessSelect } from '../BucketDetail/AccessSelect';
import { BucketRateLimitTable } from './BucketRateLimitTable';

import type {
ACLType,
Expand Down Expand Up @@ -73,6 +74,8 @@ export const BucketDetailsDrawer = React.memo(
);

let formattedCreated;
const showBucketRateLimitTable =
endpoint_type === 'E2' || endpoint_type === 'E3';

try {
if (created) {
Expand Down Expand Up @@ -138,6 +141,22 @@ export const BucketDetailsDrawer = React.memo(
)}
{/* @TODO OBJ Multicluster: use region instead of cluster if isObjMultiClusterEnabled
to getBucketAccess and updateBucketAccess. */}
{
<>
<Typography data-testid="bucketRateLimit" variant="h3">
Bucket Rate Limits
</Typography>
{showBucketRateLimitTable ? (
<BucketRateLimitTable endpointType={endpoint_type} />
) : (
<Typography>
This endpoint type supports up to 750 Requests Per Second(RPS).{' '}
<Link to="#">Understand bucket rate limits</Link>.
</Typography>
)}
</>
}
{<Divider spacingBottom={16} spacingTop={16} />}
{cluster && label && (
<AccessSelect
getAccess={() =>
Expand Down
Loading