Skip to content

Commit

Permalink
Merge pull request #103 from slovensko-digital/releases/v3.7.2
Browse files Browse the repository at this point in the history
Release v3.7.2
  • Loading branch information
luciajanikova authored Mar 18, 2024
2 parents aa66792 + d06c5e3 commit ca9dd52
Show file tree
Hide file tree
Showing 6 changed files with 337 additions and 10 deletions.
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**Inštalačná príručka popisuje komponent verzie [3.7.1](https://github.com/slovensko-digital/slovensko-sk-api/releases/tag/v3.7.1), uistite sa, že čítate príručku [verzie komponentu](https://github.com/slovensko-digital/slovensko-sk-api/releases), ktorý používate.**
**Inštalačná príručka popisuje komponent verzie [3.7.2](https://github.com/slovensko-digital/slovensko-sk-api/releases/tag/v3.7.2), uistite sa, že čítate príručku [verzie komponentu](https://github.com/slovensko-digital/slovensko-sk-api/releases), ktorý používate.**

# slovensko.sk API - Inštalačná príručka

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/health_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def index
status = :ok
health = {
description: 'slovensko.sk API',
version: '3.7.1',
version: '3.7.2',
status: 'pass',
checks: {
'environment:variables' => environment_variables,
Expand Down
12 changes: 6 additions & 6 deletions app/services/edesk_message_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ def parse(edesk_message)

m.id = edesk_message.id_message
m.klass = edesk_message.clazz.value
m.message_id = edesk_message.message_id.value
m.correlation_id = edesk_message.correlation_id.value
m.message_id = edesk_message.message_id.value&.downcase
m.correlation_id = edesk_message.correlation_id.value&.downcase
m.subject = edesk_message.title.value
m.original_html = self.class.parse_original_html(edesk_message.body.value)
m.original_xml = edesk_message.sk_talk.value
Expand Down Expand Up @@ -83,9 +83,9 @@ def build_message_from_message_info(d, m)
when 'PospVersion'
m.posp_version = e.content.presence
when 'MessageID'
raise ParseError if e.content != m.message_id
raise ParseError if e.content&.downcase != m.message_id
when 'CorrelationID'
raise ParseError if e.content != m.correlation_id
raise ParseError if e.content&.downcase != m.correlation_id
when 'ReferenceID'
m.reference_id = e.content.presence
when 'BusinessID'
Expand Down Expand Up @@ -117,7 +117,7 @@ def build_message_from_message_container(d, m)
d.children.each do |e|
case e.name
when 'MessageId'
raise ParseError if e.content != m.message_id
raise ParseError if e.content&.downcase != m.message_id
when 'SenderId'
m.sender_uri = e.content
when 'RecipientId'
Expand Down Expand Up @@ -210,7 +210,7 @@ def build_delivery_notification_consignment_from_consignment(d, n)
d.children.each do |e|
case e.name
when 'MessageID'
c.message_id = e.content
c.message_id = e.content&.downcase
when 'MessageSubject'
c.message_subject = e.content
when 'MessageType'
Expand Down
2 changes: 1 addition & 1 deletion public/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.0

info:
title: slovensko.sk API
version: 3.7.1 (Komunitná verzia) 8.8.1 (Prémium verzia)
version: 3.7.2 (Komunitná verzia) 8.8.2 (Prémium verzia)

description: |
slovensko.sk API je proxy REST API komponent k službám www.slovensko.sk (Ústredný portál verejnej správy – ÚPVS), pomocou ktorých je možné:
Expand Down
Loading

0 comments on commit ca9dd52

Please sign in to comment.