Skip to content
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

feat: database editor #135

Merged
merged 28 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
56b39a4
feat: api for fetching site specific database schema added
tanmoysrt Oct 14, 2024
94331ef
chore: update api route
tanmoysrt Oct 14, 2024
73eb7de
chore: debug json unserialize error
tanmoysrt Oct 14, 2024
bf8347f
fix: json serialize error
tanmoysrt Oct 14, 2024
2b0e5a0
feat: replace mysqldump with information schema table column definitions
tanmoysrt Oct 15, 2024
a2c1c39
chore: typo
tanmoysrt Oct 15, 2024
7d0bf1d
chore: send in csv format
tanmoysrt Oct 15, 2024
de3ceef
chore: structure the data in tables json
tanmoysrt Oct 15, 2024
fd481bb
chore: make is_nullable field boolean
tanmoysrt Oct 15, 2024
f453fb3
feat: database query runner implemented
tanmoysrt Oct 16, 2024
6a7938a
chore: code cleanup and ruff format lint
tanmoysrt Oct 16, 2024
f255605
chore:ruff lint
tanmoysrt Oct 16, 2024
b2c166c
chore: remove custom error msg and log unknown error from sql runner
tanmoysrt Oct 18, 2024
849990c
feat: multi line sql query support added
tanmoysrt Oct 21, 2024
db8a406
chore: ignore _sql function complexity
tanmoysrt Oct 21, 2024
0ef1a70
chore: ruff format
tanmoysrt Oct 21, 2024
2616bc6
fix: implement db.atomic based transaction
tanmoysrt Oct 21, 2024
31f8287
feat: send failed query to request as well
tanmoysrt Oct 21, 2024
a6f2f97
feat: ignore commented sql queries
tanmoysrt Oct 21, 2024
caaf3fe
feat: send index info with schemas
tanmoysrt Oct 21, 2024
5b53dd8
feat(Test): added basic structure for writing db method tests
tanmoysrt Oct 21, 2024
428a0b1
chore(ci): update workflow to install test python packages
tanmoysrt Oct 21, 2024
4ab0f7e
chore(ci): pin version of testcontainers
tanmoysrt Oct 21, 2024
1f4fddf
fix(ci): use older version of testcontainers for python < 3.9
tanmoysrt Oct 21, 2024
e7aeb4e
chore: ruff format
tanmoysrt Oct 21, 2024
d4469ba
chore(ci): add cryptography package
tanmoysrt Oct 21, 2024
fa2439e
chore(ci): add cryptography package
tanmoysrt Oct 21, 2024
5652143
feat: added testcases for _run_sql function
tanmoysrt Oct 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
- master
pull_request:
branches:
- '*'
- "*"
workflow_dispatch:

jobs:
lint-and-format:
name: 'Lint and Format'
name: "Lint and Format"
runs-on: ubuntu-latest

steps:
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: "3.8"

- name: Install dependencies
run: |
Expand All @@ -36,7 +36,7 @@ jobs:
ruff format --check

unit-tests:
name: 'Unit Tests'
name: "Unit Tests"
runs-on: ubuntu-latest

steps:
Expand All @@ -46,13 +46,17 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: "3.8"

- name: Install agent
run: |
python -m venv env
env/bin/pip install -e .


- name: Install development packages
run: |
env/bin/pip install -r dev-requirements.txt

- name: Setup agent
run: |
source env/bin/activate
Expand Down
Loading
Loading