Skip to content

Commit 6749f74

Browse files
Merge branch 'develop' into chore/development/update-core-files-to-new-angular-api
2 parents 2e8919b + f81e35b commit 6749f74

File tree

11 files changed

+15
-111
lines changed

11 files changed

+15
-111
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Refer to [Using JHipster in production](http://www.jhipster.tech/production) for
193193
The following command can automate the deployment to a server. The example shows the deployment to the main Artemis test server (which runs a virtual machine):
194194

195195
```shell
196-
./artemis-server-cli deploy [email protected] -w build/libs/Artemis-7.7.3.war
196+
./artemis-server-cli deploy [email protected] -w build/libs/Artemis-7.7.4.war
197197
```
198198

199199
## Architecture

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ plugins {
2525
}
2626

2727
group = "de.tum.cit.aet.artemis"
28-
version = "7.7.3"
28+
version = "7.7.4"
2929
description = "Interactive Learning with Individual Feedback"
3030

3131
java {

package-lock.json

Lines changed: 2 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "artemis",
3-
"version": "7.7.3",
3+
"version": "7.7.4",
44
"description": "Interactive Learning with Individual Feedback",
55
"private": true,
66
"license": "MIT",
@@ -69,7 +69,6 @@
6969
"papaparse": "5.4.1",
7070
"pdf-lib": "1.17.1",
7171
"pdfjs-dist": "4.8.69",
72-
"posthog-js": "1.187.2",
7372
"rxjs": "7.8.1",
7473
"simple-statistics": "7.8.7",
7574
"smoothscroll-polyfill": "0.4.4",

src/main/java/de/tum/cit/aet/artemis/buildagent/dto/BuildAgentDTO.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
import java.io.Serial;
44
import java.io.Serializable;
55

6+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
7+
import com.fasterxml.jackson.annotation.JsonInclude;
8+
9+
// NOTE: this data structure is used in shared code between core and build agent nodes. Changing it requires that the shared data structures in Hazelcast (or potentially Redis)
10+
// in the future are migrated or cleared. Changes should be communicated in release notes as potentially breaking changes.
11+
@JsonIgnoreProperties(ignoreUnknown = true)
12+
@JsonInclude(JsonInclude.Include.NON_EMPTY)
613
public record BuildAgentDTO(String name, String memberAddress, String displayName) implements Serializable {
714

815
@Serial

src/main/java/de/tum/cit/aet/artemis/buildagent/service/BuildJobContainerService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,10 @@ public void stopUnresponsiveContainer(String containerId) {
221221
future.get(10, TimeUnit.SECONDS); // Wait for the stop command to complete with a timeout
222222
}
223223
catch (NotFoundException | NotModifiedException e) {
224-
log.debug("Container with id {} is already stopped: {}", containerId, e.getMessage());
224+
log.warn("Container with id {} is already stopped.", containerId, e);
225225
}
226226
catch (Exception e) {
227-
log.warn("Failed to stop container with id {}. Attempting to kill container: {}", containerId, e.getMessage());
227+
log.error("Failed to stop container with id {}. Attempting to kill container.", containerId, e);
228228

229229
// Attempt to kill the container if stop fails
230230
try {
@@ -236,7 +236,7 @@ public void stopUnresponsiveContainer(String containerId) {
236236
killFuture.get(5, TimeUnit.SECONDS); // Wait for the kill command to complete with a timeout
237237
}
238238
catch (Exception killException) {
239-
log.warn("Failed to kill container with id {}: {}", containerId, killException.getMessage());
239+
log.error("Failed to kill container with id {}.", containerId, killException);
240240
}
241241
}
242242
finally {

src/main/webapp/app/core/posthog/analytics.service.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/main/webapp/app/shared/layouts/main/main.component.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { ProfileService } from 'app/shared/layouts/profiles/profile.service';
55
import { SentryErrorHandler } from 'app/core/sentry/sentry.error-handler';
66
import { ThemeService } from 'app/core/theme/theme.service';
77
import { DOCUMENT } from '@angular/common';
8-
import { AnalyticsService } from 'app/core/posthog/analytics.service';
98
import { Subscription } from 'rxjs';
109
import { ExamParticipationService } from 'app/exam/participate/exam-participation.service';
1110
import { CourseManagementService } from 'app/course/manage/course-management.service';
@@ -41,7 +40,6 @@ export class JhiMainComponent implements OnInit, OnDestroy {
4140
private profileService: ProfileService,
4241
private examParticipationService: ExamParticipationService,
4342
private sentryErrorHandler: SentryErrorHandler,
44-
private analyticsService: AnalyticsService,
4543
private themeService: ThemeService,
4644
@Inject(DOCUMENT)
4745
private document: Document,
@@ -50,7 +48,6 @@ export class JhiMainComponent implements OnInit, OnDestroy {
5048
private ltiService: LtiService,
5149
) {
5250
this.setupErrorHandling().then(undefined);
53-
this.setupAnalytics().then(undefined);
5451
}
5552

5653
private async setupErrorHandling() {
@@ -60,13 +57,6 @@ export class JhiMainComponent implements OnInit, OnDestroy {
6057
});
6158
}
6259

63-
private async setupAnalytics() {
64-
this.profileService.getProfileInfo().subscribe((profileInfo) => {
65-
// postHog is only activated if it was specified in the application.yml file
66-
this.analyticsService.initAnalytics(profileInfo);
67-
});
68-
}
69-
7060
private getPageTitle(routeSnapshot: ActivatedRouteSnapshot): string {
7161
const title: string = routeSnapshot.data['pageTitle'] ?? 'artemisApp';
7262
if (routeSnapshot.firstChild) {

src/main/webapp/app/shared/layouts/profiles/profile-info.model.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ export class ProfileInfo {
1010
public inDevelopment: boolean;
1111
public openApiEnabled?: boolean;
1212
public sentry?: { dsn: string };
13-
public postHog?: {
14-
host?: string;
15-
token: string;
16-
};
1713
public features: ActiveFeatureToggles;
1814
public guidedTourMapping?: GuidedTourMapping;
1915
public buildPlanURLTemplate: string;

src/main/webapp/app/shared/layouts/profiles/profile.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ export class ProfileService {
5050
profileInfo.ribbonEnv = profileInfo.ribbonEnv ?? '';
5151

5252
profileInfo.sentry = data.sentry;
53-
profileInfo.postHog = data.postHog;
5453
profileInfo.features = data.features;
5554
profileInfo.buildPlanURLTemplate = data.buildPlanURLTemplate;
5655
profileInfo.commitHashURLTemplate = data.commitHashURLTemplate;

0 commit comments

Comments
 (0)