Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Jan 6, 2020
2 parents e097119 + 896d8da commit 590957d
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ APP_HOME=pc.zaakonline.nl

# The urls on wich this api is available
TRUSTED_PROXIES=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
TRUSTED_HOSTS=^(.+\.)?conduction\.nl$|^(.+\.)?vng\.cloud$|^(.+\.)?huwelijksplanner\.online$|^(.+\.)?larping\.eu$|^(.+\.)?common-ground\.dev$|^(.+\.)?trouwplanner\.online$|^(.+\.)?zaakonline\.nl$|localhost
TRUSTED_HOSTS=^(.+\.)?conduction\.nl$|^(.+\.)?huwelijksplanner\.online$|^(.+\.)?larping\.eu$|^(.+\.)?common-ground\.dev$|^(.+\.)?trouwplanner\.online$|^(.+\.)?zaakonline\.nl$|localhost

##################################################
# Orgization details
Expand Down Expand Up @@ -81,7 +81,7 @@ NOTIFICATION_ENABLED_AUTHORIZATION=sasd
##################################################

AUTH_ENABLED=false
AUTH_PROVIDER=sasd
AUTH_PROVIDER=sasdadad
AUTH_AUTHORIZATION=sasd

##################################################
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
if: contains( github.ref, 'master' ) || contains( github.base_ref, 'master' )
run: |
echo ::set-env name=APP_ENV::prod
echo ::set-env name=APP_BUILD::prod
echo "set APP_ENV to $APP_ENV"
- name: Set APP_BUILD to APP_VERSION
if: contains( github.ref, 'master' )
Expand Down
3 changes: 1 addition & 2 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ CMD ["php-fpm"]

# Let update the docs to show the latest chages
# RUN bin/console api:swagger:export --output=/srv/api/public/schema/openapi.yaml --yaml --spec-version=3

RUN bin/console app:publiccode:update --location=/srv/api/public/schema/ --spec-version=0.2
# RUN bin/console app:publiccode:update --location=/srv/api/public/schema/ --spec-version=0.2

#############################
# "nginx" stage #
Expand Down
6 changes: 3 additions & 3 deletions api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"webonyx/graphql-php": "^0.13.8"
},
"require-dev" : {
"api-platform/schema-generator" : "^2.1",
"symfony/maker-bundle" : "^1.11",
"symfony/profiler-pack" : "^1.0"
"api-platform/schema-generator": "^2.1",
"symfony/maker-bundle": "^1.11",
"symfony/profiler-pack": "^1.0"
},
"config" : {
"preferred-install" : {
Expand Down
2 changes: 1 addition & 1 deletion api/config/packages/twig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ twig:
app_env: '%env(APP_ENV)%'
app_debug: '%env(APP_DEBUG)%'
app_subdomain: '%env(APP_SUBDOMAIN)%'
app_domains: '%env(json:APP_DOMAINS)%'
app_domains: '%env(json:APP_DOMAINS)%'
app_demo: '%env(APP_DEMO)%'
app_repro: '%env(APP_REPRO)%'
app_description: '%env(APP_DESCRIPTION)%'
Expand Down
3 changes: 2 additions & 1 deletion api/helm/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ data:
app-version: {{ .Values.settings.version | quote }}
app-repro: {{ .Values.settings.repro | quote }}
app-demo: {{ .Values.settings.demo | quote }}
app-domain: {{ .Values.settings.domain | quote }}
app-domains: {{ .Values.settings.domains | quote }}
app-domains-json: {{ .Values.settings.domainsJson | quote }}
app-description: {{ .Values.settings.description | quote }}

app-auth: {{ .Values.settings.authorisationEnabled | quote }}
Expand Down
5 changes: 0 additions & 5 deletions api/helm/templates/php-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ spec:
configMapKeyRef:
name: {{ template "fullname" . }}
key: app-demo
- name: APP_DOMAIN
valueFrom:
configMapKeyRef:
name: {{ template "fullname" . }}
key: app-domain
# organization
- name: ORGANIZATION_NAME
valueFrom:
Expand Down
1 change: 1 addition & 0 deletions api/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ settings:
- zaakonline.nl
- huwelijksplanner.online
- common-ground.dev
domainsJson: ["conduction.nl","zaakonline.nl","huwelijksplanner.online","common-ground.dev"]
organisationName: Conduction
email: [email protected]
country: Netherlands
Expand Down
2 changes: 1 addition & 1 deletion api/public/schema/publiccode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ url: "https://github.com/ConductionNL/Proto-component-commonground"
landingURL: "pc.zaakonline.nl"
isBasedOn: "https://github.com/ConductionNL/Proto-component-commonground.git"
softwareVersion: "V.0.1"
releaseDate: "2019-28-12"
releaseDate: "2020-01-01"
logo: pc.zaakonline.nl
monochromeLogo: img/logo-mono.svg

Expand Down
15 changes: 12 additions & 3 deletions api/src/Entity/ExampleEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Serializer\Annotation\Groups;
use Symfony\Component\Validator\Constraints as Assert;
use Ramsey\Uuid\Uuid;

/**
* This is an example entity.
Expand Down Expand Up @@ -91,10 +92,18 @@ class ExampleEntity
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $camelCase;

public function getId(): ?int


public function getId(): Uuid
{
return $this->id;
}

public function setId(Uuid $id): self
{
return $this->id;
$this->id = $id;

return $this;
}

public function getName(): ?string
Expand Down
1 change: 1 addition & 0 deletions api/templates/helm/Values.yaml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ settings:
{% for domain in app_domains %}
- {{ domain }}
{% endfor %}
domainsJson: {{ app_domains | json_encode()|raw }}
organisationName: {{ organization_name }}
email: {{ organization_email }}
country: {{ organization_country }}
Expand Down

0 comments on commit 590957d

Please sign in to comment.