-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into issues/merge-ups…
…tream
- Loading branch information
Showing
56 changed files
with
3,149 additions
and
582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Migration from 1.7.x to 1.8.x | ||
|
||
This guide contains instructions for migration from PowerAuth Enrollment Server version `1.7.x` to version `1.8.0`. | ||
|
||
|
||
## Database Changes | ||
|
||
For convenience, you can use liquibase for your database migration. | ||
|
||
For manual changes use SQL scripts: | ||
|
||
- [PostgreSQL script](./sql/postgresql/enrollment/migration_1.7.0_1.8.0.sql) | ||
- [Oracle script](./sql/oracle/enrollment/migration_1.7.0_1.8.0.sql) | ||
|
||
|
||
### Add Column result_texts | ||
|
||
A column `result_texts` has been added to the table `es_operation_template`. | ||
It is an optional JSON representing customized texts to display for `success`, `failure`, or `reject` operations. |
18 changes: 18 additions & 0 deletions
18
docs/db/changelog/changesets/enrollment-server/1.8.x/20240620-add-resultTexts.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.9.xsd"> | ||
|
||
<changeSet id="1" logicalFilePath="enrollment-server/1.8.x/20240620-add-resultTexts.xml" author="Lubos Racansky"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<columnExists tableName="es_operation_template" columnName="result_texts"/> | ||
</not> | ||
</preConditions> | ||
<comment>Add result_texts column</comment> | ||
<addColumn tableName="es_operation_template"> | ||
<column name="result_texts" type="text" /> | ||
</addColumn> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |
8 changes: 8 additions & 0 deletions
8
docs/db/changelog/changesets/enrollment-server/1.8.x/db.changelog-version.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.9.xsd"> | ||
|
||
<include file="20240620-add-resultTexts.xml" relativeToChangelogFile="true" /> | ||
|
||
</databaseChangeLog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
docs/onboarding/PowerAuth-Enrollment-Onboarding-Server-1.7.0.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Migration from 1.6.x to 1.7.x | ||
|
||
This guide contains instructions for migration from PowerAuth Enrollment Onboarding Server version `1.6.x` to version `1.7.0`. | ||
|
||
No migration steps nor database changes are required. |
5 changes: 5 additions & 0 deletions
5
docs/onboarding/PowerAuth-Enrollment-Onboarding-Server-1.8.0.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Migration from 1.7.x to 1.8.x | ||
|
||
This guide contains instructions for migration from PowerAuth Enrollment Onboarding Server version `1.7.x` to version `1.8.0`. | ||
|
||
No migration steps nor database changes are required. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- Changeset enrollment-server/1.8.x/20240620-add-resultTexts.xml::1::Lubos Racansky | ||
-- Add result_texts column | ||
ALTER TABLE es_operation_template ADD result_texts CLOB; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- Changeset enrollment-server/1.8.x/20240620-add-resultTexts.xml::1::Lubos Racansky | ||
-- Add result_texts column | ||
ALTER TABLE es_operation_template ADD result_texts TEXT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
enrollment-server-api-model/src/main/resources/application-test.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
spring.datasource.url=jdbc:h2:mem:testdb | ||
spring.jpa.hibernate.ddl-auto=create |
26 changes: 26 additions & 0 deletions
26
...in/resources/com/wultra/app/enrollmentserver/controller/api/admin/AdminControllerTest.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
insert into public.es_operation_template (id, placeholder, language, title, message, attributes, ui, result_texts) | ||
values | ||
(1, 'authorize_payment', 'en', 'Payment Approval', 'Please confirm the payment', '[ | ||
{ | ||
"id": "operation.amount", | ||
"type": "AMOUNT", | ||
"text": "Amount", | ||
"params": { | ||
"amount": "amount", | ||
"currency": "currency" | ||
} | ||
}, | ||
{ | ||
"id": "operation.account", | ||
"type": "KEY_VALUE", | ||
"text": "To Account", | ||
"params": { | ||
"value": "iban" | ||
} | ||
} | ||
]', null, | ||
'{ | ||
"success": "Payment of ${amount} ${currency} was confirmed", | ||
"reject": "Payment was rejected", | ||
"failure": "Payment approval failed" | ||
}'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.