Skip to content

Commit f9e307d

Browse files
committed
fix typos and update some logs
1 parent 24c1b4b commit f9e307d

9 files changed

Lines changed: 19 additions & 13 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ The TrainingPeaks and TrainerRoad integrations depend on web endpoints and sessi
450450
- TrainerRoad is supported as a source, not as a synchronization destination.
451451
- Changed-workout replacement is available for **Only today**, **Only tomorrow**, and scheduled TrainerRoad → TrainingPeaks rolling periods. The regular manual **Confirm** action still uses non-destructive copy behavior.
452452
- Changed-workout detection is primarily based on the TrainerRoad workout identifier. A content change that keeps the same identifier may be treated as already synchronized.
453-
- Scheduler periods are relative to the execution date and are limited to offsets between `-365` and `365` days.
453+
- Scheduler periods are relative to the execution date and are limited to offsets between `-1` and `7` days.
454454
- The scheduler interval is global for the application instance and cannot be configured per schedule.
455455
- Synchronization history currently covers calendar-to-calendar operations only.
456456
- TrainingPeaks capabilities can differ between athlete, coach, free, and Premium accounts.

boot/src/main/kotlin/org/freekode/tp2intervals/app/confguration/ConfigurationService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.freekode.tp2intervals.app.confguration
1+
package org.freekode.tp2intervals.app.configuration
22

33
import org.freekode.tp2intervals.domain.Platform
44
import org.freekode.tp2intervals.domain.config.AppConfiguration

boot/src/main/kotlin/org/freekode/tp2intervals/config/WebConfiguration.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ class WebConfig : WebMvcConfigurer {
1010
override fun addCorsMappings(registry: CorsRegistry) {
1111
registry
1212
.addMapping("/api/**")
13-
.allowedMethods("GET", "POST", "PUT")
13+
.allowedMethods(
14+
"GET",
15+
"POST",
16+
"PUT",
17+
"DELETE",
18+
"OPTIONS"
19+
)
1420
}
1521
}

boot/src/main/kotlin/org/freekode/tp2intervals/rest/acitivity/ActivityController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.freekode.tp2intervals.rest.acitivity
1+
package org.freekode.tp2intervals.rest.activity
22

33
import org.freekode.tp2intervals.app.activity.ActivityService
44
import org.freekode.tp2intervals.app.activity.CopyActivitiesRequest

boot/src/main/kotlin/org/freekode/tp2intervals/rest/acitivity/CopyActivitiesRequestDTO.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.freekode.tp2intervals.rest.acitivity
1+
package org.freekode.tp2intervals.rest.activity
22

33
import org.freekode.tp2intervals.domain.Platform
44
import org.freekode.tp2intervals.domain.TrainingType

boot/src/main/kotlin/org/freekode/tp2intervals/rest/configuration/ConfigurationController.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package org.freekode.tp2intervals.rest.configuration
22

3-
import org.freekode.tp2intervals.app.confguration.ConfigurationService
3+
import org.freekode.tp2intervals.app.configuration.ConfigurationService
44
import org.freekode.tp2intervals.domain.Platform
55
import org.freekode.tp2intervals.domain.config.UpdateConfigurationRequest
66
import org.freekode.tp2intervals.domain.workout.structure.StepModifier
@@ -29,7 +29,7 @@ class ConfigurationController(
2929

3030
@PutMapping("/api/configuration")
3131
fun updateConfiguration(@RequestBody requestDTO: UpdateConfigurationRequestDTO): ResponseEntity<ErrorResponseDTO> {
32-
log.debug("Received request for updating configuration: {}", requestDTO)
32+
log.debug("Received request for updating configuration")
3333
val errors = configurationService.updateConfiguration(UpdateConfigurationRequest(requestDTO.config))
3434
if (errors.isNotEmpty()) {
3535
return ResponseEntity.badRequest().body(ErrorResponseDTO(errors.joinToString()))

boot/src/main/resources/application.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spring:
1616
client:
1717
config:
1818
default:
19-
loggerLevel: full
19+
loggerLevel: basic
2020
jackson:
2121
default-property-inclusion: non_null
2222
serialization:
@@ -33,7 +33,7 @@ spring:
3333

3434
server:
3535
error:
36-
include-message: always
36+
include-message: never
3737

3838
management:
3939
info:
@@ -42,12 +42,12 @@ management:
4242
endpoints:
4343
web:
4444
exposure:
45-
include: 'health,info,loggers'
45+
include: health,info
4646
cors:
4747
allowed-origins: '*'
4848
endpoint:
4949
loggers:
50-
enabled: true
50+
enabled: false
5151

5252
logging:
5353
file:

boot/src/test/kotlin/org/freekode/tp2intervals/app/confguration/ConfigurationServiceTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.freekode.tp2intervals.app.confguration
1+
package org.freekode.tp2intervals.app.configuration
22

33
import org.freekode.tp2intervals.domain.config.DebugModeService
44
import org.freekode.tp2intervals.domain.config.UpdateConfigurationRequest

ui/src/infrastructure/notification.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export class NotificationService {
162162
}
163163

164164
scheduledSyncCreated(): void {
165-
this.success('Scheduled sync created. It will run at the configured interval for today.');
165+
this.success('Scheduled sync created. It will run at the configured interval for the selected rolling period.');
166166
}
167167

168168
scheduledSyncDeleted(): void {

0 commit comments

Comments
 (0)