Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger aggregator update signal #186

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

qasimgulzar
Copy link

No description provided.

@qasimgulzar
Copy link
Author

@open-craft-grove could you please help reviewing this PR

Copy link
Member

@Agrendalath Agrendalath left a comment

Choose a reason for hiding this comment

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

@qasimgulzar, is there a specific reason for using plain signals instead of openedx-events?

@@ -194,6 +194,7 @@ def bulk_create_or_update(self, updated_aggregators):
else:
aggregation_data = [obj.get_values() for obj in updated_aggregators]
cur.executemany(INSERT_OR_UPDATE_AGGREGATOR_QUERY, aggregation_data)
AggregatorUpdate.send(sender=self.__class__, aggregation_data=aggregation_data)
Copy link
Member

Choose a reason for hiding this comment

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

Isn't aggregation_data undefined when connection.vendor == 'sqlite'?

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.

2 participants