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

Implement basic ignore user API #763

Merged
merged 5 commits into from
May 10, 2016
Merged

Implement basic ignore user API #763

merged 5 commits into from
May 10, 2016

Conversation

erikjohnston
Copy link
Member

No description provided.

@NegativeMjark
Copy link
Contributor

LGTM

@@ -60,6 +63,28 @@ def get_account_data_for_user_txn(txn):
"get_account_data_for_user", get_account_data_for_user_txn
)

@cachedInlineCallbacks(num_args=2)
def get_global_account_data_by_type_for_user(self, user_id, data_type):
Copy link
Contributor

@NegativeMjark NegativeMjark May 4, 2016

Choose a reason for hiding this comment

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

Given how this is used maybe this wants to be a cached list and for the function to take a list of userids rather than a single user?

@NegativeMjark
Copy link
Contributor

Would it be an idea to create a special cached database API for getting the ignore list that could populate the cache with a default empty list if the user hasn't set an ignore list?

@erikjohnston
Copy link
Member Author

Would it be an idea to create a special cached database API for getting the ignore list that could populate the cache with a default empty list if the user hasn't set an ignore list?

In terms of performance or code neatness?

@erikjohnston erikjohnston merged commit e581754 into develop May 10, 2016
@richvdh richvdh deleted the erikj/ignore_user 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