Skip to content

[UI] Incorrect quota type mappings to usage types #11082

@harikrishna-patnala

Description

@harikrishna-patnala

problem

Following list of quota types are wrongly mapped with the ids.

{
id: 29,
type: 'VPC'
},
{
id: 30,
type: 'NETWORK'
},
{
id: 31,
type: 'BACKUP_OBJECT'
}

Actual values are

public static final int BACKUP = 28;
public static final int BUCKET = 29;
public static final int NETWORK = 30;
public static final int VPC = 31;

From UI when I selected the following types, the result types are different

Image

versions

ACS version: 4.20

The steps to reproduce the bug

  1. enable quota service from global settings
  2. restart ms
  3. under quota section > click "Create Quota Tariff"
  4. select usage type VPC -> result usage type is BUCKET
  5. select usage type Backup Object -> result usage type is VPC

What to do about it?

Fix the ids in quota.js according to

public static final int BACKUP = 28;
public static final int BUCKET = 29;
public static final int NETWORK = 30;
public static final int VPC = 31;

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions