Skip to content

Commit 9341035

Browse files
author
Ubuntu
committed
Squashed commits
1 parent 4f656a4 commit 9341035

File tree

4 files changed

+174
-1
lines changed

4 files changed

+174
-1
lines changed

.github/ISSUE_TEMPLATE /c4gt.md

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
---
2+
name: C4GT
3+
about: C4GT Community Issues Template
4+
title: "[C4GT] Button for likes"
5+
labels: C4GT Community
6+
assignees: ''
7+
8+
---
9+
10+
## Description
11+
[Provide a brief description of the feature, including why it is needed and what it will accomplish. You can skip any of Goals, Expected Outcome, Implementation Details, Mockups / Wireframes if they are irrelevant]
12+
13+
## Goals
14+
- [ ] [Goal 1]
15+
- [ ] [Goal 2]
16+
- [ ] [Goal 3]
17+
- [ ] [Goal 4]
18+
- [ ] [Goal 5]
19+
20+
## Expected Outcome
21+
[Describe in detail what the final product or result should look like and how it should behave.]
22+
23+
## Acceptance Criteria
24+
- [ ] [Criteria 1]
25+
- [ ] [Criteria 2]
26+
- [ ] [Criteria 3]
27+
- [ ] [Criteria 4]
28+
- [ ] [Criteria 5]
29+
30+
## Implementation Details
31+
[List any technical details about the proposed implementation, including any specific technologies that will be used.]
32+
33+
## Mockups / Wireframes
34+
[Include links to any visual aids, mockups, wireframes, or diagrams that help illustrate what the final product should look like. This is not always necessary, but can be very helpful in many cases.]
35+
36+
---
37+
38+
### Project
39+
[Project Name]
40+
41+
### Organization Name:
42+
[Organization Name]
43+
44+
### Domain
45+
[Area of governance]
46+
47+
<!-- Choose area of governance from the following list
48+
49+
| # | Area of governance |
50+
|----|--------------------------------------------|
51+
| 1 | Education |
52+
| 2 | Healthcare |
53+
| 3 | Public Administration |
54+
| 4 | Justice and Law Enforcement |
55+
| 5 | Taxation and Revenue Management |
56+
| 6 | Urban Planning and Infrastructure |
57+
| 7 | Environmental Governance |
58+
| 8 | Social Welfare |
59+
| 9 | E-Governance |
60+
| 10 | Financial Governance |
61+
| 11 | Electoral Systems |
62+
| 12 | Defense and Security |
63+
| 13 | Ethics and Anti-Corruption |
64+
| 14 | Transportation |
65+
| 15 | Energy and Utilities |
66+
| 16 | Agriculture and Rural Development |
67+
| 17 | Trade and Commerce |
68+
| 18 | Science and Technology |
69+
| 19 | Labor and Employment |
70+
| 20 | Culture and Tourism |
71+
| 21 | Communications and Media |
72+
| 22 | Disaster Management and Emergency Services |
73+
| 23 | Indigenous Governance |
74+
| 24 | Sports and Recreation |
75+
| 25 | Water Resource Management |
76+
| 26 | Housing and Urban Development |
77+
| 27 | Immigration and Border Control |
78+
| 28 | Land Management and Real Estate |
79+
| 29 | Regulatory Agencies and Compliance |
80+
| 30 | Others |
81+
-->
82+
83+
### Tech Skills Needed:
84+
[Required technical skills for the project]
85+
86+
### Mentor(s)
87+
[@Mentor1] [@Mentor2] [@Mentor3]
88+
89+
### Complexity
90+
Pick one of [High]/[Medium]/[Low]
91+
92+
### Category
93+
Pick one or more of [CI/CD], [Integrations], [Performance Improvement], [Security], [UI/UX/Design], [Bug], [Feature], [Documentation], [Deployment], [Test], [PoC]
94+
95+
### Sub Category
96+
Pick one or more of [API], [Database], [Analytics], [Refactoring], [Data Science], [Machine Learning], [Accessibility], [Internationalization], [Localization], [Frontend], [Backend], [Mobile], [SEO], [Configuration], [Deprecation], [Breaking Change], [Maintenance], [Support], [Question], [Technical Debt], [Beginner friendly], [Research], [Reproducible], [Needs Reproduction].
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
name: C4GT Community Ticket
3+
about: C4GT Community Ticket
4+
title: C4GT
5+
labels: C4GT Community
6+
assignees: ''
7+
8+
---
9+
10+
## Description
11+
There is a need for a commenting system that will allow users to interact with the blog posts. This will increase user engagement and provide feedback to the blog authors.
12+
13+
## Goals
14+
- [ ] Add a comment section to each blog post
15+
- [ ] Implement a moderation system for comments
16+
- [ ] Ensure comments are tied to a registered user
17+
- [ ] Implement spam and bot protection for the comments
18+
- [ ] Add notification system for new comments
19+
20+
## Expected Outcome
21+
- Users must be registered and logged in to leave a comment.
22+
- Each comment should include the user's name, profile picture (if available), comment text, and timestamp.
23+
- Comments should be displayed in chronological order, with the most recent comment at the top.
24+
- An email notification should be sent to the blog post author when a new comment is made.
25+
- Blog post authors and administrators should be able to moderate comments (approve, deny, delete).
26+
27+
## Acceptance Criteria
28+
- [ ] A registered user can submit a comment on a blog post.
29+
- [ ] The comment appears on the blog post after approval from the post author or administrator.
30+
- [ ] An email notification is sent to the blog post author when a new comment is posted.
31+
- [ ] Comments can be moderated by the blog post author and administrators.
32+
- [ ] Commenting system is resistant to spam and bot attacks.
33+
34+
## Implementation Details
35+
- Leverage Django's built-in commenting framework (if applicable)
36+
- Use JavaScript and AJAX for real-time comment posting and updates
37+
- Consider integrating with a service like Akismet for spam protection
38+
- Use Django's built-in email function for the notification system
39+
40+
## Mockups / Wireframes
41+
(Here, you can link to any visual aids, mockups, wireframes, or diagrams that help illustrate what the final product should look like. This is not always necessary, but can be very helpful in many cases.)
42+
43+
---
44+
45+
### Project
46+
OpenBlog Platform
47+
48+
### Organization Name:
49+
The name of the organization proposing the project.
50+
51+
### Domain
52+
The area of governance the project pertains to (ex: agri, healthcare, ed etc).
53+
54+
### Tech Skills Needed:
55+
Django, Typescript, NextJS, Akismet
56+
57+
### Mentor(s)
58+
@ChakshuGautam @Shruti3004 @sukhpreetssekhon

.github/workflows/smoke-test.yml

+18
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,24 @@ jobs:
3737
- name: Install psql
3838
run: sudo apt install postgresql-client
3939

40+
- name: Set Max Connection Limit
41+
run: |
42+
export PGHOST=localhost
43+
export PGUSER=postgres
44+
export PGPASSWORD=test1234
45+
psql -h localhost -U postgres -c "ALTER SYSTEM SET max_connections = '100';"
46+
47+
- name: Verify Max Connection Limit
48+
run: |
49+
export PGHOST=localhost
50+
export PGUSER=postgres
51+
export PGPASSWORD=test1234
52+
MAX_CONNECTIONS=$(PGPASSWORD=test1234 psql -h localhost -U postgres -d postgres -c "SHOW max_connections;" | grep -oP '(?<=row )[0-9]+')
53+
if [ "$MAX_CONNECTIONS" -ne "10" ]; then
54+
echo "Max connections is not set correctly!"
55+
exit 1
56+
fi
57+
4058
- name: Run the smoke test
4159
run: |
4260
set -eu

docker-compose.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ services:
1111
environment:
1212
POSTGRES_USER: timescaledb
1313
POSTGRES_PASSWORD: postgrespassword
14-
14+
POSTGRES_MAX_CONNECTIONS: 10
15+
1516
graphql-engine:
1617
image: hasura/graphql-engine:latest
1718
ports:

0 commit comments

Comments
 (0)