Skip to content

Commit

Permalink
bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
dantownsend committed Nov 16, 2021
1 parent bde5939 commit 0a85fc2
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,46 @@
Changes
=======

0.29.0
------
Added a ``__visible_fields`` filter to ``PiccoloCRUD``. It's a very powerful
feature which lets us specify which fields we want the API to return from a
GET request (courtesy @sinisaos).

It can even support joins, but we must supply a ``max_joins`` parameter:

.. code-block:: python

app = PiccoloCRUD(Movie, max_joins=1)
uvicorn(app)

Then we can do:

.. code-block:: text

GET /?__visible_fields=id,name,director.name

Which will return:

.. code-block:: javascript

{
"rows": [
{
"id": 17,
"name": "The Hobbit: The Battle of the Five Armies",
"director": {
"name": "Peter Jackson"
}
},
...
]
}

By specifying exactly which data we want returned, it is much more efficient,
especially when fetching large numbers of rows, or with tables with lots of
columns.

0.28.1
------
Fixed a bug with the delete endpoint of ``PiccoloCRUD``. It was returning a 204
Expand Down
2 changes: 1 addition & 1 deletion piccolo_api/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__VERSION__ = "0.28.1"
__VERSION__ = "0.29.0"

0 comments on commit 0a85fc2

Please sign in to comment.