Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
Merge pull request #289 from ImisDevelopers/feature/pilot-update
Browse files Browse the repository at this point in the history
Feature/pilot update
  • Loading branch information
wobkenh authored May 11, 2020
2 parents 2dffc29 + 97f756f commit 0822a9c
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 44 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Achtung: Bitte Milestone Simulation mit oberster Priorität abarbeiten!!
# Für Simulations-Features (sofern nicht generell gültig) Branch 'Pilot' nutzen.
[![IMIS Cover](client/public/web-imis.png)](http://www.youtube.com/watch?v=XIIlMh3Lbsc "Pitch")

* [Demo](http://imis-prototyp.de)
* [Swagger API](http://imis-prototyp.de/swagger-ui.html)
* [Demo](https://imis-prototyp.de)
* [Swagger API](https://imis-prototyp.de/swagger-ui.html)
* [Video pitch](https://www.youtube.com/watch?v=XIIlMh3Lbsc)

Dieses Projekt entstand im Rahmen des [#WirvsVirus](https://wirvsvirushackathon.org/)-Hackathon.
Expand All @@ -11,7 +13,9 @@ Dieses Projekt entstand im Rahmen des [#WirvsVirus](https://wirvsvirushackathon.
* Mit freundlicher Unterstützung von [https://covidmeldeprozess.de/](https://covidmeldeprozess.de/)

# Development
![Build](https://github.com/imis-Infektionsfall-uebermittellung/1_011_a_infektionsfall_uebermittellung/workflows/Build%20and%20Test/badge.svg?branch=dev) and ![Deployment](https://github.com/imis-Infektionsfall-uebermittellung/1_011_a_infektionsfall_uebermittellung/workflows/Build%20and%20Deploy%20to%20GKE/badge.svg?branch=dev)
### [Prod](https://imis-prototyp.de) ![Test](https://github.com/ImisDevelopers/1_011_a_infektionsfall_uebermittellung/workflows/Build%20and%20Test/badge.svg?branch=master&event=push) ![Deploy](https://github.com/ImisDevelopers/1_011_a_infektionsfall_uebermittellung/workflows/Deploy/badge.svg) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/imisDevelopers/1_011_a_infektionsfall_uebermittellung?color=green)
### [Dev](https://staing.imis-prototyp.de) ![Test](https://github.com/ImisDevelopers/1_011_a_infektionsfall_uebermittellung/workflows/Build%20and%20Test/badge.svg?branch=dev&event=push) ![Deploy](https://github.com/ImisDevelopers/1_011_a_infektionsfall_uebermittellung/workflows/Deploy/badge.svg?branch=dev&event=push)
### [Pilot](https://pilot.imis-prototyp.de) ![Test](https://github.com/ImisDevelopers/1_011_a_infektionsfall_uebermittellung/workflows/Build%20and%20Test/badge.svg?branch=pilot&event=push) ![Deploy](https://github.com/ImisDevelopers/1_011_a_infektionsfall_uebermittellung/workflows/Deploy/badge.svg?branch=pilot&event=push)

## General Guidelines
_DO NOT COMMIT TO MASTER_
Expand Down Expand Up @@ -86,7 +90,7 @@ But you have to run Postgres in docker or install it and run it locally manually
## API communication

An API developed by the backend is served via swagger on the server: http://localhost/swagger-ui.html
We are using the swagger docs to auto-generate the typescript api client.
We are using the swagger docs to autogenerate the typescript api client.
```yarn generate:api-client```
Make sure the server is running locally, the command updates the ts api client

Expand All @@ -95,8 +99,6 @@ When you make changes to the backend, make sure to generate a new client.
## CI system
All commits to `dev`, `master`, `feature/*` and all PRs will be CI checked.

New commit to `dev` will result in new release to:
* [staging.imis-prototyp.de](https://staging.imis-prototyp.de)
* [Swagger API](https://staging.imis-prototyp.de/swagger-ui.html)
New commit to `dev` will result in new release to `staging.imis-prototyp.de`.

A new release to `imis-prototyp.de` is not triggered by commit on `master` but by a [new release tag](https://github.com/ImisDevelopers/1_011_a_infektionsfall_uebermittellung/releases/new).
A new release to `imis-prototyp.de` is not triggerd by commit on `master` but by a new release tag.
51 changes: 29 additions & 22 deletions client/src/components/LocationFormGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,16 @@
<a-input
ref="street"
class="custom-input"
style="width: calc(100% - 40pt);"
placeholder="Straße"
style="width: calc(100%);"
placeholder="Straße und Hausnummer"
v-decorator="[keys.street, {
rules: [{
required: $props.required!==false,
message: 'Bitte Straße eingeben',
message: 'Bitte Straße und Hausnummer eingeben',
}],
initialValue: initialData('street'),
}]"
/>
<a-input
class="custom-input"
style="width: 40pt;"
placeholder="HNr."
v-decorator="[keys.houseNumber, {
rules: [{
message: 'Bitte Hausnummer eingeben',
}],
initialValue: initialData('houseNumber'),
}]"
/>
</a-input-group>
</a-form-item>
</a-col>
Expand Down Expand Up @@ -74,15 +63,33 @@
<a-row>
<a-col :lg="12" :sm="24">
<a-form-item label="Land">
<a-input
<a-select
ref="country"
class="custom-input"
v-decorator="[keys.country, {
rules: [
{ required: $props.required!==false, message: 'Bitte Land eingeben' }
],
initialValue: initialCountry(),
}]" />
placeholder="Bitte wählen..."
v-decorator="[keys.country, { rules: [{
required: $props.required!==false,
message: 'Bitte Land auswählen',
}], initialValue: initialCountry()}]"
>
<a-select-option value="BE">Belgien</a-select-option>
<a-select-option value="DK">Dänemark</a-select-option>
<a-select-option value="DE">Deutschland</a-select-option>
<a-select-option value="FR">Frankreich</a-select-option>
<a-select-option value="GR">Griechenland</a-select-option>
<a-select-option value="UK">Großbritannien</a-select-option>
<a-select-option value="IT">Italien</a-select-option>
<a-select-option value="LU">Luxemburg</a-select-option>
<a-select-option value="NL">Niederlande</a-select-option>
<a-select-option value="AT">Österreich</a-select-option>
<a-select-option value="PL">Polen</a-select-option>
<a-select-option value="PT">Portugal</a-select-option>
<a-select-option value="RU">Russland</a-select-option>
<a-select-option value="CH">Schweiz</a-select-option>
<a-select-option value="ES">Spanien</a-select-option>
<a-select-option value="CZ">Tschechien</a-select-option>
<a-select-option value="TR">Türkei</a-select-option>
</a-select>
</a-form-item>
</a-col>
</a-row>
Expand Down Expand Up @@ -171,7 +178,7 @@ export default Vue.extend({
},
async handleZipSearch(value: string) {
this.currentZipSearch = value
if (!value || value.length < 2) {
if (!value || value.length < 4) {
this.zips = []
} else {
const result: Plz[] = await getPlzs(value)
Expand Down
8 changes: 4 additions & 4 deletions client/src/models/risk-occupation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ export interface RiskOccupationOption {
}

export const RISK_OCCUPATIONS: RiskOccupationOption[] = [
{ value: 'PUBLIC_ADMINISTRATION', label: 'Öffentliche Verwaltung' },
{ value: 'STUDENT', label: 'Schüler' },
{ value: 'TEACHER', label: 'Lehrer' },
{ value: 'FIRE_FIGHTER_POLICE', label: 'Gefahrenabwehr (Polizei, Feuerwehr usw.)' },
{ value: 'DOCTOR', label: 'Arzt/Ärztin' },
{ value: 'NURSE', label: 'Pflegepersonal' },
{ value: 'CAREGIVER', label: 'Altenpflege' },
{ value: 'FIRE_FIGHTER_POLICE', label: 'Gefahrenabwehr (Polizei, Feuerwehr usw.)' },
{ value: 'PUBLIC_ADMINISTRATION', label: 'Öffentliche Verwaltung' },
{ value: 'STUDENT', label: 'Schüler-in' },
{ value: 'TEACHER', label: 'Lehrer-in/Kindergärtner-in' },
{ value: 'NO_RISK_OCCUPATION', label: 'Keiner der genannten (bitte unten eingeben)' },
]
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ public class WebMvcConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("https://imis-prototyp.de", "https://staging.imis-prototyp.de",
"http://imis-prototyp.de", "http://localhost:8080")
.allowedOrigins("https://imis-prototyp.de",
"https://staging.imis-prototyp.de",
"https://pilot.imis-prototyp.de",
"http://imis-prototyp.de",
"http://localhost:8080")
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowCredentials(true);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"institutionType": "DEPARTMENT_OF_HEALTH",
"name": "Krankenhaus",
"street": "Rhein-Straße",
"houseNumber": "13a",
"zip": "3454325",
"city": "Köln",
"email": "clinic@example.de",
"name": "Gesundheitsamt",
"street": "Hauptstrasse",
"houseNumber": "10-12",
"zip": "66117",
"city": "Saarbrücken",
"email": "healthagency@example.de",
"phoneNumber": "43345",
"comment": "this is a comment for the clinic",
"comment": "this is a comment for the health agency",
"id": "asdfa"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Labor123",
"street": "Hauptstraße",
"houseNumber": "12",
"zip": "2453543",
"zip": "10115",
"city": "Berlin",
"email": "email@example.de",
"phoneNumber": "123456",
Expand Down

0 comments on commit 0822a9c

Please sign in to comment.