Skip to content

Commit ca87766

Browse files
authored
Merge pull request #236 from ds-wizard/release/4.10.0
Release 4.10.0
2 parents 0215ba1 + 886a808 commit ca87766

File tree

155 files changed

+1908
-1040
lines changed

Some content is hidden

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

155 files changed

+1908
-1040
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@
1414

1515
## Contribute
1616

17-
For contributing guidelines, please read [CONTRIBUTING](CONTRIBUTING.md)
18-
and [relevant section in our guide](https://img.shields.io/github/license/ds-wizard/document-worker).
17+
For contributing guidelines, please read [CONTRIBUTING](CONTRIBUTING.md) and [relevant section in our guide](https://guide.ds-wizard.org/en/latest/more/development/contributing.html).
1918

2019
### Requirements
2120

22-
- **Stack** (recommended 2.9.1 or higher)
23-
- **Postgres & libpq** (recommended 11)
21+
- **Stack** (recommended 2.15.3 or higher)
22+
- **Postgres & libpq** (recommended 15.5)
2423
- **Fourmolu** (recommended 0.8.2.0, optional)
2524
- **HLint** (recommended 3.4.1, optional)
2625
- **Docker** (recommended 19.03.0-ce) - *for build of production image*
@@ -29,7 +28,9 @@ and [relevant section in our guide](https://img.shields.io/github/license/ds-wiz
2928

3029
### Build & Run
3130

32-
For running application it's need to run MongoDB database and set up connection in configuration file.
31+
For running application it's need to run Postgres database and set up connection in configuration file.
32+
33+
To set up feedback with GitHub, generate an API Key on GitHub and assign it to the environment variable named `FEEDBACK_TOKEN`.
3334

3435
Run these comands from the root of the project
3536

registry-public/package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: registry-public
2-
version: '4.9.1'
2+
version: '4.10.0'
33
synopsis: Registry Public
44
description: Registry Public
55
category: Web

registry-server/config/application-test.yml.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ general:
55

66
database:
77
connectionString: postgresql://postgres:postgres@localhost:5432/postgres
8+
useDevMigration: true
89

910
s3:
1011
url: http://localhost:9000

registry-server/package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: registry-server
2-
version: '4.9.1'
2+
version: '4.10.0'
33
synopsis: Engine Registry
44
description: Engine Registry
55
category: Web

registry-server/src/Registry/Api/Handler/Swagger/Api.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ swagger =
3838
s._swaggerInfo
3939
{ _infoTitle = "Registry API"
4040
, _infoDescription = Just "API specification for Registry"
41-
, _infoVersion = "4.9.1"
41+
, _infoVersion = "4.10.0"
4242
, _infoLicense =
4343
Just $
4444
License

registry-server/src/Registry/Api/Middleware/LoggingMiddleware.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ import qualified Data.Text as T
44
import Network.Wai (Middleware)
55

66
import Shared.Common.Api.Middleware.LoggingMiddleware
7-
import Shared.Common.Model.Config.Environment
87
import Shared.Common.Util.Token
98

10-
loggingMiddleware :: Environment -> Middleware
9+
loggingMiddleware :: String -> Middleware
1110
loggingMiddleware = createLoggingMiddleware extractIdentity
1211

1312
extractIdentity :: T.Text -> Maybe String

registry-server/src/Registry/Database/Migration/Development/Audit/AuditSchemaMigration.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ createTables = do
2323
\( \
2424
\ type varchar NOT NULL, \
2525
\ organization_id varchar NOT NULL, \
26-
\ instance_statistics json NOT NULL, \
26+
\ instance_statistics jsonb NOT NULL, \
2727
\ package_id varchar NOT NULL, \
2828
\ created_at timestamptz NOT NULL \
2929
\);"

registry-server/src/Registry/Database/Migration/Development/DocumentTemplate/DocumentTemplateSchemaMigration.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ createTemplateTable = do
5656
\ description varchar NOT NULL, \
5757
\ readme varchar NOT NULL, \
5858
\ license varchar NOT NULL, \
59-
\ allowed_packages json NOT NULL, \
60-
\ formats json NOT NULL, \
59+
\ allowed_packages jsonb NOT NULL, \
60+
\ formats jsonb NOT NULL, \
6161
\ created_at timestamptz NOT NULL, \
6262
\ tenant_uuid uuid NOT NULL, \
6363
\ updated_at timestamptz NOT NULL, \

registry-server/src/Registry/Database/Migration/Development/Package/PackageSchemaMigration.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ createTables = do
3333
\ previous_package_id varchar, \
3434
\ fork_of_package_id varchar, \
3535
\ merge_checkpoint_package_id varchar, \
36-
\ events json NOT NULL, \
36+
\ events jsonb NOT NULL, \
3737
\ created_at timestamptz NOT NULL, \
3838
\ tenant_uuid uuid NOT NULL, \
3939
\ phase varchar NOT NULL, \

registry-server/src/Registry/Database/Migration/Production/Migration.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import qualified Registry.Database.Migration.Production.Migration_0009_persisten
1414
import qualified Registry.Database.Migration.Production.Migration_0010_pkgAndDocReadOnly.Migration as M_0010
1515
import qualified Registry.Database.Migration.Production.Migration_0011_traceUuid.Migration as M_0011
1616
import qualified Registry.Database.Migration.Production.Migration_0012_tenant.Migration as M_0012
17+
import qualified Registry.Database.Migration.Production.Migration_0013_jsonb.Migration as M_0013
1718

1819
migrationDefinitions :: [MigrationDefinition]
1920
migrationDefinitions =
@@ -29,4 +30,5 @@ migrationDefinitions =
2930
, M_0010.definition
3031
, M_0011.definition
3132
, M_0012.definition
33+
, M_0013.definition
3234
]

0 commit comments

Comments
 (0)