Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Work in Progress

This article explains the needed steps to migrate from 4.x and 5.x to 6.x

Logging

!?Is the logback.xml needed before first start?!

No the custom logging configuration is optional. see https://portrait.atlassian.net/wiki/spaces/PA/pages/93028539/General+settings#Custom-Logging-Configuration-(Since-6.X)

Theming

The theming was adopted, and new properties were introduced.

Old

application:
  theme:
    logoUrl: /icons/logo-full.svg
    heroUrl: /icons/logo-hero.svg
    highlightColor: "#0097A9"
    globalBackgroundColor: "#F8F8F8"
    globalFontColor: "#333F48"
    menuBackgroundColor: "#FFFFFF"
    menuFontColor: "#333F48"

New

application:
  theme:
    logoUrl: /icons/logo-full.svg
    heroUrl: /icons/logo-hero.svg
    highlightColor: "#0097A9"
    backgroundColor: "#F8F8F8"
    textColor: "#333F48"
    alternateBackgroundColor: "#FFFFFF"
    labelColor: "#333F48"
    dividerColor: "#EAEAEA"

Since the attributes have changed, we recommend reset the theming settings and start from scratch.

See more details here: Theming

API Sections

Since 6.x each section requires its own source. Therefore, all sections that previously didn't had any source configured, usually these were the API sources, needs to be configured.

Example:

sections:
  section:
    - name: apa-ots
          caption: APA OTS
          type: list
          sortField: date
          sortOrder: desc
          description: |
            APA-OTS ist Österreichs stärkster Verbreiter von multimedialen Presseinformationen in Text, Bild, Video und Audio im In- und Ausland.
            APA-Comm bietet hocheffiziente Lösungen für die PR- und Kommunikationsbranche: Produktion (Foto, Video, Grafik), Verbreitung von Presseinformationen, Mediendatenbank, Medienbeobachtung, Social Media Monitoring und Erfolgsmessung.
          columns:
            - label: 'Titel'
              key: 'name'
              type: 'string'
              showInTableHeader: true
              showInDetailList: false
          ....
  sources:
    source:
      - id: apa-ots
      sourceType: 'api'
      excludeKeysFromSuggestions: [ ]

ENV Variable

The application property ENV was added.

This should be set to ‘dev' for development and demo instances and ‘prod’ for customer instances

seehttps://portrait.atlassian.net/wiki/spaces/PA/pages/93028539/General+settings#Settings

Example:

application:
  name: Portrait App
  owner: Treskon GmbH
  env: dev

Update of nginx.config

The path for Swagger-UI changed:

  1. Add a new location

location /v3/api-docs {
    proxy_pass http://backend:8080;
    proxy_pass_request_headers on;
    proxy_pass_request_body on;
    proxy_buffering off;
    proxy_set_header X-real-IP $remote_addr;
}
  1. Change the swagger location

from

location /swagger {
  proxy_pass http://swagger:8080/swagger;

to

rewrite ^/swagger/?$ /swagger/index.html permanent;
location /swagger/ {
  proxy_pass http://backend:8080/swagger-ui/;

Make sure to add the trailing slash

Update of docker-compose

Swagger-UI is not directly served from the backend. Therefore, the service can be removed entirely.

Remove these lines:

swagger:
    image: swaggerapi/swagger-ui
    ports:
      - "30010:8080"
    environment:
      SWAGGER_JSON: /swagger.json
      BASE_URL: /swagger
    volumes:
      - ./app/config/swagger/swagger.json:/swagger.json

Update of deployment.sh

!? This seems to be a dev environment specific script !?

At the bottom of the script add --remove-orphans to the first 'docker-compose down' command:

docker-compose down --remove-orphans && docker system prune -a -f && docker-compose pull && docker-compose up -d --remove-orphans

Email Templates

Add a new file requestPasswordResetAdmin.html in the config/email-templates Folder. Forgot.html can be used as a base template, afterwards update the text in the email template.

  • No labels