Skip to content

Commit

Permalink
Update issue templates
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbenav authored Jan 21, 2024
1 parent d015678 commit f268fd9
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/fastcrud-feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: FastCRUD Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
47 changes: 47 additions & 0 deletions .github/ISSUE_TEMPLATE/fastcrud-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: FastCRUD Issue
about: Issue Template for FastCRUD
title: ''
labels: ''
assignees: ''

---

**Describe the bug or question**
A clear and concise description of what the bug or question is.

**To Reproduce**
Please provide a self-contained, minimal, and reproducible example of your use case
```python
from fastapi import FastAPI
from fastcrud import FastCRUD, crud_router
from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine
from sqlalchemy.orm import sessionmaker

DATABASE_URL = "sqlite+aiosqlite:///./test.db"
engine = create_async_engine(DATABASE_URL, echo=True)
async_session = sessionmaker(engine, class_=AsyncSession, expire_on_commit=False)

app = FastAPI()

item_router = crud_router(
session=async_session,
model=Item,
crud=FastCRUD(Item),
create_schema=ItemCreateSchema,
update_schema=ItemUpdateSchema,
path="/items",
tags=["Items"]
)

app.include_router(item_router)
```

**Description**
Describe the problem, question, or error you are facing. Include both the expected output for your input and the actual output you're observing.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.

0 comments on commit f268fd9

Please sign in to comment.