Skip to content

Commit

Permalink
Merge pull request #333 from mesozoic/release-2.2.2
Browse files Browse the repository at this point in the history
Release 2.2.2 for tomorrow (Jan 28)
  • Loading branch information
mesozoic committed Jan 29, 2024
2 parents 453d360 + 2d89564 commit 542a4a1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
16 changes: 16 additions & 0 deletions docs/source/changelog.rst
Expand Up @@ -2,6 +2,22 @@
Changelog
=========

2.2.2 (2023-01-28)
------------------------

* Enterprise methods :meth:`~pyairtable.Enterprise.user`,
:meth:`~pyairtable.Enterprise.users`, and :meth:`~pyairtable.Enterprise.group`
now return collaborations by default.
- `PR #332 <https://github.com/gtalarico/pyairtable/pull/332>`_.
* Added more helper functions for formulas:
:func:`~pyairtable.formulas.LESS`,
:func:`~pyairtable.formulas.LESS_EQUAL`,
:func:`~pyairtable.formulas.GREATER`,
:func:`~pyairtable.formulas.GREATER_EQUAL`,
and
:func:`~pyairtable.formulas.NOT_EQUAL`.
- `PR #323 <https://github.com/gtalarico/pyairtable/pull/323>`_.

2.2.1 (2023-11-28)
------------------------

Expand Down
2 changes: 1 addition & 1 deletion pyairtable/__init__.py
@@ -1,4 +1,4 @@
__version__ = "2.2.1"
__version__ = "2.2.2"

from .api import Api, Base, Table
from .api.enterprise import Enterprise
Expand Down
8 changes: 8 additions & 0 deletions pyairtable/api/enterprise.py
Expand Up @@ -33,6 +33,14 @@ def info(self) -> EnterpriseInfo:
return EnterpriseInfo.parse_obj(payload)

def group(self, group_id: str, collaborations: bool = True) -> UserGroup:
"""
Retrieve information on a single user group with the given ID.
Args:
group_id: A user group ID (``grpQBq2RGdihxl3vU``).
collaborations: If ``False``, no collaboration data will be requested
from Airtable. This may result in faster responses.
"""
params = {"include": ["collaborations"] if collaborations else []}
url = self.api.build_url(f"meta/groups/{group_id}")
payload = self.api.request("GET", url, params=params)
Expand Down

0 comments on commit 542a4a1

Please sign in to comment.