-
Notifications
You must be signed in to change notification settings - Fork 308
Replace the community_summary view by a table #2701
Conversation
Fixes #2693 without reverting back to using slow queries.
Does the test suite already cover this? |
If not let's get some tests. |
The test coverage of |
How do we measure test coverage of SQL functions? |
We don't, it would probably be very difficult. |
Okay, short of measuring coverage of SQL functions, how do we test SQL functions? |
I like the idea of using more SQL functions and triggers, but I'm concerned about testing. |
Like all functions, by writing tests that run them. |
Bringing us back to my original question:
|
The trigger function in this PR is used and checked in |
In addition the test suite does cover most functions modified in this PR, like |
That's good and useful now, but that doesn't protect us against regressions in the future. Can we move the nmembers check out of branch.sql (or duplicate it) into our test suite? |
Yes, we could. The DB self checks are a larger issue (related to #1549), in this PR I just tried to come up with a quick fix since the bug is visible in the UI. |
Replace the community_summary view by a table
@Changaco May I let you deploy? |
Yes, will do. |
Thanks. :-) |
Fixes #2693 without reverting back to using slow queries.