Skip to content

Conversation

@Kami
Copy link
Member

@Kami Kami commented May 30, 2018

#4134 PR added new status field to the RuleEnforcementDB model.

I intentionally and explicitly didn't backfill data for existing RuleEnforcementDB objects in the database, because we still don't have a good data migration framework / code in place (and I don't want to introduce any quick hacks / one offs).

@enykeev Was not a fan of old objects having failure_reason field populated, but status set to succeeded so I changed that by backfilling status field for existing objects lazily on retrieval inside the model class constructor.

old / existing object in the database which pre-date status field and
have failure_reason field populated.
@Kami Kami added this to the 2.8.0 milestone May 30, 2018
@Kami Kami requested a review from enykeev May 30, 2018 14:15
@Kami Kami merged commit fdd6ac4 into master May 31, 2018
@Kami Kami deleted the rule_enforcement_failure_reason branch May 31, 2018 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants