Skip to content

Commit

Permalink
Merge pull request #7344 from ever-co/stage
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
evereq authored Dec 21, 2023
2 parents d93164a + 54c1f41 commit efc1b0c
Show file tree
Hide file tree
Showing 49 changed files with 811 additions and 497 deletions.
348 changes: 175 additions & 173 deletions .cspell.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .deploy/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ ARG COMPANY_NAME
ARG OTEL_ENABLED
ARG OTEL_EXPORTER_OTLP_HEADERS
ARG OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
ARG REDIS_ENABLED
ARG REDIS_URL

FROM node:18-alpine3.17 AS dependencies

Expand Down Expand Up @@ -370,6 +372,8 @@ ENV COMPANY_NAME=${COMPANY_NAME}
ENV OTEL_ENABLED=${OTEL_ENABLED}
ENV OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=${OTEL_EXPORTER_OTLP_TRACES_ENDPOINT}
ENV OTEL_EXPORTER_OTLP_HEADERS=${OTEL_EXPORTER_OTLP_HEADERS}
ENV REDIS_ENABLED=${REDIS_ENABLED}
ENV REDIS_URL=${REDIS_URL}

EXPOSE ${API_PORT}

Expand Down
4 changes: 4 additions & 0 deletions .deploy/k8s/k8s-manifest.civo.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ spec:
value: '$DB_NAME'
- name: DB_PORT
value: '$DB_PORT'
- name: REDIS_ENABLED
value: '$REDIS_ENABLED'
- name: REDIS_URL
value: '$REDIS_URL'
- name: AWS_ACCESS_KEY_ID
value: '$AWS_ACCESS_KEY_ID'
- name: AWS_SECRET_ACCESS_KEY
Expand Down
4 changes: 4 additions & 0 deletions .deploy/k8s/k8s-manifest.civo.stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ spec:
value: '$DB_NAME'
- name: DB_PORT
value: '$DB_PORT'
- name: REDIS_ENABLED
value: '$REDIS_ENABLED'
- name: REDIS_URL
value: '$REDIS_URL'
- name: AWS_ACCESS_KEY_ID
value: '$AWS_ACCESS_KEY_ID'
- name: AWS_SECRET_ACCESS_KEY
Expand Down
4 changes: 4 additions & 0 deletions .deploy/k8s/k8s-manifest.cw.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ spec:
value: '$DB_NAME'
- name: DB_PORT
value: '$DB_PORT'
- name: REDIS_ENABLED
value: '$REDIS_ENABLED'
- name: REDIS_URL
value: '$REDIS_URL'
- name: AWS_ACCESS_KEY_ID
value: '$AWS_ACCESS_KEY_ID'
- name: AWS_SECRET_ACCESS_KEY
Expand Down
4 changes: 4 additions & 0 deletions .deploy/k8s/k8s-manifest.cw.stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ spec:
value: '$DB_NAME'
- name: DB_PORT
value: '$DB_PORT'
- name: REDIS_ENABLED
value: '$REDIS_ENABLED'
- name: REDIS_URL
value: '$REDIS_URL'
- name: AWS_ACCESS_KEY_ID
value: '$AWS_ACCESS_KEY_ID'
- name: AWS_SECRET_ACCESS_KEY
Expand Down
10 changes: 7 additions & 3 deletions .deploy/k8s/k8s-manifest.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ spec:
image: registry.digitalocean.com/ever/gauzy-api:latest
resources:
requests:
memory: "1536Mi"
cpu: "1000m"
memory: '1536Mi'
cpu: '1000m'
limits:
memory: "2048Mi"
memory: '2048Mi'
env:
- name: API_HOST
value: 0.0.0.0
Expand Down Expand Up @@ -107,6 +107,10 @@ spec:
value: '$DB_NAME'
- name: DB_PORT
value: '$DB_PORT'
- name: REDIS_ENABLED
value: '$REDIS_ENABLED'
- name: REDIS_URL
value: '$REDIS_URL'
- name: AWS_ACCESS_KEY_ID
value: '$AWS_ACCESS_KEY_ID'
- name: AWS_SECRET_ACCESS_KEY
Expand Down
4 changes: 4 additions & 0 deletions .deploy/k8s/k8s-manifest.stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ spec:
value: '$DB_NAME'
- name: DB_PORT
value: '$DB_PORT'
- name: REDIS_ENABLED
value: '$REDIS_ENABLED'
- name: REDIS_URL
value: '$REDIS_URL'
- name: AWS_ACCESS_KEY_ID
value: '$AWS_ACCESS_KEY_ID'
- name: AWS_SECRET_ACCESS_KEY
Expand Down
4 changes: 4 additions & 0 deletions .env.compose
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ DB_POOL_SIZE=40
DB_CONNECTION_TIMEOUT=1000
DB_SLOW_QUERY_LOGGING_TIMEOUT=3000

REDIS_ENABLED=true
# redis[s]://[[username][:password]@][host][:port][/db-number]
REDIS_URL=redis://localhost:6379

EXPRESS_SESSION_SECRET=gauzy

# JWT Refresh Token Configuration
Expand Down
5 changes: 5 additions & 0 deletions .env.demo.compose
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ DB_POOL_SIZE=40
DB_CONNECTION_TIMEOUT=1000
DB_SLOW_QUERY_LOGGING_TIMEOUT=3000

# we don't run Redis in basic Demo setup
REDIS_ENABLED=false
# redis[s]://[[username][:password]@][host][:port][/db-number]
REDIS_URL=redis://localhost:6379

EXPRESS_SESSION_SECRET=gauzy

# JWT Refresh Token Configuration
Expand Down
4 changes: 4 additions & 0 deletions .env.docker
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ DB_POOL_SIZE=40
DB_CONNECTION_TIMEOUT=1000
DB_SLOW_QUERY_LOGGING_TIMEOUT=3000

REDIS_ENABLED=false
# redis[s]://[[username][:password]@][host][:port][/db-number]
REDIS_URL=redis://localhost:6379

EXPRESS_SESSION_SECRET=gauzy

# JWT Configuration
Expand Down
4 changes: 4 additions & 0 deletions .env.local
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ DB_POOL_SIZE=40
DB_CONNECTION_TIMEOUT=1000
DB_SLOW_QUERY_LOGGING_TIMEOUT=3000

REDIS_ENABLED=false
# redis[s]://[[username][:password]@][host][:port][/db-number]
REDIS_URL=redis://localhost:6379

EXPRESS_SESSION_SECRET=gauzy

# JWT Configuration
Expand Down
4 changes: 4 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ DB_TYPE=better-sqlite3
# DB_CONNECTION_TIMEOUT=1000
# DB_SLOW_QUERY_LOGGING_TIMEOUT=3000

REDIS_ENABLED=false
# redis[s]://[[username][:password]@][host][:port][/db-number]
REDIS_URL=redis://localhost:6379

EXPRESS_SESSION_SECRET=gauzy

# JWT Configuration
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-civo-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
DB_PORT: '${{ secrets.DB_PORT }}'
DB_CA_CERT: '${{ secrets.DB_CA_CERT }}'
DB_SSL_MODE: '${{ secrets.DB_SSL_MODE }}'
REDIS_ENABLED: '${{ secrets.REDIS_ENABLED }}'
REDIS_URL: '${{ secrets.REDIS_URL }}'
CLOUD_PROVIDER: 'CIVO'
SENTRY_DSN: '${{ secrets.SENTRY_DSN }}'
SENTRY_TRACES_SAMPLE_RATE: '${{ secrets.SENTRY_TRACES_SAMPLE_RATE }}'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-civo-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:
DB_PORT: '${{ secrets.DB_PORT }}'
DB_CA_CERT: '${{ secrets.DB_CA_CERT }}'
DB_SSL_MODE: '${{ secrets.DB_SSL_MODE }}'
REDIS_ENABLED: '${{ secrets.REDIS_ENABLED }}'
REDIS_URL: '${{ secrets.REDIS_URL }}'
CLOUD_PROVIDER: 'CIVO'
SENTRY_DSN: '${{ secrets.SENTRY_DSN }}'
SENTRY_TRACES_SAMPLE_RATE: '${{ secrets.SENTRY_TRACES_SAMPLE_RATE }}'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-cw-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
DB_PORT: '${{ secrets.DB_PORT }}'
DB_CA_CERT: '${{ secrets.DB_CA_CERT }}'
DB_SSL_MODE: '${{ secrets.DB_SSL_MODE }}'
REDIS_ENABLED: '${{ secrets.REDIS_ENABLED }}'
REDIS_URL: '${{ secrets.REDIS_URL }}'
CLOUD_PROVIDER: 'CW'
SENTRY_DSN: '${{ secrets.SENTRY_DSN }}'
SENTRY_TRACES_SAMPLE_RATE: '${{ secrets.SENTRY_TRACES_SAMPLE_RATE }}'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-cw-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:
DB_PORT: '${{ secrets.DB_PORT }}'
DB_CA_CERT: '${{ secrets.DB_CA_CERT }}'
DB_SSL_MODE: '${{ secrets.DB_SSL_MODE }}'
REDIS_ENABLED: '${{ secrets.REDIS_ENABLED }}'
REDIS_URL: '${{ secrets.REDIS_URL }}'
CLOUD_PROVIDER: 'CW'
SENTRY_DSN: '${{ secrets.SENTRY_DSN }}'
SENTRY_TRACES_SAMPLE_RATE: '${{ secrets.SENTRY_TRACES_SAMPLE_RATE }}'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-do-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
DB_PORT: '${{ secrets.DB_PORT }}'
DB_CA_CERT: '${{ secrets.DB_CA_CERT }}'
DB_SSL_MODE: '${{ secrets.DB_SSL_MODE }}'
REDIS_ENABLED: '${{ secrets.REDIS_ENABLED }}'
REDIS_URL: '${{ secrets.REDIS_URL }}'
CLOUD_PROVIDER: 'DO'
SENTRY_DSN: '${{ secrets.SENTRY_DSN }}'
SENTRY_TRACES_SAMPLE_RATE: '${{ secrets.SENTRY_TRACES_SAMPLE_RATE }}'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-do-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
DB_PORT: '${{ secrets.DB_PORT }}'
DB_CA_CERT: '${{ secrets.DB_CA_CERT }}'
DB_SSL_MODE: '${{ secrets.DB_SSL_MODE }}'
REDIS_ENABLED: '${{ secrets.REDIS_ENABLED }}'
REDIS_URL: '${{ secrets.REDIS_URL }}'
CLOUD_PROVIDER: 'DO'
SENTRY_DSN: '${{ secrets.SENTRY_DSN }}'
SENTRY_TRACES_SAMPLE_RATE: '${{ secrets.SENTRY_TRACES_SAMPLE_RATE }}'
Expand Down
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@
"**/public/**/*.jpg": true,
"**/public/**/*.pdf": true
},
"angular.enable-strict-mode-prompt": false,
"cSpell.words": []
"angular.enable-strict-mode-prompt": false
}
1 change: 0 additions & 1 deletion apps/gauzy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
"detect-passive-events": "^1.0.4",
"echarts": "^5.0.1",
"eva-icons": "^1.1.3",
"express-session": "^1.17.2",
"fast-json-stringify": "^2.7.12",
"file-saver": "^2.0.5",
"filepond": "^4.25.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
</div>
</div>
</nb-card-header>
<nb-card-body *ngIf="employeeEntities?.length">
<div class="ml-3 mb-4">
<nb-card-body class="entities" *ngIf="employeeEntities?.length">
<div class="mb-3">
<strong>{{ title }}</strong>
</div>
<nb-card class="entities" *ngFor="let entity of employeeEntities">
<nb-card *ngFor="let entity of employeeEntities">
<nb-card-body>
{{ entity.name }}
<nb-actions class="float-right" e="medium">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@
}

.entities {
margin-bottom: 0.5rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}

:host{
height: 100%;
@include dialog(var(--gauzy-card-2), var(--gauzy-card-1));
}
nb-card-header,
nb-card-body {
padding: 1rem;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<nb-card>
<nb-card-body>
<nb-card-body class="m-3">
<form [formGroup]="form">
<div class="container">
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
height: 100%;
nb-card {
background-color: var(--gauzy-card-2);
height: 100%;
border-radius: 0;

nb-card-body {
height: 100%;
background-color: var(--card-background-color);
border-radius: 0.625rem;

form {
display: flex;
flex-direction: column;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<ga-edit-employee-membership
[selectedEmployee]="selectedEmployee"
[organizationEntities]="organizationContact"
[employeeEntities]="employeeContact"
[placeholder]="'FORM.PLACEHOLDERS.CONTACTS' | translate"
[title]="'EMPLOYEES_PAGE.EDIT_EMPLOYEE.EMPLOYEE_CONTACTS' | translate"
(entitiesAdded)="submitForm($event, false)"
(entitiesRemoved)="submitForm($event, true)"
></ga-edit-employee-membership>
<div class="container-contact">
<ga-edit-employee-membership
[selectedEmployee]="selectedEmployee"
[organizationEntities]="organizationContact"
[employeeEntities]="employeeContact"
[placeholder]="'FORM.PLACEHOLDERS.CONTACTS' | translate"
[title]="'EMPLOYEES_PAGE.EDIT_EMPLOYEE.EMPLOYEE_CONTACTS' | translate"
(entitiesAdded)="submitForm($event, false)"
(entitiesRemoved)="submitForm($event, true)"
></ga-edit-employee-membership>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ import { ToastrService } from 'apps/gauzy/src/app/@core/services/toastr.service'
:host {
overflow-y: auto;
height: calc(100vh - 20.5rem);
.container-contact {
background-color: var(--gauzy-card-2);
padding: 1rem;
height: 100%;
}
nb-card {
margin: 0 !important;
background-color: var(--gauzy-card-3) !important;
border-radius: var(--card-border-radius);
}
}
`
]
Expand Down
Loading

0 comments on commit efc1b0c

Please sign in to comment.