From 0e318f5f0bd26d6adefe5b9892975d14a3d0e3a5 Mon Sep 17 00:00:00 2001 From: Raymond Wiker Date: Fri, 20 Jun 2025 09:24:10 +0200 Subject: [PATCH 1/2] fix: allow redirect for task result. --- src/sumo/wrapper/sumo_client.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/sumo/wrapper/sumo_client.py b/src/sumo/wrapper/sumo_client.py index 09011cf..e85fe3d 100644 --- a/src/sumo/wrapper/sumo_client.py +++ b/src/sumo/wrapper/sumo_client.py @@ -227,6 +227,11 @@ def get(self, path: str, params: Optional[Dict] = None) -> httpx.Response: path, ) is not None + or re.match( + r"^/tasks\('[0-9a-fA-F-]{8}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{12}'\)/result$", # noqa: E501 + path, + ) + is not None ): follow_redirects = True @@ -542,6 +547,11 @@ async def get_async( path, ) is not None + or re.match( + r"^/tasks\('[0-9a-fA-F-]{8}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{4}-[0-9a-fA-F-]{12}'\)/result$", # noqa: E501 + path, + ) + is not None ): follow_redirects = True From d412fc28274bc4c9ff68d401b4e4a54db5e17efa Mon Sep 17 00:00:00 2001 From: Raymond Wiker Date: Fri, 20 Jun 2025 10:43:18 +0200 Subject: [PATCH 2/2] chore: remove spurious spaces at end of lines. --- CONTRIBUTING.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3f65b73..68da39c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,18 +11,18 @@ This is how you should do it: Use our [issue list](../../issues) to report a **bug** or **propose a new feature**, including -### Reporting a **bug report** +### Reporting a **bug report** - A quick summary and/or background - Steps to reproduce - What actually happens -### Adding a **feature request** +### Adding a **feature request** - Brief description of the feature - What problem/issue will this solve - A sort of Definition of Done - "How should it look when finished" -### When submitting a fix using a Pull Request (PR) -- Fork this repository from GitHub -- After you have made the changes, create a pull request (PR) +### When submitting a fix using a Pull Request (PR) +- Fork this repository from GitHub +- After you have made the changes, create a pull request (PR) -We will review the pull request and if it is appropriate and there are no clashes or vulnerabilities, it will be merged to the main code. \ No newline at end of file +We will review the pull request and if it is appropriate and there are no clashes or vulnerabilities, it will be merged to the main code.