Skip to content

Commit 802a1d7

Browse files
committed
Merge branch 'main' of github.com:juspay/hyperswitch into fixtures-unify-cypress
* 'main' of github.com:juspay/hyperswitch: (22 commits) refactor: Adding millisecond to Kafka timestamp (#5202) chore(version): 2024.07.05.0 fix(user_auth_method): make id option in auth select (#5213) Docs: Updated API - ref for payments (#5172) feat(core): add merchant order reference id (#5197) feat(analytics): Refund status serialization issue for ckh analytics (#5199) fix(router): `override setup_future_usage` filed to on_session based on merchant config (#5195) feat(cypress): make tests forcefully skippable (#5176) feat(core): Added integrity framework for Authorize and Sync flow with connector as Stripe (#5109) ci(cypress): Update card number for adyen and status for paypal (#5192) refactor(cypress): error handling and add sync refunds in places where missing (#5128) feat(analytics): FRM Analytics (#4880) chore(version): 2024.07.04.0 feat(pm_auth): Added balance check for PM auth bank account (#5054) refactor(payment_methods): add appropriate missing logs (#5190) refactor(migrations): add commands to make file to run migrations for api v2 (#5169) chore(version): 2024.07.03.0 fix(event): Updated the ApiEventMetric (#5126) feat(router): add refunds manual-update api (#5094) refactor(payment_link): logs payment links logs coverage (#4918) ...
2 parents 5925156 + 00f9ed4 commit 802a1d7

File tree

147 files changed

+4367
-3022
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+4367
-3022
lines changed

.github/workflows/migration-check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ jobs:
5757
shell: bash
5858
env:
5959
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
60-
run: diesel migration run --locked-schema
60+
run: make migrate locked-schema=yes
6161

6262
- name: Verify `diesel migration redo`
6363
shell: bash
6464
env:
6565
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
66-
run: diesel migration redo -a --locked-schema
66+
run: make redo_migrate locked-schema=yes

.github/workflows/postman-collection-runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
shell: bash
108108
env:
109109
DATABASE_URL: postgres://db_user:db_pass@localhost:5432/hyperswitch_db
110-
run: diesel migration run
110+
run: make migrate locked-schema=yes
111111

112112
- name: Install newman from fork
113113
run: npm ci

CHANGELOG.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,77 @@ All notable changes to HyperSwitch will be documented here.
44

55
- - -
66

7+
## 2024.07.05.0
8+
9+
### Features
10+
11+
- **analytics:**
12+
- FRM Analytics ([#4880](https://github.com/juspay/hyperswitch/pull/4880)) ([`cc88c07`](https://github.com/juspay/hyperswitch/commit/cc88c0707fe9fa6b54546c0c73b7b46f42497f17))
13+
- Refund status serialization issue for ckh analytics ([#5199](https://github.com/juspay/hyperswitch/pull/5199)) ([`755d968`](https://github.com/juspay/hyperswitch/commit/755d968c95b8a5287408599de5187e50deac588f))
14+
- **core:**
15+
- Added integrity framework for Authorize and Sync flow with connector as Stripe ([#5109](https://github.com/juspay/hyperswitch/pull/5109)) ([`c8c0cb7`](https://github.com/juspay/hyperswitch/commit/c8c0cb765e8a511aae0b3a4f94115bb07d122c9d))
16+
- Add merchant order reference id ([#5197](https://github.com/juspay/hyperswitch/pull/5197)) ([`f4665d2`](https://github.com/juspay/hyperswitch/commit/f4665d2f4a46a7beec96183db347ea7265cb881c))
17+
- **cypress:** Make tests forcefully skippable ([#5176](https://github.com/juspay/hyperswitch/pull/5176)) ([`bf9893e`](https://github.com/juspay/hyperswitch/commit/bf9893e2306a6d4525b0602c8242f77e2c4fec76))
18+
19+
### Bug Fixes
20+
21+
- **router:** `override setup_future_usage` filed to on_session based on merchant config ([#5195](https://github.com/juspay/hyperswitch/pull/5195)) ([`52abda9`](https://github.com/juspay/hyperswitch/commit/52abda9bd17c6a4285df8a535f48e7a621fcabbe))
22+
- **user_auth_method:** Make id option in auth select ([#5213](https://github.com/juspay/hyperswitch/pull/5213)) ([`5478f70`](https://github.com/juspay/hyperswitch/commit/5478f70e3e0463ec53f8b4f652474dd7c790b6e1))
23+
24+
### Refactors
25+
26+
- **cypress:** Error handling and add sync refunds in places where missing ([#5128](https://github.com/juspay/hyperswitch/pull/5128)) ([`ddfdc35`](https://github.com/juspay/hyperswitch/commit/ddfdc35f707f5a587adcddcda986f45cd80dd0ed))
27+
28+
### Documentation
29+
30+
- Updated API - ref for payments ([#5172](https://github.com/juspay/hyperswitch/pull/5172)) ([`cf5c104`](https://github.com/juspay/hyperswitch/commit/cf5c1041b787ecf74519eb5077ebacd3b1beef67))
31+
32+
**Full Changelog:** [`2024.07.04.0...2024.07.05.0`](https://github.com/juspay/hyperswitch/compare/2024.07.04.0...2024.07.05.0)
33+
34+
- - -
35+
36+
## 2024.07.04.0
37+
38+
### Features
39+
40+
- **pm_auth:** Added balance check for PM auth bank account ([#5054](https://github.com/juspay/hyperswitch/pull/5054)) ([`f513c8e`](https://github.com/juspay/hyperswitch/commit/f513c8e4daa95a6ceb89ce616e3d55058708fb2a))
41+
42+
### Refactors
43+
44+
- **migrations:** Add commands to make file to run migrations for api v2 ([#5169](https://github.com/juspay/hyperswitch/pull/5169)) ([`ff23e2f`](https://github.com/juspay/hyperswitch/commit/ff23e2f7d3de77cbb03a837de20e1435d1632d68))
45+
- **payment_methods:** Add appropriate missing logs ([#5190](https://github.com/juspay/hyperswitch/pull/5190)) ([`e85407f`](https://github.com/juspay/hyperswitch/commit/e85407fc5344e983732077d4fdcae85ad59bfd10))
46+
47+
**Full Changelog:** [`2024.07.03.0...2024.07.04.0`](https://github.com/juspay/hyperswitch/compare/2024.07.03.0...2024.07.04.0)
48+
49+
- - -
50+
51+
## 2024.07.03.0
52+
53+
### Features
54+
55+
- **router:**
56+
- Collect billing details from wallet connector based on the `collect_billing_details_from_wallet_connector` field ([#5065](https://github.com/juspay/hyperswitch/pull/5065)) ([`ee9190b`](https://github.com/juspay/hyperswitch/commit/ee9190bf4f29699a2878bc89d7a83cd77a3ce472))
57+
- Add refunds manual-update api ([#5094](https://github.com/juspay/hyperswitch/pull/5094)) ([`9bc7801`](https://github.com/juspay/hyperswitch/commit/9bc780151c8ff1874d971bf8c79ae53cb6c477d8))
58+
59+
### Bug Fixes
60+
61+
- **auth_methods:** Add checks for duplicate `auth_method` in create API ([#5161](https://github.com/juspay/hyperswitch/pull/5161)) ([`045e974`](https://github.com/juspay/hyperswitch/commit/045e9742bd1d8985847eab47f6a38e1f750c09de))
62+
- **event:** Updated the ApiEventMetric ([#5126](https://github.com/juspay/hyperswitch/pull/5126)) ([`1bb2ae8`](https://github.com/juspay/hyperswitch/commit/1bb2ae8423786449e4d53ace08aa94f872cc73f2))
63+
- **router:**
64+
- [CYBS] make payment status optional ([#5165](https://github.com/juspay/hyperswitch/pull/5165)) ([`e3470a2`](https://github.com/juspay/hyperswitch/commit/e3470a240d84e2971c5194f0aa2022eae04c0943))
65+
- Update last used when the customer acceptance is passed in the recurring payment ([#5116](https://github.com/juspay/hyperswitch/pull/5116)) ([`b2e0caf`](https://github.com/juspay/hyperswitch/commit/b2e0caf6d9a33239f9819b077d3cd7dd444e60bd))
66+
- Realtime user analytics ([#5129](https://github.com/juspay/hyperswitch/pull/5129)) ([`5d86002`](https://github.com/juspay/hyperswitch/commit/5d86002ce7f182c9c3d478cd5eb6a43ce63f1398))
67+
68+
### Refactors
69+
70+
- **payment_link:** Logs payment links logs coverage ([#4918](https://github.com/juspay/hyperswitch/pull/4918)) ([`618ec41`](https://github.com/juspay/hyperswitch/commit/618ec41aff0470347ab9818066b210c458cc2d43))
71+
- **router:** Changed payment method token TTL to api contract based config from const value ([#5115](https://github.com/juspay/hyperswitch/pull/5115)) ([`3bbdfb5`](https://github.com/juspay/hyperswitch/commit/3bbdfb5a1c76b9b0a1139e739a5e13867b98ca27))
72+
- Use hashmap deserializer for generic_link options ([#5157](https://github.com/juspay/hyperswitch/pull/5157)) ([`a343f69`](https://github.com/juspay/hyperswitch/commit/a343f69dc4889c37857d41cb7da1f23445ea7ccf))
73+
74+
**Full Changelog:** [`2024.07.02.0...2024.07.03.0`](https://github.com/juspay/hyperswitch/compare/2024.07.02.0...2024.07.03.0)
75+
76+
- - -
77+
778
## 2024.07.02.0
879

980
### Features

Cargo.lock

Lines changed: 5 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

INSTALL_dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ fi
252252

253253
# run migrations
254254
print_info "Running migrations"
255-
MIGRATION_CMD="diesel migration --database-url postgres://${DB_USER}:${DB_PASS}@localhost:5432/${DB_NAME} run"
255+
MIGRATION_CMD="make migrate database-url=postgres://${DB_USER}:${DB_PASS}@localhost:5432/${DB_NAME}"
256256

257257
if [[ -d "migrations" ]]; then
258258
$MIGRATION_CMD

Makefile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,37 @@ precommit : fmt clippy test
113113

114114
hack:
115115
cargo hack check --workspace --each-feature --all-targets
116+
117+
# Run database migrations using `diesel_cli`.
118+
# Assumes `diesel_cli` is already installed.
119+
#
120+
# Usage :
121+
# make migrate [database-url=<PSQL connection string>] [locked-schema=<yes|no>]
122+
123+
# This proceeds as follows:
124+
# Creates a temporary migrations directory, cleans it up if it already exists
125+
# Copies all migrations to the temporary migrations directory and runs migrations
126+
# Cleans up migrations, removing tmp directory if empty, ignoring otherwise
127+
migrate:
128+
mkdir -p $(ROOT_DIR)/tmp/migrations
129+
find $(ROOT_DIR)/tmp/migrations/ -mindepth 1 -delete
130+
131+
cp -r $(ROOT_DIR)/migrations/. $(ROOT_DIR)/v2_migrations/. $(ROOT_DIR)/tmp/migrations/
132+
diesel migration run --migration-dir=$(ROOT_DIR)/tmp/migrations \
133+
$(if $(strip $(database-url)),--database-url="$(database-url)",) \
134+
$(if $(strip $(call eq,$(locked-schema),yes)),--locked-schema,)
135+
136+
rm -r $(ROOT_DIR)/tmp/migrations
137+
rmdir $(ROOT_DIR)/tmp 2>/dev/null || true
138+
139+
redo_migrate:
140+
mkdir -p $(ROOT_DIR)/tmp/migrations
141+
find $(ROOT_DIR)/tmp/migrations/ -mindepth 1 -delete
142+
143+
cp -r $(ROOT_DIR)/migrations/. $(ROOT_DIR)/v2_migrations/. $(ROOT_DIR)/tmp/migrations/
144+
diesel migration redo --all --migration-dir=$(ROOT_DIR)/tmp/migrations \
145+
$(if $(strip $(database-url)),--database-url="$(database-url)",) \
146+
$(if $(strip $(call eq,$(locked-schema),yes)),--locked-schema,)
147+
148+
rm -r $(ROOT_DIR)/tmp/migrations
149+
rmdir $(ROOT_DIR)/tmp 2>/dev/null || true

0 commit comments

Comments
 (0)