-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix fillable and guarded attribute behavior on mass-assignment #830
Changes from all commits
da1871b
7d13164
66421e5
d9a60d6
43064fe
79b918e
36e9fae
4d0d2c2
f172e68
961fab2
5aa8106
74744aa
f465806
c3123ac
b6da63b
39f9b3f
eab41dd
6790ec3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
use asdf | ||
layout python | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: [push, pull_request] | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
|
||
services: | ||
postgres: | ||
|
@@ -58,7 +58,7 @@ jobs: | |
python orm migrate --connection mysql | ||
make test | ||
lint: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
name: Lint | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whats the point of pegging this to a version instead of always testing against the latest ubuntu version? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we always use the latest we can catch issues as soon as the latest version is updated on that container. If we always peg to 20.04 we'll know it works on ubuntu 20.04 but never anything newer than that |
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
|
||
services: | ||
postgres: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python 3.8.10 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
from src.masoniteorm.connections import ConnectionResolver | ||
|
||
DATABASES = { | ||
"default": "mysql", | ||
"mysql": { | ||
"host": "127.0.0.1", | ||
"driver": "mysql", | ||
"database": "masonite", | ||
"user": "root", | ||
"password": "", | ||
"port": 3306, | ||
"log_queries": False, | ||
"options": { | ||
# | ||
} | ||
}, | ||
"postgres": { | ||
"host": "127.0.0.1", | ||
"driver": "postgres", | ||
"database": "masonite", | ||
"user": "root", | ||
"password": "", | ||
"port": 5432, | ||
"log_queries": False, | ||
"options": { | ||
# | ||
} | ||
}, | ||
"sqlite": { | ||
"driver": "sqlite", | ||
"database": "masonite.sqlite3", | ||
} | ||
} | ||
|
||
DB = ConnectionResolver().set_connection_details(DATABASES) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[pytest] | ||
env = | ||
D:DB_CONFIG_PATH=config/test-database |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
flake8==3.7.9 | ||
black | ||
faker | ||
pytest | ||
pytest-cov | ||
pytest-env | ||
pymysql | ||
isort |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,6 @@ | ||
flake8==3.7.9 | ||
black==19.3b0 | ||
faker | ||
pytest | ||
pytest-cov | ||
pymysql | ||
isort | ||
inflection==0.3.1 | ||
psycopg2-binary | ||
python-dotenv==0.14.0 | ||
pyodbc | ||
pendulum>=2.1,<2.2 | ||
cleo>=0.8.0,<0.9 | ||
cleo>=0.8.0,<0.9 | ||
python-dotenv==0.14.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats this file for?