Skip to content

Commit

Permalink
Merge pull request #183 from Axinom/releases/iteration-82-merge
Browse files Browse the repository at this point in the history
[AB#41507] release: iteration 82
  • Loading branch information
vindulaR authored Oct 20, 2023
2 parents f05cca8 + aead94d commit cc59a94
Show file tree
Hide file tree
Showing 17 changed files with 172 additions and 99 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,17 @@ like:
You can find these keys and values usually in the `.env.template` file of the
workflow.

#### Unpublishing a workflow package

If you want to unpublish a previously published workflow package from the Mosaic
Micro Frontend Service, the following CLI command provided by the Mosaic CLI can
be used. The Service Account used to create the `api-key` must have
`Pilets: Delete` permission assigned.

```sh
yarn mosaic unpublish-pilet -t {tenantId} -e {environmentId} -a {api-key} -n {pilet-name} -m {micro-frontend-service-base-url}
```

## Deploying the services via Mosaic Hosting Service

If you're looking for a quick way to deploy a service in the Axinom Cloud, we
Expand Down
4 changes: 2 additions & 2 deletions libs/media-messages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"build:compile": "tsc"
},
"devDependencies": {
"@axinom/mosaic-cli": "0.22.1",
"@axinom/mosaic-message-bus-abstractions": "0.5.9",
"@axinom/mosaic-cli": "0.23.0",
"@axinom/mosaic-message-bus-abstractions": "0.5.10",
"@types/glob": "^7.2.0",
"concurrently": "^5.3.0",
"rimraf": "^3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"yarn:de-dupe": "npx yarn-deduplicate yarn.lock"
},
"devDependencies": {
"@axinom/mosaic-cli": "0.22.1",
"@axinom/mosaic-cli": "0.23.0",
"@dbeining/react-atom": "^4.1.21",
"@jest/globals": "^29.1.2",
"@libre/atom": "^1.3.3",
Expand Down
10 changes: 5 additions & 5 deletions services/catalog/service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
"util:define-func-migration": "yarn mosaic generate-define-func-migration"
},
"dependencies": {
"@axinom/mosaic-db-common": "0.26.0",
"@axinom/mosaic-message-bus": "0.16.0",
"@axinom/mosaic-message-bus-abstractions": "0.5.9",
"@axinom/mosaic-service-common": "0.38.0",
"@axinom/mosaic-graphql-common": "0.2.0",
"@axinom/mosaic-db-common": "0.27.0",
"@axinom/mosaic-message-bus": "0.17.0",
"@axinom/mosaic-message-bus-abstractions": "0.5.10",
"@axinom/mosaic-service-common": "0.39.0",
"@axinom/mosaic-graphql-common": "0.3.0",
"@graphile-contrib/pg-simplify-inflector": "^6.1.0",
"add": "^2.0.6",
"amqplib": "^0.6.0",
Expand Down
12 changes: 12 additions & 0 deletions services/catalog/service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ import {
import {
closeHttpServer,
handleGlobalErrors,
isServiceAvailable,
Logger,
MosaicErrors,
setupGlobalConsoleOverride,
setupGlobalLogMiddleware,
setupLivenessAndReadiness,
setupMonitoring,
setupServiceHealthEndpoint,
setupShutdownActions,
tenantEnvironmentIdsLogMiddleware,
} from '@axinom/mosaic-service-common';
Expand All @@ -41,6 +43,16 @@ async function bootstrap(): Promise<void> {

const { readiness } = setupLivenessAndReadiness(config);

// Check ID service is available
if (!(await isServiceAvailable(config.idServiceAuthBaseUrl))) {
throw new Error(
'The Mosaic Identity Service is required to run this service, but it was not available.',
);
}

// Register service health endpoint
setupServiceHealthEndpoint(app);

await applyMigrations(config);
const shutdownActions = setupShutdownActions(app, logger);
setupOwnerPgPool(
Expand Down
14 changes: 7 additions & 7 deletions services/entitlement/service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
"util:define-func-migration": "yarn mosaic generate-define-func-migration"
},
"dependencies": {
"@axinom/mosaic-db-common": "0.26.0",
"@axinom/mosaic-id-guard": "0.21.1",
"@axinom/mosaic-id-utils": "0.15.6",
"@axinom/mosaic-message-bus": "0.16.0",
"@axinom/mosaic-messages": "0.32.1",
"@axinom/mosaic-service-common": "0.38.0",
"@axinom/mosaic-graphql-common": "0.2.0",
"@axinom/mosaic-db-common": "0.27.0",
"@axinom/mosaic-id-guard": "0.22.0",
"@axinom/mosaic-id-utils": "0.15.7",
"@axinom/mosaic-message-bus": "0.17.0",
"@axinom/mosaic-messages": "0.33.0",
"@axinom/mosaic-service-common": "0.39.0",
"@axinom/mosaic-graphql-common": "0.3.0",
"ajv": "^7.2.4",
"ajv-formats": "^1.6.1",
"@graphile-contrib/pg-simplify-inflector": "^6.1.0",
Expand Down
12 changes: 12 additions & 0 deletions services/entitlement/service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ import {
import {
closeHttpServer,
handleGlobalErrors,
isServiceAvailable,
Logger,
MosaicErrors,
setupGlobalConsoleOverride,
setupGlobalLogMiddleware,
setupGlobalSkipMaskMiddleware,
setupLivenessAndReadiness,
setupMonitoring,
setupServiceHealthEndpoint,
setupShutdownActions,
tenantEnvironmentIdsLogMiddleware,
trimErrorsSkipMaskMiddleware,
Expand Down Expand Up @@ -56,6 +58,16 @@ async function bootstrap(): Promise<void> {

const { readiness } = setupLivenessAndReadiness(config);

// Check ID service is available
if (!(await isServiceAvailable(config.idServiceAuthBaseUrl))) {
throw new Error(
'The Mosaic Identity Service is required to run this service, but it was not available.',
);
}

// Register service health endpoint
setupServiceHealthEndpoint(app);

await applyMigrations(config);

const shutdownActions = setupShutdownActions(app, logger);
Expand Down
16 changes: 8 additions & 8 deletions services/media/service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@
"util:define-func-migration": "yarn mosaic generate-define-func-migration"
},
"dependencies": {
"@axinom/mosaic-db-common": "0.26.0",
"@axinom/mosaic-id-guard": "0.21.1",
"@axinom/mosaic-id-link-be": "0.13.7",
"@axinom/mosaic-message-bus": "0.16.0",
"@axinom/mosaic-message-bus-abstractions": "0.5.9",
"@axinom/mosaic-messages": "0.32.1",
"@axinom/mosaic-service-common": "0.38.0",
"@axinom/mosaic-graphql-common": "0.2.0",
"@axinom/mosaic-db-common": "0.27.0",
"@axinom/mosaic-id-guard": "0.22.0",
"@axinom/mosaic-id-link-be": "0.13.8",
"@axinom/mosaic-message-bus": "0.17.0",
"@axinom/mosaic-message-bus-abstractions": "0.5.10",
"@axinom/mosaic-messages": "0.33.0",
"@axinom/mosaic-service-common": "0.39.0",
"@axinom/mosaic-graphql-common": "0.3.0",
"@faker-js/faker": "^7.5.0",
"@graphile-contrib/pg-simplify-inflector": "^6.1.0",
"ajv": "^7.2.4",
Expand Down
12 changes: 12 additions & 0 deletions services/media/service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { CreateRabbitMQConnectivityMetric } from '@axinom/mosaic-message-bus';
import {
closeHttpServer,
handleGlobalErrors,
isServiceAvailable,
Logger,
MosaicErrors,
setupGlobalConsoleOverride,
Expand All @@ -21,6 +22,7 @@ import {
setupHttpServerWithWebsockets,
setupLivenessAndReadiness,
setupMonitoring,
setupServiceHealthEndpoint,
setupShutdownActions,
tenantEnvironmentIdsLogMiddleware,
trimErrorsSkipMaskMiddleware,
Expand Down Expand Up @@ -70,6 +72,16 @@ async function bootstrap(): Promise<void> {
// Set up liveness and readiness probe endpoints for Kubernetes.
const { readiness } = setupLivenessAndReadiness(config);

// Check ID service is available
if (!(await isServiceAvailable(config.idServiceAuthBaseUrl))) {
throw new Error(
'The Mosaic Identity Service is required to run this service, but it was not available.',
);
}

// Register service health endpoint
setupServiceHealthEndpoint(app);

// Enable multipart request support for GQL to support file upload.
app.use(graphqlUploadExpress());
// Run database migrations to the latest committed state.
Expand Down
6 changes: 3 additions & 3 deletions services/media/workflows/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
],
"dependencies": {
"@apollo/client": "^3.7.9",
"@axinom/mosaic-managed-workflow-integration": "0.4.0",
"@axinom/mosaic-ui": "0.36.1",
"@axinom/mosaic-managed-workflow-integration": "0.5.0",
"@axinom/mosaic-ui": "0.37.0",
"apollo-upload-client": "^14.1.3",
"clsx": "^1.2.1",
"env-cmd": "^10.1.0",
Expand All @@ -39,7 +39,7 @@
"yup": "^0.32.11"
},
"devDependencies": {
"@axinom/mosaic-portal": "0.20.0",
"@axinom/mosaic-portal": "0.21.0",
"@dbeining/react-atom": "^4.1.21",
"@graphql-codegen/cli": "^2.13.4",
"@graphql-codegen/typescript": "^2.7.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
.datalist {
display: grid;
grid-template-columns: 1fr 100px;

.rightAlignment
{
text-align: right;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ const Panel: React.FC<{ data?: MovieGenresQuery }> = ({ data }) => {
<Paragraph title="Statistic">
<div className={classes.datalist}>
<div>Items Total</div>
<div>{data?.movieGenres?.totalCount}</div>
<div className={classes.rightAlignment}>
{data?.movieGenres?.totalCount}
</div>
</div>
</Paragraph>
<Paragraph title="Publishing Status">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
.datalist {
display: grid;
grid-template-columns: 1fr 100px;

.rightAlignment
{
text-align: right;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ const Panel: React.FC<{ data?: TvShowGenresQuery }> = ({ data }) => {
<Paragraph title="Statistic">
<div className={classes.datalist}>
<div>Items Total</div>
<div>{data?.tvshowGenres?.totalCount}</div>
<div className={classes.rightAlignment}>
{data?.tvshowGenres?.totalCount}
</div>
</div>
</Paragraph>
<Paragraph title="Publishing Status">
Expand Down
8 changes: 4 additions & 4 deletions services/vod-to-live/service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"setup:webhook": "yarn util:load-vars ts-node --files scripts/setup-webhook.ts"
},
"dependencies": {
"@axinom/mosaic-id-guard": "0.21.1",
"@axinom/mosaic-message-bus": "0.16.0",
"@axinom/mosaic-messages": "0.32.1",
"@axinom/mosaic-service-common": "0.38.0",
"@axinom/mosaic-id-guard": "0.22.0",
"@axinom/mosaic-message-bus": "0.17.0",
"@axinom/mosaic-messages": "0.33.0",
"@axinom/mosaic-service-common": "0.39.0",
"@azure/storage-blob": "^12.12.0",
"amqplib": "^0.6.0",
"axios": "^0.24.0",
Expand Down
12 changes: 12 additions & 0 deletions services/vod-to-live/service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ import {
import {
closeHttpServer,
handleGlobalErrors,
isServiceAvailable,
Logger,
MosaicErrors,
setupGlobalConsoleOverride,
setupGlobalLogMiddleware,
setupGlobalSkipMaskMiddleware,
setupLivenessAndReadiness,
setupMonitoring,
setupServiceHealthEndpoint,
setupShutdownActions,
tenantEnvironmentIdsLogMiddleware,
trimErrorsSkipMaskMiddleware,
Expand Down Expand Up @@ -41,6 +43,16 @@ async function bootstrap(): Promise<void> {

const { readiness } = setupLivenessAndReadiness(config);

// Check ID service is available
if (!(await isServiceAvailable(config.idServiceAuthBaseUrl))) {
throw new Error(
'The Mosaic Identity Service is required to run this service, but it was not available.',
);
}

// Register service health endpoint
setupServiceHealthEndpoint(app);

const shutdownActions = setupShutdownActions(app, logger);

const storage = new AzureStorage(
Expand Down
Loading

0 comments on commit cc59a94

Please sign in to comment.