-
-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3187 from centerofci/0.1.3
0.1.3 release PR
- Loading branch information
Showing
317 changed files
with
27,372 additions
and
5,116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Run SQL tests | ||
on: | ||
push: | ||
paths: | ||
- '**.sql' | ||
pull_request: | ||
paths: | ||
- '**.sql' | ||
|
||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
# We only want to run on external PRs, since internal PRs are covered by "push" | ||
# This prevents this from running twice on internal PRs | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Copy env file | ||
run: cp .env.example .env | ||
|
||
# The code is checked out under uid 1001 - reset this to 1000 for the | ||
# container to run tests successfully | ||
- name: Fix permissions | ||
run: sudo chown -R 1000:1000 . | ||
|
||
- name: Build the test DB | ||
run: docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d dev-db | ||
|
||
- name: Run tests with pg_prove | ||
run: docker exec mathesar_dev_db /bin/bash /sql/run_tests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM postgres:13 | ||
|
||
RUN apt update | ||
RUN apt install -y postgresql-13-pgtap postgresql-13-pldebugger && rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Bugs and troubleshooting | ||
|
||
If you run into problems, here's what you can try: | ||
1. Narrow down the problem you're having to a minimal search phrase | ||
2. Search on [our issue tracker](https://github.com/centerofci/mathesar/issues/) | ||
3. If you think this is a previously unreported problem, report on [our issue tracker](https://github.com/centerofci/mathesar/issues/) | ||
4. In case you're having trouble formulating a report, reach out [on Matrix](https://wiki.mathesar.org/en/community/matrix) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
from config.settings.common_settings import * # noqa | ||
|
||
# Override default settings | ||
|
||
|
||
# Use a local.py module for settings that shouldn't be version tracked | ||
try: | ||
from .local import * # noqa | ||
except ImportError: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
def custom_preprocessing_hook(endpoints): | ||
filtered = [] | ||
for (path, path_regex, method, callback) in endpoints: | ||
# Remove all but DRF API endpoints | ||
if path.startswith("/api/db/v0/databases/") or path.startswith("/api/db/v0/data_files/") or path.startswith("/api/db/v0/schemas/"): | ||
filtered.append((path, path_regex, method, callback)) | ||
return filtered | ||
|
||
|
||
def remove_url_prefix_hook(result, **kwargs): | ||
# Remove namespace and version URL prefix from the operation Id of the generated API schema | ||
for path, path_info in result['paths'].items(): | ||
for method, operation in path_info.items(): | ||
operation_id = operation.get('operationId') | ||
if operation_id: | ||
if path.startswith('/api/db/v0/'): | ||
operation['operationId'] = operation_id.replace('db_v0_', '') | ||
elif path.startswith('/api/ui/v0/'): | ||
operation['operationId'] = operation_id.replace('ui_v0_', '') | ||
|
||
return result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
from config.settings.common_settings import * # noqa | ||
|
||
# Override default settings | ||
|
||
|
||
# Use a local.py module for settings that shouldn't be version tracked | ||
try: | ||
from .local import * # noqa | ||
except ImportError: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.