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

Add group summary APIs #2363

Merged
merged 11 commits into from
Jul 17, 2017
Merged

Conversation

erikjohnston
Copy link
Member

No description provided.

@erikjohnston erikjohnston force-pushed the erikj/group_server_summary branch from 98f85b7 to 03ec252 Compare July 13, 2017 12:51
@erikjohnston erikjohnston force-pushed the erikj/group_server_summary branch from 03ec252 to 8575e31 Compare July 13, 2017 12:52
txn.execute("""
INSERT INTO group_summary_roles
(group_id, role_id, role_order)
SELECT ?, ?, COALESCE(MAX(role_order), 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this be larger than all the others, or the same as the largest?

from ._base import SQLBaseStore

import ujson as json


# The category ID for the "default" category. We don't store as null in the
# database to avoid the fun of null != null
_DEFAULT_CATEGORY_ID = "default"
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe use the empty string as the default ID here?

)

@defer.inlineCallbacks
def on_POST(self, origin, content, query, group_id, category_id, room_id):
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe check that the category is not the default ID.

Copy link
Member Author

Choose a reason for hiding this comment

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

(done)

Copy link
Contributor

@NegativeMjark NegativeMjark left a comment

Choose a reason for hiding this comment

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

LGTM

@erikjohnston erikjohnston merged commit b3de672 into erikj/groups_merged Jul 17, 2017
@erikjohnston erikjohnston deleted the erikj/group_server_summary branch October 26, 2017 11:00
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