opsmill / infrahub

Infrahub - A new approach to Infrastructure Management
https://opsmill.com/
GNU Affero General Public License v3.0
196 stars 11 forks source link

task: Use DiffSummary to determine which constraint validators to run #2573

Closed ajtmccarty closed 7 months ago

ajtmccarty commented 7 months ago

Component

API Server / GraphQL

Task Description

When determining which constraint validators to run as part of a schema integrity check (see get_constraints_per_model), we can be smarter about which constraints need to be run based on the content of the DiffSummary.

For example, we don't need to run attribute or relationship constraint validators if there is no change to that attribute or relationship in the diff. That's the easiest and biggest improvement, but we can do more if we want

ajtmccarty commented 7 months ago

completed in #2564 follow-up issue in #2592