From df359a401349e4bffce6228d86f0e9033bd3f2d6 Mon Sep 17 00:00:00 2001 From: Han Wang Date: Thu, 31 Aug 2023 06:02:06 +0000 Subject: [PATCH 1/3] Fix SlackEnvelope model --- src/slackers/models.py | 7 ++++++- .../__init__.cpython-310-pytest-7.4.0.pyc | Bin 0 -> 131 bytes .../conftest.cpython-310-pytest-7.4.0.pyc | Bin 0 -> 1251 bytes 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 tests/__pycache__/__init__.cpython-310-pytest-7.4.0.pyc create mode 100644 tests/__pycache__/conftest.cpython-310-pytest-7.4.0.pyc diff --git a/src/slackers/models.py b/src/slackers/models.py index e16e510..4d48013 100644 --- a/src/slackers/models.py +++ b/src/slackers/models.py @@ -13,13 +13,18 @@ class SlackChallenge(SlackBase): class SlackEnvelope(SlackBase): + class Config: + extra = "allow" + team_id: str api_app_id: str event: dict type: str - authed_users: Optional[List[str]] event_id: str event_time: int + authorizations: Optional[List[dict]] + is_ext_shared_channel: Optional[bool] + event_context: Optional[str] class SlackAction(SlackBase): diff --git a/tests/__pycache__/__init__.cpython-310-pytest-7.4.0.pyc b/tests/__pycache__/__init__.cpython-310-pytest-7.4.0.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7ff04d01a138d178f65f2d7a9d34a45f38e51025 GIT binary patch literal 131 zcmd1j<>g`kf-Id6DIoeWh(HF6K#l_t7qb9~6oz01O-8?!3`HPe1o2BvzdXMvySN}R zIki~7I43bVJGH1-za+J|q*y;bJ~J<~BtBlRpz;=nO>TZlX-=vgNPjUCkYHf|0J1F` AmH+?% literal 0 HcmV?d00001 diff --git a/tests/__pycache__/conftest.cpython-310-pytest-7.4.0.pyc b/tests/__pycache__/conftest.cpython-310-pytest-7.4.0.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3605665dbe38a7f18ebedaf3718d4c64b0dda561 GIT binary patch literal 1251 zcmZuw%TC-d6t$h1Boi_N6j~M36^lxd3j6@7KnM_`8dc0JDsQ4RHW0|GwgUyhif;LV zstZ{1OWtb0jsrw>cE@4bGVbMAH3?FI;1|HU`+z;MKfOjAL>U~d)tXr8?Sf442E2) z%{=3!0?!pyqqs=T#&N@7IM6qt%S9Lzx<*&%65V1&?l4BmxdhTT<_Xfj$J$BiI%)}! z3ejFxrg_77Ji1sIt%SKvv|+eM!h`Ai^VPFToX9#!xm=ZblAdrOR}~@B$i{jRYA&oCpO2taoF)ZgCN+lmLfI}y29 zc(Xh(0G9Xpy9STZr zEz8m111udHLh%t#81S5fh&16D0u8%AL>HXY$UbgHN+X)(^8^eK9~j)>D`0Vnk8w;G zvRp0}$MUV5a*-WmX`-^KTsbO|bQn3bT_-9%qP?^#>O}CEWrqMohk^s2GCoc6hDU_D zMP+h8Tjt!~=%3b!l)uo&ldn7jWYXv!kPwS$FoxQbTuML?5$z?7sv604Tc%ab|Hv5Z z{mrlk4#Nr^V}{q@-`K*U^Mh9#n|mfr{oVdfJlNXY-x|WTq>|d>O;+xoEbS_=Q=?5`CSYjXb5l#w)vSwcScAuk~bNy`av%Z2U-IBfUuPwEUV+W-In literal 0 HcmV?d00001 From 857741fe474b65421bcbe1ff10a129ff3269eefc Mon Sep 17 00:00:00 2001 From: Han Wang Date: Thu, 31 Aug 2023 06:10:28 +0000 Subject: [PATCH 2/3] update --- .gitignore | 1 + CHANGELOG.md | 5 +++++ pyproject.toml | 2 +- .../__init__.cpython-310-pytest-7.4.0.pyc | Bin 131 -> 0 bytes .../conftest.cpython-310-pytest-7.4.0.pyc | Bin 1251 -> 0 bytes 5 files changed, 7 insertions(+), 1 deletion(-) delete mode 100644 tests/__pycache__/__init__.cpython-310-pytest-7.4.0.pyc delete mode 100644 tests/__pycache__/conftest.cpython-310-pytest-7.4.0.pyc diff --git a/.gitignore b/.gitignore index d748729..330a03b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ *.egg-info/ .tox dist/ +__pycache__/ \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 0740e34..f1ee5a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Slackers change log + +## 1.0.4 +### Fixed +- Updated Pydantic model `SlackEnvelope` due to Slack side change + ## 1.0.3 ### Added - Update dependencies. diff --git a/pyproject.toml b/pyproject.toml index e2545dc..a7becc1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "slackers" -version = "1.0.3" +version = "1.0.4" readme = "README.md" homepage = "https://github.com/uhavin/slackers" repository = "https://github.com/uhavin/slackers" diff --git a/tests/__pycache__/__init__.cpython-310-pytest-7.4.0.pyc b/tests/__pycache__/__init__.cpython-310-pytest-7.4.0.pyc deleted file mode 100644 index 7ff04d01a138d178f65f2d7a9d34a45f38e51025..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 131 zcmd1j<>g`kf-Id6DIoeWh(HF6K#l_t7qb9~6oz01O-8?!3`HPe1o2BvzdXMvySN}R zIki~7I43bVJGH1-za+J|q*y;bJ~J<~BtBlRpz;=nO>TZlX-=vgNPjUCkYHf|0J1F` AmH+?% diff --git a/tests/__pycache__/conftest.cpython-310-pytest-7.4.0.pyc b/tests/__pycache__/conftest.cpython-310-pytest-7.4.0.pyc deleted file mode 100644 index 3605665dbe38a7f18ebedaf3718d4c64b0dda561..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1251 zcmZuw%TC-d6t$h1Boi_N6j~M36^lxd3j6@7KnM_`8dc0JDsQ4RHW0|GwgUyhif;LV zstZ{1OWtb0jsrw>cE@4bGVbMAH3?FI;1|HU`+z;MKfOjAL>U~d)tXr8?Sf442E2) z%{=3!0?!pyqqs=T#&N@7IM6qt%S9Lzx<*&%65V1&?l4BmxdhTT<_Xfj$J$BiI%)}! z3ejFxrg_77Ji1sIt%SKvv|+eM!h`Ai^VPFToX9#!xm=ZblAdrOR}~@B$i{jRYA&oCpO2taoF)ZgCN+lmLfI}y29 zc(Xh(0G9Xpy9STZr zEz8m111udHLh%t#81S5fh&16D0u8%AL>HXY$UbgHN+X)(^8^eK9~j)>D`0Vnk8w;G zvRp0}$MUV5a*-WmX`-^KTsbO|bQn3bT_-9%qP?^#>O}CEWrqMohk^s2GCoc6hDU_D zMP+h8Tjt!~=%3b!l)uo&ldn7jWYXv!kPwS$FoxQbTuML?5$z?7sv604Tc%ab|Hv5Z z{mrlk4#Nr^V}{q@-`K*U^Mh9#n|mfr{oVdfJlNXY-x|WTq>|d>O;+xoEbS_=Q=?5`CSYjXb5l#w)vSwcScAuk~bNy`av%Z2U-IBfUuPwEUV+W-In From ba799072d1e9b7f8a97efca56e174f6777895b28 Mon Sep 17 00:00:00 2001 From: Han Wang Date: Thu, 31 Aug 2023 06:11:02 +0000 Subject: [PATCH 3/3] update --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 330a03b..585b6ce 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ *.egg-info/ .tox dist/ -__pycache__/ \ No newline at end of file +__pycache__/