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

feat(db): add find_config_by_key_unwrap_or #2214

Merged
merged 1 commit into from
Sep 21, 2023
Merged

Conversation

Abhicodes-crypto
Copy link
Contributor

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

add find_config_by_key_unwrap_or , so that the default value is inserted in DB and cached for faster retrievals.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Compiles

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible
  • I added a CHANGELOG entry if applicable

@Abhicodes-crypto Abhicodes-crypto added A-framework Area: Framework S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Sep 21, 2023
@Abhicodes-crypto Abhicodes-crypto self-assigned this Sep 21, 2023
@Abhicodes-crypto Abhicodes-crypto requested a review from a team as a code owner September 21, 2023 07:21
@Abhicodes-crypto
Copy link
Contributor Author

Race conditions could happen here . Will raise a separate PR for enabling locking for this table.

@inventvenkat inventvenkat added this pull request to the merge queue Sep 21, 2023
Merged via the queue into main with commit 2bd2526 Sep 21, 2023
10 checks passed
@inventvenkat inventvenkat deleted the find-config-or-default branch September 21, 2023 16:14
@SanchithHegde SanchithHegde removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-framework Area: Framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants