Skip to content

Commit 614e32b

Browse files
committed
5.1.0b1
1 parent 8972f12 commit 614e32b

6 files changed

Lines changed: 98 additions & 78 deletions

File tree

AUTHORS

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
The following people have contributed to django-sql-explorer:
22

3+
- Chris Clark
4+
- Mark Walker
35
- Lee Brooks
46
- Artyom Chernyakov
5-
- Chris Clark
67
- Rodney Hawkins
78
- Dane Hillard
89
- Wojtek Jurkowlaniec
@@ -21,6 +22,11 @@ The following people have contributed to django-sql-explorer:
2122
- Brad Melin
2223
- Dara Adib
2324
- Moe Elias
24-
25+
- Illia Volochii
26+
- Amir Abedi
27+
- Christian Clauss
28+
- Shiyan Shirani
29+
- Calum Smith
30+
- Steven Luoma
2531

2632
A full list of contributors can be found on Github; https://github.com/explorerhq/django-sql-explorer/graphs/contributors

HISTORY.rst

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,41 @@ Change Log
55
This document records all notable changes to `django-sql-explorer <https://github.com/explorerhq/django-sql-explorer>`_.
66
This project adheres to `Semantic Versioning <https://semver.org/>`_.
77

8+
`5.1.0`_ (2024-07-TBD)
9+
===========================
10+
Major improvements:
11+
12+
* `#647`_: Upload json files as data sources (in addition to CSV and SQLite files). Both 'normal'
13+
json files, and files structured as a list of json objects (one json object per line) are supported.
14+
* `#643`_: Addresses #640 (Snowflake support). Additionally, supports an "extras" field on the
15+
userspace DatabaseConnection object, which allows for arbitrary additional connection
16+
params to get added. This allows engine-specific (or just more obscure) settings to
17+
get injected into the connection.
18+
* `#644`_: Dockerfile and docker-compose to run the test_project. Replaces the old start.sh script.
19+
20+
Minor improvements:
21+
22+
* `#647`_: In the schema explorer, clicking on a field name copies it to the clipboard
23+
* `#647`_: Charts are limited to a maximum of 10 series. This significantly speeds up rendering
24+
of 'wide' result-sets when charts are enabled.
25+
* `#645`_: Removed pie charts, added bar charts. Replaced Seaborn with Matplotlib
26+
because it's much lighter weight. Pie charts were overly finicky to get working.
27+
Bars are more useful. Will look to continue to expand charting in the future.
28+
* `#643`_: After uploading a csv/json/etc, the resulting connection is highlighted in the
29+
connection list, making it much clearer what happened.
30+
* `#643`_: Fixed some bugs in user connection stuff in general, and improved the UI.
31+
32+
Bugfixes and internal improvements:
33+
34+
* `#647`_: Robustness to the user uploads feature, in terms of the UI, error handling and logging, and test coverage.
35+
* `#648`_: Backwards migration for 0016_alter_explorervalue_key.py
36+
* `#649`_: Use a more reliable source of the static files URL
37+
* `#635`_: Improved test coverage in tox, so that base requirements are properly used.
38+
This would have prevented (for example) issue 631. Additionally, introduced a test
39+
to verify that migrations are always generated, which would have prevented #633.
40+
* `#636`_: Output rendering bugfix.
41+
* `#567`_: Upgrade translate tags in templates to more modern style.
42+
843
`5.0.2`_ (2024-07-3)
944
===========================
1045
* `#633`_: Missing migration
@@ -561,7 +596,14 @@ Initial Release
561596
.. _#566: https://github.com/explorerhq/django-sql-explorer/pull/566
562597
.. _#571: https://github.com/explorerhq/django-sql-explorer/pull/571
563598
.. _#594: https://github.com/explorerhq/django-sql-explorer/pull/594
564-
599+
.. _#647: https://github.com/explorerhq/django-sql-explorer/pull/647
600+
.. _#643: https://github.com/explorerhq/django-sql-explorer/pull/643
601+
.. _#644: https://github.com/explorerhq/django-sql-explorer/pull/644
602+
.. _#645: https://github.com/explorerhq/django-sql-explorer/pull/645
603+
.. _#648: https://github.com/explorerhq/django-sql-explorer/pull/648
604+
.. _#649: https://github.com/explorerhq/django-sql-explorer/pull/649
605+
.. _#635: https://github.com/explorerhq/django-sql-explorer/pull/635
606+
.. _#636: https://github.com/explorerhq/django-sql-explorer/pull/636
565607

566608
.. _#269: https://github.com/explorerhq/django-sql-explorer/issues/269
567609
.. _#288: https://github.com/explorerhq/django-sql-explorer/issues/288
@@ -587,5 +629,6 @@ Initial Release
587629
.. _#619: https://github.com/explorerhq/django-sql-explorer/issues/619
588630
.. _#631: https://github.com/explorerhq/django-sql-explorer/issues/631
589631
.. _#633: https://github.com/explorerhq/django-sql-explorer/issues/633
632+
.. _#567: https://github.com/explorerhq/django-sql-explorer/issues/567
590633

591634
.. _furo: https://github.com/pradyunsg/furo

README.rst

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,40 @@ SQL Explorer
2020
* `Official Website <https://www.sqlexplorer.io/>`_
2121
* `Live Demo <https://demo.sqlexplorer.io/>`_
2222
* `Documentation <https://django-sql-explorer.readthedocs.io/en/latest/>`_
23-
* Quick Start: Clone and then ``docker compose up``
2423

25-
Video Tour:
24+
Video Tour
25+
----------
2626

2727
.. |inline-image| image:: https://sql-explorer.s3.amazonaws.com/video-thumbnail.png
2828
:target: https://sql-explorer.s3.amazonaws.com/Sql+Explorer+5.mp4
2929
:height: 10em
3030

3131
|inline-image|
3232

33+
Quick Start
34+
-----------
35+
36+
Included is a complete test project that you can use to kick the tires.
37+
38+
1. Run ``docker compose up``
39+
2. Navigate to 127.0.0.1:8000/explorer/
40+
3. log in with admin/admin
41+
4. Begin exploring!
42+
43+
This will also run a Vite dev server with hot reloading for front-end changes.
44+
45+
About
46+
-----
47+
3348
SQL Explorer aims to make the flow of data between people fast,
3449
simple, and confusion-free. It is a Django-based application that you
3550
can add to an existing Django site, or use as a standalone business
3651
intelligence tool. It will happily connect to any SQL database that
37-
`Django supports <https://docs.djangoproject.com/en/5.0/ref/databases/>`_.
52+
`Django supports <https://docs.djangoproject.com/en/5.0/ref/databases/>`_
53+
as well as user-uploaded CSV, JSON, or SQLite databases.
3854

3955
Quickly write and share SQL queries in a simple, usable SQL editor,
40-
view the results in the browser, and keep the information flowing!
56+
view the results in the browser, and keep the information flowing.
4157

4258
Add an OpenAI (or other provider) API key and get an LLM-powered
4359
SQL assistant that can help write and debug queries. The assistant
@@ -50,17 +66,15 @@ licensed, and pull requests are welcome.
5066

5167
Some key features include:
5268

53-
- Support for multiple connections
69+
- Support for multiple connections, admin configured or user-provided.
70+
- Users can upload and immediately query JSON or CSV files.
5471
- AI-powered SQL assistant
5572
- Quick access to schema information to make querying easier
5673
(including autocomplete)
57-
- In-browser pivot tables (which can also be shared via URLs)
58-
- Ability to snapshot queries on a regular schedule, capturing changing
59-
data
74+
- Ability to snapshot queries on a regular schedule, capturing changing data
6075
- Query history and logs
6176
- Quick in-browser statistics, pivot tables, and scatter-plots (saving
6277
a trip to Excel for simple analyses)
63-
- Basic code-completion in the SQL editor
6478
- Parameterized queries that automatically generate a friendly UI for
6579
users who don't know SQL
6680
- A playground area for quickly running ad-hoc queries
@@ -75,31 +89,33 @@ Screenshots
7589

7690
.. image:: https://sql-explorer.s3.amazonaws.com/5.0-query-with-schema.png
7791

92+
------------------
93+
7894
**Using the SQL AI Assistant**
7995

8096
.. image:: https://sql-explorer.s3.amazonaws.com/5.0-assistant.png
8197

98+
------------------
99+
82100
**Viewing all queries**
83101

84102
.. image:: https://sql-explorer.s3.amazonaws.com/5.0-query-list.png
85103

104+
------------------
105+
86106
**Query results w/ stats summary**
87107

88108
.. image:: https://sql-explorer.s3.amazonaws.com/5.0-query-results.png
89109

110+
------------------
111+
90112
**Pivot in browser**
91113

92114
.. image:: https://sql-explorer.s3.amazonaws.com/5.0-pivot.png
93115

116+
------------------
117+
94118
**View logs**
95119

96120
.. image:: https://sql-explorer.s3.amazonaws.com/5.0-querylogs.png
97121

98-
Development
99-
------------
100-
101-
Included is a test_project that you can use to kick the tires. You can run this via ``docker compose up``
102-
103-
You can now navigate to 127.0.0.1:8000/explorer/, log in with admin/admin, and begin exploring!
104-
105-
This will also run a Vite dev server with hot reloading for front-end changes.

explorer/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
__version_info__ = {
22
"major": 5,
3-
"minor": 0,
4-
"patch": 2,
5-
"releaselevel": "final",
6-
"serial": 0
3+
"minor": 1,
4+
"patch": 0,
5+
"releaselevel": "beta",
6+
"serial": 1
77
}
88

99

pypi-release-checklist.md

Lines changed: 3 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- [x] Make sure any new files are included in MANIFEST.in
44
- [x] Update version number in `explorer/__init__.py`
55
- [x] Update any package dependencies in `setup.py`
6-
- [x] Commit the changes:
6+
- [x] Commit the changes and add the tag *in master*:
77
```
88
git add .
99
git commit -m "Release 1.0.0"
@@ -14,50 +14,5 @@ git push --tags
1414

1515
- Be sure to test the built JS source by running `npm run build` and setting `VITE_DEV_MODE = False` in settings.py
1616

17-
- [x] Build & test the source distribution:
18-
```
19-
python setup.py build
20-
mktmpenv
21-
cd django-sql-explorer
22-
cd dist
23-
tar xzvf django-sql-explorer-x.x.tar.gz
24-
cd django-sql-explorer-x.x/
25-
python setup.py install
26-
python -m django startproject explorertest
27-
cd explorertest/explorertest/
28-
emacs urls.py
29-
>> from django.urls import path, include
30-
>> path('explorer/', include('explorer.urls')),
31-
emacs settings.py
32-
>> add 'explorer' to installed apps
33-
>> EXPLORER_CONNECTIONS = {'Default': 'default'}
34-
>> EXPLORER_DEFAULT_CONNECTION = 'default'
35-
cd..
36-
python manage.py migrate
37-
python manage.py createsuperuser
38-
python manage.py runserver
39-
>> log in and try it! http://127.0.0.1:8000/explorer/
40-
deactivate
41-
```
42-
43-
- [x] Release on PyPI:
44-
```
45-
python setup.py release
46-
```
47-
48-
- [x] Test that it pip installs:
49-
```
50-
mktmpenv
51-
pip install my_project
52-
deactivate
53-
```
54-
55-
- [x] Tag the last git commit with the version number:
56-
```
57-
python setup.py tag
58-
```
59-
60-
Put the same message as in HISTORY.rst.
61-
- [x] Push: `git push`
62-
- [x] Push tags: `git push --tags`
63-
- [x] Check the PyPI listing page (https://pypi.python.org/pypi/django-sql-explorer) to make sure that the README, release notes display properly.
17+
- [x] Check the PyPI listing page (https://pypi.python.org/pypi/django-sql-explorer) to make sure that the release
18+
went out and that the README is displaying properly.

setup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ def requirements(fname):
4444
name=name,
4545
version=version,
4646
author="Chris Clark",
47-
author_email="chris@untrod.com",
48-
maintainer="Mark Walker",
49-
maintainer_email="theshow@gmail.com",
50-
description=("A pluggable app that allows users (admins) to execute SQL,"
51-
" view, and export the results."),
47+
author_email="chris@sqlexplorer.io",
48+
maintainer="Chris Clark",
49+
maintainer_email="chris@sqlexplorer.io",
50+
description=("SQL Reporting that Just Works. Fast, simple, and confusion-free."
51+
"Write and share queries in a delightful SQL editor, with AI assistance"),
5252
license="MIT",
53-
keywords="django sql explorer reports reporting csv database query",
53+
keywords="django sql explorer reports reporting csv json database query",
5454
url="https://www.sqlexplorer.io",
5555
project_urls={
5656
"Changes": "https://django-sql-explorer.readthedocs.io/en/latest/history.html",

0 commit comments

Comments
 (0)