Skip to content

Commit

Permalink
Merge pull request #45 from eea/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
avoinea committed Nov 24, 2023
2 parents 0d37f89 + e07f4d7 commit 9857a1d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 11 deletions.
12 changes: 9 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

### [6.0.4](https://github.com/eea/volto-metadata-block/compare/6.0.3...6.0.4) - 13 November 2023
### [6.0.5](https://github.com/eea/volto-metadata-block/compare/6.0.4...6.0.5) - 24 November 2023

#### :bug: Bug Fixes

#### :rocket: New Features
- fix(performance): use cloneDeepSchema for cloning the schema to avoid potential errors [David Ichim - [`8954fc0`](https://github.com/eea/volto-metadata-block/commit/8954fc0f461214ee1bceb7ce4b8c6c038d696e31)]

- feat: comma added from ArrayWidget in volto core [Miu Razvan - [`608bad8`](https://github.com/eea/volto-metadata-block/commit/608bad85186fdabeac2d8fd2e54b7f1bd5b37f69)]
#### :hammer_and_wrench: Others

- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`1b03bcf`](https://github.com/eea/volto-metadata-block/commit/1b03bcff0ca18ea13ef5efe4cacb41ffe8990d97)]
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`9376a3d`](https://github.com/eea/volto-metadata-block/commit/9376a3d9789f71cfdfc042cabfd5e1358f823ffa)]
### [6.0.4](https://github.com/eea/volto-metadata-block/compare/6.0.3...6.0.4) - 13 November 2023

#### :house: Internal changes

Expand Down
10 changes: 9 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
pipeline {
tools {
jdk 'Java17'
}
agent {
node { label 'docker-host' }
}
Expand Down Expand Up @@ -159,7 +162,8 @@ pipeline {
script {
try {
sh '''docker run --pull always --rm -d --name="$IMAGE_NAME-plone" -e SITE="Plone" -e PROFILES="$BACKEND_PROFILES" -e ADDONS="$BACKEND_ADDONS" eeacms/plone-backend'''
sh '''timeout -s 9 3600 docker run --shm-size=2g --cpu-quota=150000 --link $IMAGE_NAME-plone:plone --entrypoint=make --name="$IMAGE_NAME-cypress" --workdir=/app/src/addons/${GIT_NAME} -e "RAZZLE_INTERNAL_API_PATH=http://plone:8080/Plone" $IMAGE_NAME-frontend cypress-ci'''
sh '''docker run -d --shm-size=3g --link $IMAGE_NAME-plone:plone --name="$IMAGE_NAME-cypress" -e "RAZZLE_INTERNAL_API_PATH=http://plone:8080/Plone" --entrypoint=make --workdir=/app/src/addons/$GIT_NAME $IMAGE_NAME-frontend start-ci'''
sh '''timeout -s 9 1800 docker exec --workdir=/app/src/addons/${GIT_NAME} $IMAGE_NAME-cypress make cypress-ci'''
} finally {
try {
sh '''rm -rf cypress-videos cypress-results cypress-coverage cypress-screenshots'''
Expand Down Expand Up @@ -189,6 +193,10 @@ pipeline {
catchError(buildResult: 'SUCCESS', stageResult: 'SUCCESS') {
junit testResults: 'cypress-results/**/*.xml', allowEmptyResults: true
}
catchError(buildResult: 'SUCCESS', stageResult: 'SUCCESS') {
sh '''docker logs $IMAGE_NAME-cypress'''
}
sh script: "docker stop $IMAGE_NAME-cypress", returnStatus: true
sh script: "docker stop $IMAGE_NAME-plone", returnStatus: true
sh script: "docker rm -v $IMAGE_NAME-plone", returnStatus: true
sh script: "docker rm -v $IMAGE_NAME-cypress", returnStatus: true
Expand Down
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,12 @@ test-ci:

.PHONY: start-ci
start-ci:
cp .coverage.babel.config.js /app/babel.config.js
cd ../..
yarn start &
yarn start

.PHONY: cypress-ci
cypress-ci:
cp .coverage.babel.config.js /app/babel.config.js
make start-ci
$(NODE_MODULES)/.bin/wait-on -t 240000 http://localhost:3000
NODE_ENV=development make cypress-run


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-metadata-block",
"version": "6.0.4",
"version": "6.0.5",
"description": "Volto Metadata Block",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
4 changes: 2 additions & 2 deletions src/components/manage/Blocks/MetadataSection/variations.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { TableSchema } from './schema';
import { cloneDeep } from 'lodash';
import { cloneDeepSchema } from '@plone/volto/helpers/Utils/Utils';

export const addTableField = ({ schema, intl }) => {
const applied = schema.fieldsets[0].fields.includes('table');

if (!applied) {
const resSchema = cloneDeep(schema);
const resSchema = cloneDeepSchema(schema);

resSchema.fieldsets.push({
id: 'tableStyle',
Expand Down

0 comments on commit 9857a1d

Please sign in to comment.