error report service (#154)

This commit is contained in:
Nordine Bittich
2022-06-02 09:24:41 +02:00
committed by GitHub
parent 96c384bf91
commit 19d52a3a73
3 changed files with 20 additions and 2 deletions

View File

@@ -7,6 +7,11 @@ alias Acl.GroupSpec, as: GroupSpec
alias Acl.GroupSpec.GraphCleanup, as: GraphCleanup
defmodule Acl.UserGroups.Config do
@error_type [
"https://docs.oasis-open-projects.org/oslc-op/core/v3.0/os/core-vocab.html#Error"
]
@protected_resource_type [
"http://www.w3.org/ns/org#Organization",
"http://data.vlaanderen.be/ns/besluit#Besluit",
@@ -99,7 +104,7 @@ defmodule Acl.UserGroups.Config do
%GraphSpec{
graph: "http://mu.semte.ch/graphs/organisatieportaal",
constraint: %ResourceConstraint{
resource_types: @protected_resource_type
resource_types: @protected_resource_type ++ @error_type
}
}
]
@@ -112,7 +117,7 @@ defmodule Acl.UserGroups.Config do
%GraphSpec{
graph: "http://mu.semte.ch/graphs/organisatieportaal",
constraint: %ResourceConstraint{
resource_types: @protected_resource_type
resource_types: @protected_resource_type ++ @error_type
}
}
]

View File

@@ -267,6 +267,14 @@ defmodule Dispatcher do
end
#################################################################
# ERROR REPORT
#################################################################
match "/error-reports/*path", %{ layer: :api_services, accept: %{ json: true } } do
forward conn, path, "http://error-report-service/error-reports/"
end
#################################################################
# FILES
#################################################################

View File

@@ -414,3 +414,8 @@ services:
environment:
- discovery.type=single-node
restart: always
error-report-service:
image: lblod/error-report-service:0.1.0
links:
- db:database