Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Make adding push rules idempotent #578

Merged
merged 1 commit into from
Feb 16, 2016
Merged

Conversation

NegativeMjark
Copy link
Contributor

Also remove the **kwargs from the add_push_rule method.

Fixes https://matrix.org/jira/browse/SYN-391

conditions_json, actions_json,
)

def _upsert_push_rule_txn(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this can only be called if txn is locking the table

@illicitonion
Copy link
Contributor

LGTM with one comment

Also remove the **kwargs from the add_push_rule method.

Fixes https://matrix.org/jira/browse/SYN-391
NegativeMjark added a commit that referenced this pull request Feb 16, 2016
Make adding push rules idempotent

Also remove the **kwargs from the add_push_rule method.

Fixes https://matrix.org/jira/browse/SYN-391
@NegativeMjark NegativeMjark merged commit c2025c0 into develop Feb 16, 2016
@richvdh richvdh deleted the markjh/idempotent_rules branch December 1, 2016 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants