Bug 108126

Summary: Data model dependencies should be automatically resolved from the PDL metadata
Product: [Retired] Red Hat Web Application Framework Reporter: Daniel BerrangĂ© <berrange>
Component: otherAssignee: ccm-bugs-list
Status: CLOSED WONTFIX QA Contact: Jon Orris <jorris>
Severity: medium Docs Contact:
Priority: medium    
Version: nightly   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-02 17:25:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Berrangé 2003-10-27 20:31:55 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.9 (X11; Linux i686; U;) Gecko/20030314

Description of problem:
The PDL metadata used by the DDL generator contains sufficient information for
validating the data model dependancies between applications. Requiring the
developer to add 

<requires>
  <table>
</requires>

and

<provides>
  <table>
</provides>

declaration is duplicating this information from the PDL & will never be  filled
in to a satisfactory level of correctness. It is also unlikely that a developer
will remember to update this info when changing PDL.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Leave out the 'cms_items' dependancy from ccm-cms-types-address.load
2. Load the ccm-cms-types-address application without first loading ccm-cms
3.
    

Actual Results:  DB error about missing table target for foreign key

Expected Results:  Loader immediately reports missing dependencies without
attempting to load SQL.

Additional info:

Comment 1 Daniel Berrangé 2006-09-02 17:25:25 UTC
Closing old tickets