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

refactor(configs): add configs for deployments to environments #3265

Merged
merged 27 commits into from
Jan 24, 2024

Conversation

pixincreate
Copy link
Member

@pixincreate pixincreate commented Jan 8, 2024

Type of Change

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

Description

This PR adds the configs that are required for deployment. Please read the readme to learn about the usage.

Additional Changes

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

config/deployments

Motivation and Context

We need to do the deployments.

How did you test it?

Please read the readme to learn about the usage where I've given steps to run the builds.

In shell, execute:

mv deployments/env_specific.toml deployments/<integration_test/sandbox/production>-specific.toml
# Fill in the required fields
cat deployments/<integration_test/sandbox/production>-specific.toml  deployments/<integration_test/sandbox/production>.toml > output/merged-<integration_test/sandbox/production>.toml

This should produce a .toml file in the output folder.

Open the folder, you should not see any duplicate values or syntax errors.
You can check the syntax using and duplicate values using:

# Syntax Check
jq --exit-status --raw-output --monochrome-output '""' output/merged-<integration_test/sandbox/production>.toml

# Find duplicate value
jq --monochrome-output --raw-output 'group_by(.name) | map(select(length>1) | .[0].name) | .[]' output/merged-<integration_test/sandbox/production>.toml

Once verified:

cargo r -- -f output/merged-<integration_test/sandbox/production>.toml

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

@pixincreate pixincreate added A-dependencies Area: Dependencies S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Jan 8, 2024
@pixincreate pixincreate added this to the December 2023 Release milestone Jan 8, 2024
@pixincreate pixincreate self-assigned this Jan 8, 2024
* 'main' of github.com:juspay/hyperswitch:
  fix(connector): [Stripe] Deserialization Error while parsing Dispute Webhook Body (#3256)
  refactor(euclid_wasm): Update wasm config (#3222)
  fix(analytics): added response to the connector outgoing event (#3129)
  fix(analytics): fixed response code to 501 (#3119)
  fix(connector): [NMI] Populating `ErrorResponse` with required fields and Mapping `connector_response_reference_id` (#3214)
  feat(merchant_account): Add list multiple merchants in `MerchantAccountInterface` (#3220)
  feat: include version number in response headers and on application startup (#3045)
  chore: address Rust 1.75 clippy lints (#3231)
  feat: add deep health check (#3210)
  feat(analytics): adding outgoing webhooks kafka event (#3140)
  refactor: address panics due to indexing and slicing (#3233)
  fix(users): Fix wrong redirection url in magic link (#3217)
  fix(user): add integration_completed enum in metadata type (#3245)
  chore(version): v1.106.1
  fix(connector): [iatapay] change refund amount (#3244)
  chore(version): v1.106.0
  test(postman): update postman collection files
  fix(core): fix recurring mandates flow for cyber source (#3224)
  chore: fix channel handling for consumer workflow loop (#3223)
@pixincreate pixincreate marked this pull request as ready for review January 8, 2024 07:24
@pixincreate pixincreate requested a review from a team as a code owner January 8, 2024 07:24
Sakilmostak and others added 7 commits January 9, 2024 20:11
* 'env_split' of github.com:juspay/hyperswitch:
  feat(configs): changes to add payment_method_data for complete auth flow in NMI
* 'main' of github.com:juspay/hyperswitch:
  feat(pm_list): add required fields for Ideal  (#3183)
  refactor: pass customer object to `make_pm_data` (#3246)
  feat(Connector): [VOLT] Add support for Payments Webhooks (#3155)
  fix(users): Added merchant name is list merchants (#3289)
  fix(outgoingwebhookevents): Throw an error when outgoing webhook events env var not found (#3291)
  fix(wasm): fix failing `wasm-pack build` for `euclid_wasm` (#3284)
  ci: add workflow to create stable SemVer tag for a given CalVer tag (#3285)
  fix(connector): [BOA, Cybersource] capture error_code (#3239)
  fix(connector): [BOA/CYB] Fix Metadata Error (#3283)
  chore(version): 2024.01.08.0
  fix: introduce net_amount field in payment response (#3115)
  ci(postman): Adyen assertion fix for expired card test case  (#3279)
  feat(connector): Add Revoke mandate flow (#3261)
  refactor(drainer): change logic for trimming the stream and refactor for modularity (#3128)
  fix(router): Payment link api contract change (#2975)
  feat(pm_list): add required fields for eps (#3169)
  refactor(api_lock): allow api lock on psync only when force sync is true (#3242)
  fix(router): multiple incremental_authorizations with kv enabled (#3185)
  feat(payments): add payment id in all the payment logs (#3142)
  ci: add reusable workflow to create nightly tags in CalVer format (#3247)
* 'main' of github.com:juspay/hyperswitch:
  ci: use git commands for pushing commits and tags in nightly release workflows (#3314)
  refactor(connector): [bluesnap] add connector_txn_id fallback for webhook (#3315)
  feat(core): add new payments webhook events (#3212)
  chore: nits and small code improvements found during investigation of PR#3168 (#3259)
  refactor: removed basilisk feature (#3281)
  fix(euclid_wasm): Update braintree config prod (#3288)
  feat(payment_link): add status page for payment link (#3213)
  chore(version): 2024.01.10.0
  chore(postman): update Postman collection files
@pixincreate pixincreate changed the title refactor(configs): Simplify the existing configs for deployments refactor(configs): add configs for deployments to environments Jan 11, 2024
* 'main' of github.com:juspay/hyperswitch: (22 commits)
  chore(version): 2024.01.12.1
  chore: add api reference for blocklist (#3336)
  chore(config): add merchant_secret config for webhooks for  cashtocode and volt in wasm dashboard (#3333)
  chore(version): 2024.01.12.0
  fix: update amount_capturable based on intent_status and payment flow (#3278)
  feat: add support for card extended bin in payment attempt (#3312)
  feat(connector): [cybersource] Implement 3DS flow for cards (#3290)
  chore: remove connector auth TOML files from `.gitignore` and `.dockerignore` (#3330)
  fix(refund): add merchant_connector_id in refund (#3303)
  feat(connector): [BOA/CYB] Store AVS response in connector_metadata (#3271)
  feat(outgoingwebhookevent): adding api for query to fetch outgoing webhook events log (#3310)
  feat(router): payment_method block (#3056)
  feat(connector): [Volt] Add support for refund webhooks  (#3326)
  feat(users): invite user without email (#3328)
  feat(euclid_wasm): config changes for NMI (#3329)
  refactor(router): restricted list payment method Customer to api-key based (#3100)
  feat(connector): [BOA/Cyb] Include merchant metadata in capture and void requests (#3308)
  fix(router): add config to avoid connector tokenization for `apple pay` `simplified flow` (#3234)
  refactor(router): flagged order_details validation to skip validation (#3116)
  fix(core): surcharge with saved card failure (#3318)
  ...
config/deployments/README.md Outdated Show resolved Hide resolved
config/deployments/README.md Outdated Show resolved Hide resolved
config/deployments/README.md Outdated Show resolved Hide resolved
config/deployments/README.md Outdated Show resolved Hide resolved
config/deployments/README.md Outdated Show resolved Hide resolved
config/deployments/scheduler/consumer.toml Outdated Show resolved Hide resolved
config/deployments/integ.toml Outdated Show resolved Hide resolved
config/deployments/integ.toml Outdated Show resolved Hide resolved
config/deployments/production.toml Outdated Show resolved Hide resolved
config/deployments/sandbox.toml Outdated Show resolved Hide resolved
* 'main' of github.com:juspay/hyperswitch:
  chore(version): 2024.01.17.0
  feat(connector): [BANKOFAMERICA] Implement 3DS flow for cards (#3343)
  ci(s3): fetch connector creds from s3 for added security (#3323)
  feat(recon): add recon APIs (#3345)
  fix(payment_link): added expires_on in payment response (#3332)
  fix(connector_onboarding): Check if connector exists for the merchant account and add reset tracking id API (#3229)
* 'main' of github.com:juspay/hyperswitch:
  refactor: [Noon] adding new field max_amount to mandate request (#3209)
  fix(events): fix event generation for paymentmethods list (#3337)
  chore(router): remove recon from default features (#3370)
  fix(core): add validation for authtype and metadata in update payment connector (#3305)
  refactor(connector): [cybersource] recurring mandate flow (#3354)
  feat(connector_events): added api to fetch connector event logs (#3319)
  feat(payment_method): add capability to store bank details using /payment_methods endpoint (#3113)
config/deployments/README.md Outdated Show resolved Hide resolved
config/deployments/README.md Outdated Show resolved Hide resolved
config/deployments/README.md Outdated Show resolved Hide resolved
config/deployments/README.md Outdated Show resolved Hide resolved
config/deployments/README.md Outdated Show resolved Hide resolved
config/deployments/env_specific.toml Outdated Show resolved Hide resolved
config/deployments/env_specific.toml Outdated Show resolved Hide resolved
config/deployments/integration_test.toml Outdated Show resolved Hide resolved
config/deployments/production.toml Outdated Show resolved Hide resolved
config/deployments/sandbox.toml Outdated Show resolved Hide resolved
config/deployments/env_specific.toml Outdated Show resolved Hide resolved
config/deployments/README.md Outdated Show resolved Hide resolved
This reverts commit 284b479.
SanchithHegde
SanchithHegde previously approved these changes Jan 20, 2024
lsampras
lsampras previously approved these changes Jan 24, 2024
@likhinbopanna likhinbopanna added this pull request to the merge queue Jan 24, 2024
Merged via the queue into main with commit 77c1bbb Jan 24, 2024
13 checks passed
@likhinbopanna likhinbopanna deleted the env_split branch January 24, 2024 16:29
@SanchithHegde SanchithHegde added M-configuration-changes Metadata: This PR involves configuration changes and removed S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dependencies Area: Dependencies M-configuration-changes Metadata: This PR involves configuration changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants