congress/congress/datalog
Eric K 674d6d6688 Fixes to synchronize_policies
1. fixed attribute errors p.abbr and p.desc, where p is db Policy obj
2. Do not add policy to runtime before adding to DB
3. In single policy sync, correctly sync diff policy with same name.

Bug #2 was responsible for hiding bug #1 for a while because
creating the policy before the sync prevented the problematic line
in synchronize_policies from executing. Only exposed in replicated PE
testing. May have been responsible for some of the trouble we've had
in primary-replica HA testing.

Change-Id: I46cb95aaa6832c837d202a5c1dc1bfe293ef6046
2016-09-25 22:32:23 -07:00
..
Python2 Python3-readiness for antlr3 pieces 2015-11-19 18:39:07 -08:00
Python3 Python3-readiness for antlr3 pieces 2015-11-19 18:39:07 -08:00
builtin Use python3 print, division, import 2016-01-20 15:31:02 -08:00
Congress.g Hook up grammar changes to Event 2015-08-03 09:14:07 -07:00
__init__.py Rename 'congress/policy' directory to 'congress/datalog' 2015-02-26 18:31:13 -08:00
analysis.py Use python3 print, division, import 2016-01-20 15:31:02 -08:00
arithmetic_solvers.py Use python3 print, division, import 2016-01-20 15:31:02 -08:00
base.py Fixes to synchronize_policies 2016-09-25 22:32:23 -07:00
compile.py Fix string interpolation at logging call 2016-08-10 06:15:19 +00:00
database.py Add __ne__ built-in function 2016-09-20 09:56:07 +08:00
factset.py Correct reraising of exception 2016-08-24 15:34:37 +08:00
materialized.py Add __ne__ built-in function 2016-09-20 09:56:07 +08:00
nonrecursive.py Correct reraising of exception 2016-08-24 15:34:37 +08:00
ruleset.py Use python3 print, division, import 2016-01-20 15:31:02 -08:00
topdown.py Use python3 print, division, import 2016-01-20 15:31:02 -08:00
unify.py Add __ne__ built-in function 2016-09-01 02:04:22 +00:00
utility.py Add __ne__ built-in function 2016-09-20 09:56:07 +08:00