Skip to content

Add missing timeout to Slack notification plugin - #12990

Merged
SchrodingersGat merged 4 commits into
inventree:masterfrom
gotoUSA:fix/slack-notification-timeout
Oct 12, 2026
Merged

SchrodingersGat merged 4 commits into
inventree:masterfrom
gotoUSA:fix/slack-notification-timeout

Conversation

@gotoUSA

@gotoUSA gotoUSA commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Problem: slack notification plugin has no timeout in requests.post

User Impact: When issuing a purchase order, if the Slack response is delayed, the API request hangs for the entire duration that Slack holds the connection.

Verification: For instance, if Slack holds the request for 90 seconds, the execution time was 90.08 seconds before the fix and 10.12 seconds after.

Changes Made: Added timeout=10 and included a new test.

@netlify

netlify Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 625146a
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6acd2bd8c287863fd11a07b6

@matmair matmair added this to the 1.5.7 milestone Oct 10, 2026
@matmair matmair added backport Apply this label to a PR to enable auto-backport action backport-to-1.5.x bug Identifies a bug which needs to be addressed labels Oct 10, 2026
@codecov

codecov Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.23%. Comparing base (3e367df) to head (625146a).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12990   +/-   ##
=======================================
  Coverage   87.22%   87.23%           
=======================================
  Files        1512     1512           
  Lines      104086   104097   +11     
  Branches    11803    11803           
=======================================
+ Hits        90794    90812   +18     
+ Misses      13226    13219    -7     
  Partials       66       66           
Flag Coverage Δ
backend 92.05% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 92.66% <100.00%> (+<0.01%) ⬆️
Backend General 94.52% <ø> (ø)
Frontend 79.37% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@matmair matmair modified the milestones: 1.5.7, 1.5.8 Oct 10, 2026
@SchrodingersGat
SchrodingersGat merged commit 2341d5f into inventree:master Oct 12, 2026
48 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
✅ 1.5.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

SchrodingersGat pushed a commit that referenced this pull request Oct 13, 2026
(cherry picked from commit 2341d5f)

Co-authored-by: MH <[email protected]>
Co-authored-by: Matthias Mair <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Apply this label to a PR to enable auto-backport action backport-to-1.5.x bug Identifies a bug which needs to be addressed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants