ManageIQ/manageiq-schema

View on GitHub

Showing 238 of 238 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

def down
say_with_time("Updating Redhat NetworkManager STI classes") do
redhat_network_managers =
ExtManagementSystem.in_my_region
.where(:type => "ManageIQ::Providers::Redhat::NetworkManager").pluck(:id)
db/migrate/20210506225927_fix_redhat_network_manager_sti_type.rb on lines 37..72

Similar blocks of code found in 2 locations. Consider refactoring.
Open

def up
say_with_time("Updating Redhat NetworkManager STI classes") do
redhat_network_managers = ExtManagementSystem.in_my_region.where(:type => "ManageIQ::Providers::Redhat::NetworkManager").pluck(:id)
 
CloudNetwork.in_my_region
db/migrate/20210506225927_fix_redhat_network_manager_sti_type.rb on lines 76..113

Identical blocks of code found in 2 locations. Consider refactoring.
Open

create_table "vmdb_metrics", force: :cascade do |t|
t.bigint "resource_id"
t.string "resource_type"
t.bigint "size"
t.bigint "rows"
Severity: Major
Found in db/migrate/20200508150740_remove_vmdb_database_tables.rb and 1 other location - About 2 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 7110..7136

Identical blocks of code found in 2 locations. Consider refactoring.
Open

create_table "vmdb_metrics", force: :cascade do |t|
t.bigint "resource_id"
t.string "resource_type"
t.bigint "size"
t.bigint "rows"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 2 hrs to fix
db/migrate/20200508150740_remove_vmdb_database_tables.rb on lines 41..67

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create_table "resource_pools", force: :cascade do |t|
t.string "name"
t.bigint "ems_id"
t.datetime "created_on"
t.datetime "updated_on"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 2 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 924..946

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create_table "container_nodes", force: :cascade do |t|
t.string "ems_ref"
t.string "name"
t.datetime "ems_created_on"
t.string "resource_version"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 2 hrs to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 6482..6504

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create_table "cloud_networks", force: :cascade do |t|
t.string "name"
t.string "ems_ref"
t.bigint "ems_id"
t.string "cidr"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 1 hr to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5753..5772

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create_table "miq_schedules", force: :cascade do |t|
t.string "name"
t.string "description"
t.text "sched_action"
t.text "filter"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 1 hr to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 335..354

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create_table "miq_report_results", force: :cascade do |t|
t.string "name"
t.bigint "miq_report_id"
t.bigint "miq_task_id"
t.string "userid"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 1 hr to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 30..47

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create_table "accounts", force: :cascade do |t|
t.string "name"
t.integer "acctid"
t.string "homedir"
t.boolean "local"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 1 hr to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5634..5651

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create_table "users", force: :cascade do |t|
t.string "name"
t.string "email"
t.string "icon"
t.datetime "created_on"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 1 hr to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 317..333

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create_table "cloud_databases", force: :cascade do |t|
t.string "name"
t.string "type"
t.string "ems_ref"
t.string "db_engine"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 1 hr to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 7029..7045

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create_table "middleware_deployments", force: :cascade do |t|
t.string "name"
t.string "ems_ref"
t.string "nativeid"
t.bigint "server_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 1 hr to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 674..688

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create_table "configuration_scripts", force: :cascade do |t|
t.bigint "manager_id"
t.string "manager_ref"
t.string "name"
t.string "description"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 1 hr to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5157..5171

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create_table "miq_tasks", force: :cascade do |t|
t.string "name"
t.string "state"
t.string "status"
t.text "message"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 1 hr to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 6801..6817

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create_table "showback_tiers", force: :cascade do |t|
t.float "tier_start_value"
t.float "tier_end_value"
t.bigint "fixed_rate_subunits"
t.string "fixed_rate_currency"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 1 hr to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 5886..5902

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create_table "registry_items", force: :cascade do |t|
t.bigint "miq_set_id"
t.bigint "scan_item_id"
t.bigint "vm_or_template_id"
t.string "name"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 1 hr to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 524..537

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create_table "compliance_details", force: :cascade do |t|
t.bigint "compliance_id"
t.datetime "created_on"
t.datetime "updated_on"
t.bigint "miq_policy_id"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 1 hr to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 6414..6427

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create_table "patches", force: :cascade do |t|
t.string "name"
t.string "vendor"
t.text "description"
t.string "service_pack"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 1 hr to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 6214..6228

Similar blocks of code found in 2 locations. Consider refactoring.
Open

create_table "orchestration_templates", force: :cascade do |t|
t.string "name"
t.string "type"
t.text "description"
t.text "content"
Severity: Major
Found in db/migrate/20171030131403_collapsed_initial_migration.rb and 1 other location - About 1 hr to fix
db/migrate/20171030131403_collapsed_initial_migration.rb on lines 6265..6279
Severity
Category
Status
Source
Language