Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

[pull] develop from Onlineberatung:develop #19

Open
wants to merge 36 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e801c9f
feat: add tenantName and agencyName to registration stats
tkuzynow Jun 1, 2023
f96b38a
Merge pull request #57 from Onlineberatung/OB-4519
tkuzynow Jun 1, 2023
2218bd4
feat: add tenantName and agencyName to registration stats
tkuzynow Jun 1, 2023
3604bc9
Merge pull request #58 from Onlineberatung/OB-4519
tkuzynow Jun 1, 2023
3ab8b9f
feat: add referer to registration stats
tkuzynow Jun 28, 2023
a7ba64e
Merge pull request #59 from Onlineberatung/OB-4519
tkuzynow Jun 29, 2023
8d9ffaf
fix: fix object comparision bug for statistics
tkuzynow Jul 6, 2023
27246a5
feat: add account deletion listener
tkuzynow Jul 10, 2023
4bf1dce
Merge branch 'develop' of https://github.com/Onlineberatung/onlineBer…
tkuzynow Jul 10, 2023
d9a20a4
feat: enrichment of betend if account was deleted
tkuzynow Jul 10, 2023
94ff6fc
Merge pull request #61 from Onlineberatung/OB-5319-betend-on-account-…
tkuzynow Jul 10, 2023
a7d5424
fix: fix log information
tkuzynow Jul 13, 2023
195b626
fix: null check convention
tkuzynow Jul 13, 2023
8fcedbe
Merge pull request #62 from Onlineberatung/OB-5319-betend-on-account-…
tkuzynow Jul 13, 2023
c9c7dfb
fix: betend should be set for session delete testcase
tkuzynow Jul 24, 2023
bb3359b
Merge pull request #64 from Onlineberatung/OB-5407-betend-when-sessio…
tkuzynow Jul 25, 2023
235ede8
feat: extended statistics for registration
tkuzynow Aug 30, 2023
257ec6a
Merge pull request #65 from Onlineberatung/OB-5247-extended-statistic…
tkuzynow Aug 31, 2023
e2dda36
feat: extended statistics for registration
tkuzynow Sep 1, 2023
7f8dabe
Merge pull request #66 from Onlineberatung/OB-5247-extended-statistic…
tkuzynow Sep 4, 2023
e1479d4
fix: stateless api client for call to userservice
tkuzynow Sep 13, 2023
6aae5f7
Merge pull request #67 from Onlineberatung/OB-5706-fix-call-to-userse…
tkuzynow Sep 13, 2023
96382f0
fix: store tenant id in metadata to enable filtering by tenant id
tkuzynow Sep 14, 2023
7f66acb
fix: store tenant id in metadata to enable filtering by tenant id
tkuzynow Sep 18, 2023
b779e5d
Merge pull request #68 from Onlineberatung/OB-5247-store-tenant-id-in…
tkuzynow Sep 18, 2023
784dc57
fix: class cast exception for statistics
tkuzynow Apr 24, 2024
d8ee537
fix: class cast exception for statistics
tkuzynow Apr 24, 2024
c8c1f22
Merge pull request #70 from Onlineberatung/DIAKONIE-284
tkuzynow Apr 24, 2024
69757f8
fix: class cast exception for statistics
tkuzynow Apr 24, 2024
6e18302
Merge pull request #71 from Onlineberatung/DIAKONIE-284
tkuzynow Apr 24, 2024
1637afe
feat: upgrade to spring boot 2.7.X
tkuzynow May 23, 2024
c98b97d
Merge pull request #72 from Onlineberatung/TSYSTEMS-140-upgrade-to-sp…
tkuzynow May 23, 2024
e40c740
feat: upgrade to spring boot 2.7.X
tkuzynow May 23, 2024
ba0fceb
feat: upgrade to spring boot 2.7.X
tkuzynow May 23, 2024
85a9a49
feat: upgrade to spring boot 2.7.X
tkuzynow May 24, 2024
17dbe37
Merge pull request #73 from Onlineberatung/TSYSTEMS-140-upgrade-to-sp…
tkuzynow May 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dockerImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
push_to_registry:
strategy:
matrix:
registry: ["docker.pkg.github.com", "ghcr.io"]
registry: ["ghcr.io"]
needs: [test]
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
Expand Down
74 changes: 73 additions & 1 deletion api/statisticsservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ components:
enum:
- "ASSIGN_SESSION"
- "ARCHIVE_SESSION"
- "DELETE_ACCOUNT"
- "CREATE_MESSAGE"
- "START_VIDEO_CALL"
- "STOP_VIDEO_CALL"
Expand Down Expand Up @@ -165,7 +166,7 @@ components:
description: The id of the session
example: 12345

ArchiveSessionStatisticsEventMessage:
ArchiveOrDeleteSessionStatisticsEventMessage:
type: object
required:
- sessionId
Expand All @@ -188,6 +189,28 @@ components:
type: string
example: '2022-08-15T21:11:29'

DeleteAccountStatisticsEventMessage:
type: object
required:
- sessionId
- endDate
allOf:
- $ref: '#/components/schemas/StatisticsEventMessage'
- type: object
properties:
tenantId:
type: integer
format: int64
description: The id of the tenant
example: 1
userId:
type: string
description: The keycloak id of the consultant
example: d63f4cc0-215d-40e2-a866-2d3e910f0590
deleteDate:
type: string
example: '2022-08-15T21:11:29'

CreateMessageStatisticsEventMessage:
type: object
required:
Expand All @@ -205,6 +228,14 @@ components:
type: boolean
description: indicates whether the message has an attachment
example: true
receiverId:
type: string
description: receiving user id of the message (taken from session). Can be null for groupchat.
tenantId:
type: integer
format: int64
description: The id of the tenant
example: 1

StartVideoCallStatisticsEventMessage:
type: object
Expand All @@ -220,10 +251,17 @@ components:
format: int64
description: The id of the session
example: 12345
adviceSeekerId:
type: string
description: The id of the adviceseeker
videoCallUuid:
type: string
description: The uuid of the video call
example: 123e4567-e89b-12d3-a456-556642440000
tenantId:
type: integer
format: int64
description: The id of the tenant

StopVideoCallStatisticsEventMessage:
type: object
Expand Down Expand Up @@ -258,6 +296,9 @@ components:
format: int64
description: The id of the tenant
example: 1
tenantName:
type: string
example: 'Tenant name'
registrationDate:
type: string
example: '2022-08-15T21:11:29'
Expand All @@ -281,6 +322,12 @@ components:
postalCode:
type: string
example: '99999'
agencyName:
type: string
example: "Dortmund Beratungstelle"
referer:
type: string
example: "referer"

RegistrationStatisticsListResponseDTO:
type: object
Expand Down Expand Up @@ -324,6 +371,25 @@ components:
postalCode:
type: string
example: '99999'
tenantName:
type: string
example: 'Tenant name'
agencyName:
type: string
example: "Dortmund Beratungstelle"
referer:
type: string
example: "referer"
appointmentsBookedCount:
type: integer
example: "4"
attendedVideoCallsCount:
type: integer
example: "6"
consultantMessagesCount:
type: integer
example: "72"
description: "Total number of messages sent by all consultants to this adviceseeker"

BookingCreatedStatisticsEventMessage:
type: object
Expand All @@ -343,6 +409,12 @@ components:
type: string
bookingId:
type: integer
adviceSeekerId:
type: string
tenantId:
type: integer
format: int64
description: The id of the tenant

BookingRescheduledStatisticsEventMessage:
type: object
Expand Down
53 changes: 31 additions & 22 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.12</version>
<version>2.7.18</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand All @@ -30,7 +30,7 @@
<openapi-generator-maven.version>6.2.1</openapi-generator-maven.version>
<springfox-boot-starter.version>3.0.0</springfox-boot-starter.version>
<spring-data-mongodb.version>3.3.5</spring-data-mongodb.version>
<spring-security.version>5.7.5</spring-security.version>
<spring-security.version>5.7.12</spring-security.version>
<ehcache.version>2.10.9.2</ehcache.version>
</properties>

Expand Down Expand Up @@ -64,6 +64,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
<version>2.7.5</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
Expand All @@ -73,7 +74,6 @@
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>6.1.6.Final</version>
</dependency>

<!-- OpenApi/Swagger dependencies -->
Expand Down Expand Up @@ -104,13 +104,6 @@
<version>4.3.1</version>
</dependency>

<!-- SpringFox: generate YAML file from POJOs and generate documentation -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<version>${springfox-boot-starter.version}</version>
</dependency>

<!-- Keycloak dependencies -->
<dependency>
<groupId>org.keycloak</groupId>
Expand Down Expand Up @@ -150,7 +143,6 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.11</version>
</dependency>

<dependency>
Expand All @@ -168,7 +160,6 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
<version>2.3.5.RELEASE</version>
</dependency>

<dependency>
Expand All @@ -195,23 +186,23 @@
<exclusions>
</exclusions>
</dependency>

<dependency>
<artifactId>powermock-module-junit4</artifactId>
<groupId>org.powermock</groupId>
<groupId>de.flapdoodle.embed</groupId>
<artifactId>de.flapdoodle.embed.mongo</artifactId>
<version>4.13.0</version>
<scope>test</scope>
<version>2.0.2</version>
</dependency>
<dependency>
<artifactId>powermock-api-mockito2</artifactId>
<groupId>org.powermock</groupId>
<scope>test</scope>
<version>2.0.2</version>
<groupId>de.flapdoodle.embed</groupId>
<artifactId>de.flapdoodle.embed.mongo.spring26x</artifactId>
<version>4.13.0</version>
</dependency>

<dependency>
<groupId>de.flapdoodle.embed</groupId>
<artifactId>de.flapdoodle.embed.mongo</artifactId>
<scope>test</scope>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.16.1</version>
</dependency>

<!-- EasyRandom -->
Expand All @@ -237,6 +228,24 @@
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>5.30.0</version>
<configuration>
<activeRecipes>
<recipe>org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_7</recipe>
</activeRecipes>
</configuration>
<dependencies>
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-spring</artifactId>
<version>5.9.0</version>
</dependency>
</dependencies>
</plugin>

<!-- OpenApi codegen maven plugin: generates api stubs -->
<plugin>
<groupId>org.openapitools</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class StatisticsServiceApplication {

public static void main(String[] args) {
SpringApplication.run(StatisticsServiceApplication.class, args);
}
Expand Down

This file was deleted.

Loading
Loading