Skip to content

Commit 04eb680

Browse files
authored
Merge branch 'main' into main
2 parents c702e78 + c5085b6 commit 04eb680

File tree

591 files changed

+52772
-12159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

591 files changed

+52772
-12159
lines changed

.flake8

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/question.yml renamed to .github/DISCUSSION_TEMPLATE/questions.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
name: Question or Problem
2-
description: Ask a question or ask about a problem
31
labels: [question]
42
body:
53
- type: markdown
@@ -8,29 +6,29 @@ body:
86
Thanks for your interest in SQLModel! 🚀
97
108
Please follow these instructions, fill every question, and do every step. 🙏
11-
12-
I'm asking this because answering questions and solving problems in GitHub issues is what consumes most of the time.
13-
14-
I end up not being able to add new features, fix bugs, review pull requests, etc. as fast as I wish because I have to spend too much time handling issues.
9+
10+
I'm asking this because answering questions and solving problems in GitHub is what consumes most of the time.
11+
12+
I end up not being able to add new features, fix bugs, review pull requests, etc. as fast as I wish because I have to spend too much time handling questions.
1513
1614
All that, on top of all the incredible help provided by a bunch of community members that give a lot of their time to come here and help others.
1715
1816
If more SQLModel users came to help others like them just a little bit more, it would be much less effort for them (and you and me 😅).
1917
2018
By asking questions in a structured way (following this) it will be much easier to help you.
21-
19+
2220
And there's a high chance that you will find the solution along the way and you won't even have to submit it and wait for an answer. 😎
2321
24-
As there are too many issues with questions, I'll have to close the incomplete ones. That will allow me (and others) to focus on helping people like you that follow the whole process and help us help you. 🤓
22+
As there are too many questions, I'll have to discard and close the incomplete ones. That will allow me (and others) to focus on helping people like you that follow the whole process and help us help you. 🤓
2523
- type: checkboxes
2624
id: checks
2725
attributes:
2826
label: First Check
2927
description: Please confirm and check all the following options.
3028
options:
31-
- label: I added a very descriptive title to this issue.
29+
- label: I added a very descriptive title here.
3230
required: true
33-
- label: I used the GitHub search to find a similar issue and didn't find it.
31+
- label: I used the GitHub search to find a similar question and didn't find it.
3432
required: true
3533
- label: I searched the SQLModel documentation, with the integrated search.
3634
required: true
@@ -48,10 +46,10 @@ body:
4846
label: Commit to Help
4947
description: |
5048
After submitting this, I commit to one of:
51-
49+
5250
* Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.
5351
* I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.
54-
* Implement a Pull Request for a confirmed bug.
52+
* Review one Pull Request by downloading the code and following all the review process](https://sqlmodel.tiangolo.com/help/#review-pull-requests).
5553
5654
options:
5755
- label: I commit to help with one of those options 👆
@@ -66,16 +64,14 @@ body:
6664
If I (or someone) can copy it, run it, and see it right away, there's a much higher chance I (or someone) will be able to help you.
6765
6866
placeholder: |
69-
from typing import Optional
70-
7167
from sqlmodel import Field, Session, SQLModel, create_engine
7268
7369
7470
class Hero(SQLModel, table=True):
75-
id: Optional[int] = Field(default=None, primary_key=True)
71+
id: int | None = Field(default=None, primary_key=True)
7672
name: str
7773
secret_name: str
78-
age: Optional[int] = None
74+
age: int | None = None
7975
8076
8177
hero_1 = Hero(name="Deadpond", secret_name="Dive Wilson")

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,12 @@ blank_issues_enabled: false
22
contact_links:
33
- name: Security Contact
44
about: Please report security vulnerabilities to [email protected]
5+
- name: Question or Problem
6+
about: Ask a question or ask about a problem in GitHub Discussions.
7+
url: https://github.com/fastapi/sqlmodel/discussions/categories/questions
8+
- name: Feature Request
9+
about: To suggest an idea or ask about a feature, please start with a question saying what you would like to achieve. There might be a way to do it already.
10+
url: https://github.com/fastapi/sqlmodel/discussions/categories/questions
11+
- name: Show and tell
12+
about: Show what you built with SQLModel or to be used with SQLModel.
13+
url: https://github.com/fastapi/sqlmodel/discussions/categories/show-and-tell

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 0 additions & 214 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Privileged
2+
description: You are @tiangolo or he asked you directly to create an issue here. If not, check the other options. 👇
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Thanks for your interest in SQLModel! 🚀
8+
9+
If you are not @tiangolo or he didn't ask you directly to create an issue here, please start the conversation in a [Question in GitHub Discussions](https://github.com/fastapi/sqlmodel/discussions/categories/questions) instead.
10+
- type: checkboxes
11+
id: privileged
12+
attributes:
13+
label: Privileged issue
14+
description: Confirm that you are allowed to create an issue here.
15+
options:
16+
- label: I'm @tiangolo or he asked me directly to create an issue here.
17+
required: true
18+
- type: textarea
19+
id: content
20+
attributes:
21+
label: Issue Content
22+
description: Add the content of the issue here.

.github/actions/comment-docs-preview-in-pr/Dockerfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/actions/comment-docs-preview-in-pr/action.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)