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

Add DB_MAX_SAFE_INTEGER constant #1788

Merged
merged 2 commits into from
Jul 29, 2024
Merged

Add DB_MAX_SAFE_INTEGER constant #1788

merged 2 commits into from
Jul 29, 2024

Conversation

hectorgomezv
Copy link
Member

@hectorgomezv hectorgomezv commented Jul 26, 2024

Summary

Context: #1773 (comment)

Changes

  • Adds a DB_MAX_SAFE_INTEGER constant, with value (2^31)-1 (max Postgres value for an integer column).

@hectorgomezv hectorgomezv self-assigned this Jul 26, 2024
@hectorgomezv hectorgomezv requested a review from a team as a code owner July 26, 2024 10:02
@coveralls
Copy link

coveralls commented Jul 26, 2024

Pull Request Test Coverage Report for Build 10114076917

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 27 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.003%) to 48.454%

Files with Coverage Reduction New Missed Lines %
src/datasources/config-api/config-api.service.ts 8 77.78%
src/datasources/cache/cache.first.data.source.ts 19 47.22%
Totals Coverage Status
Change from base Build 10109372074: -0.003%
Covered Lines: 4326
Relevant Lines: 7197

💛 - Coveralls

@@ -0,0 +1,5 @@
/**
* The maximum safe integer for the database.
* This is the maximum value that can be stored in the database for an integer column.
Copy link
Member

Choose a reason for hiding this comment

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

Nit: can we add a link to a reference for this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in e94c337

@hectorgomezv hectorgomezv requested a review from iamacook July 26, 2024 15:53
@hectorgomezv hectorgomezv merged commit 5eeda58 into main Jul 29, 2024
16 checks passed
@hectorgomezv hectorgomezv deleted the set-db-max-safe-integer branch July 29, 2024 14:15
DenSmolonski pushed a commit to Zilliqa/safe-client-gateway that referenced this pull request Oct 24, 2024
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