the interface always sets "{endpoint_name}.database.changed" even when nothing has changed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pgsql Interface for charms.reactive |
Fix Released
|
High
|
Unassigned |
Bug Description
Hi,
requires.py does the following :
392 @when_not(
393 def _departed(self):
394 self._clear_
395 self._clear_
396 self._set_
397 self._clear_
398 self._set_
399 self._clear_
400 self._set_
meaning that when the relation is torn down, every hook invocation will have the .changed flags set, even though nothing changed (after the first hook runs). This is misleading / not really usable.
Thanks
description: | updated |
Changed in interface-pgsql: | |
status: | New → Triaged |
importance: | Undecided → High |
The .changed flag remains set indefinitely, but it no longer reset repeatedly and no longer triggers reactive triggers repeatedly.