Skip to content

Commit

Permalink
upcoming: [M3-8301] - Updated Bucket Rate Limits (linode#10790)
Browse files Browse the repository at this point in the history
Co-authored-by: Jaalah Ramos <jaalah.ramos@gmail.com>
  • Loading branch information
jaalah-akamai and jaalah authored Aug 20, 2024
1 parent 7341d16 commit ad2405f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

Updated Bucket Rate Limits ([#10790](https://github.com/linode/manager/pull/10790))
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,26 @@ interface BucketRateLimitTableProps {
}

const tableHeaders = ['Limits', 'GET', 'PUT', 'LIST', 'DELETE', 'OTHER'];
const tableData = ({ endpointType }: BucketRateLimitTableProps) => [
{
checked: true,
values: ['1000', '000', '000', '000', '000'],
},
{
checked: false,
values: [
endpointType === 'E3' ? '20000' : '5000',
'000',
'000',
'000',
'000',
],
},
];
const tableData = ({ endpointType }: BucketRateLimitTableProps) => {
const isE3 = endpointType === 'E3';

return [
{
checked: true,
values: ['2000', '500', '100', '200', '400'],
},
{
checked: false,
values: [
isE3 ? '20000' : '5000',
isE3 ? '2000' : '1000',
isE3 ? '400' : '200',
isE3 ? '400' : '200',
isE3 ? '1000' : '800',
],
},
];
};

export const BucketRateLimitTable = ({
endpointType,
Expand Down

0 comments on commit ad2405f

Please sign in to comment.