Project

General

Profile

Actions

Bug #26416

open

Improve Taxonomy mismatch validation error message

Added by Ondřej Pražák about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Organizations and Locations
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Validation error for taxonomy mismatch is not really helpful. It is not obvious what went wrong and how to fix it. The message includes 'check mismatches report', which is the only useful part. On the other hand, it gives no indication where to look for it. The message should be clear enough for a user to identify and fix the problem.

"""
2018-09-13T08:51:12 [E|bac|] Validation failed: Locations expecting locations used by hosts or inherited (check mismatches report)., Domains expecting domains used by hosts or inherited (check mismatches report)., Media expecting media used by hosts or inherited (check mismatches report)., Subnets expecting subnets used by hosts or inherited (check mismatches report)., Compute resources expecting compute resources used by hosts or inherited (check mismatches report)., Ptables expecting ptables used by hosts or inherited (check mismatches report). (ActiveRecord::RecordInvalid)
"""

Steps to reproduce:
1) create a mismatched host - host in OrgA has an operating system and a medium assigned, where medium is not in OrgA
2) previous step will make OrgA invalid, which means any changes to OrgA will not be saved unless the mismatch is fixed. This was originaly reported for manifest imports.

Expected results:

More meaningful message, something like: is invalid due to resource mismatch - Domain. You can recover by fixing mismatches on Location/Organization edit page.

No data to display

Actions

Also available in: Atom PDF