Skip to content
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
75 changes: 0 additions & 75 deletions portal-ui/src/screens/Console/Configurations/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
import React from "react";
import PublicIcon from "@mui/icons-material/Public";
import SdStorageIcon from "@mui/icons-material/SdStorage";
import CompressIcon from "@mui/icons-material/Compress";
import CodeIcon from "@mui/icons-material/Code";
import LocalHospitalIcon from "@mui/icons-material/LocalHospital";
Expand All @@ -33,11 +32,6 @@ export const configurationElements: IElement[] = [
configuration_id: "region",
configuration_label: "Region",
},
{
icon: <SdStorageIcon />,
configuration_id: "cache",
configuration_label: "Cache",
},
{
icon: <CompressIcon />,
configuration_id: "compression",
Expand Down Expand Up @@ -104,75 +98,6 @@ export const fieldsConfigurations: any = {
placeholder: "Enter custom notes if any",
},
],
cache: [
{
name: "drives",
required: true,
label: "Drives",
tooltip:
'Mountpoints e.g. "/optane1" or "/optane2", you can write one per field',
type: "csv",
placeholder: "Enter Mount Point",
},
{
name: "expiry",
required: false,
label: "Expiry",
tooltip: 'Cache expiry duration in days e.g. "90"',
type: "number",
placeholder: "Enter Number of Days",
},
{
name: "quota",
required: false,
label: "Quota",
tooltip: 'Limit cache drive usage in percentage e.g. "90"',
type: "number",
placeholder: "Enter in %",
},
{
name: "exclude",
required: false,
label: "Exclude",
tooltip:
'Wildcard exclusion patterns e.g. "bucket/*.tmp" or "*.exe", you can write one per field',
type: "csv",
placeholder: "Enter Wildcard Exclusion Patterns",
},
{
name: "after",
required: false,
label: "After",
tooltip: "Minimum number of access before caching an object",
type: "number",
placeholder: "Enter Number of Attempts",
},
{
name: "watermark_low",
required: false,
label: "Watermark Low",
tooltip: "Watermark Low",
type: "number",
placeholder: "Enter Watermark Low",
},
{
name: "watermark_high",
required: false,
label: "Watermark High",
tooltip: "Watermark High",
type: "number",
placeholder: "Enter Watermark High",
},
{
name: "comment",
required: false,
label: "Comment",
tooltip: "You can add a comment to this setting",
type: "comment",
multiline: true,
placeholder: "Enter custom notes if any",
},
],
compression: [
{
name: "extensions",
Expand Down
3 changes: 0 additions & 3 deletions portal-ui/tests/permissions-2/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ test("Settings window exists in Settings page", async (t) => {

test("All vertical tab items exist", async (t) => {
const settingsRegionTabExists = elements.settingsRegionTab.exists;
const settingsCacheTabExists = elements.settingsCacheTab.exists;
const settingsCompressionTabExists = elements.settingsCompressionTab.exists;
const settingsApiTabExists = elements.settingsApiTab.exists;
const settingsHealTabExists = elements.settingsHealTab.exists;
Expand All @@ -53,8 +52,6 @@ test("All vertical tab items exist", async (t) => {
.navigateTo("http://localhost:9090/settings/configurations")
.expect(settingsRegionTabExists)
.ok()
.expect(settingsCacheTabExists)
.ok()
.expect(settingsCompressionTabExists)
.ok()
.expect(settingsApiTabExists)
Expand Down
4 changes: 0 additions & 4 deletions portal-ui/tests/utils/elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ export const settingsRegionTab = Selector(".MuiTab-root").withAttribute(
"href",
"/settings/configurations/region"
);
export const settingsCacheTab = Selector(".MuiTab-root").withAttribute(
"href",
"/settings/configurations/cache"
);
export const settingsCompressionTab = Selector(".MuiTab-root").withAttribute(
"href",
"/settings/configurations/compression"
Expand Down