Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EDSC-4292: Adds label to Harmony orders #1828

Merged
merged 4 commits into from
Nov 12, 2024
Merged

EDSC-4292: Adds label to Harmony orders #1828

merged 4 commits into from
Nov 12, 2024

Conversation

macrouch
Copy link
Contributor

@macrouch macrouch commented Nov 8, 2024

Overview

What is the feature?

Adding two labels to Harmony orders in order for the Harmony team to track EDSC orders and group large orders that we split into multiple Harmony orders.

Also fixed the annoying database problem in dev where we say "sorry, too many clients already" by forcing idle connections to be disconnected.

What areas of the application does this impact?

Harmony orders

Testing

Reproduction steps

Submit a harmony order, check the labels added

Checklist

  • I have added automated tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Copy link

codecov bot commented Nov 8, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 93.44%. Comparing base (69b2f59) to head (335beda).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
serverless/src/util/database/getDbConnection.js 66.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1828       +/-   ##
===========================================
+ Coverage   70.54%   93.44%   +22.89%     
===========================================
  Files         770      770               
  Lines       18596    18600        +4     
  Branches     4766     4799       +33     
===========================================
+ Hits        13119    17381     +4262     
+ Misses       4946     1136     -3810     
+ Partials      531       83      -448     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +18 to +21
if (process.env.IS_OFFLINE) {
// When running locally set the pool min to 0 to avoid idle connections
pool.min = 0
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this the solution to the sorry, too many clients already error we'd run into locally sometimes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. it has been driving me crazy recently, and I've been copying this change to all my branches and I haven't seen it in a while

@macrouch macrouch merged commit 2f37e43 into main Nov 12, 2024
11 checks passed
@macrouch macrouch deleted the EDSC-4292 branch November 12, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants