Skip to content

Commit 32f00b9

Browse files
authored
Merge branch 'develop' into feature-2814/slack-pulse-survey-integration
2 parents 7e0a4c9 + 1ddde8d commit 32f00b9

File tree

8 files changed

+41
-37
lines changed

8 files changed

+41
-37
lines changed

.github/workflows/jekyll.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Checkout
3535
uses: actions/checkout@v4
3636
- name: Setup Ruby
37-
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
37+
uses: ruby/setup-ruby@v1
3838
with:
3939
working-directory: docs
4040
ruby-version: '3.3' # Not needed with a .ruby-version file

server/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
id "jacoco"
88
}
99

10-
version "0.8.11"
10+
version "0.8.12"
1111
group "com.objectcomputing.checkins"
1212

1313
repositories {

server/src/main/java/com/objectcomputing/checkins/services/volunteering/VolunteeringEvent.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ public class VolunteeringEvent {
5454

5555
@Column(name = "hours")
5656
@Schema(description = "number of hours spent volunteering")
57-
@TypeDef(type = DataType.INTEGER)
58-
private int hours;
57+
@TypeDef(type = DataType.DOUBLE)
58+
private double hours;
5959

6060
@Nullable
6161
@Column(name = "notes")
6262
@TypeDef(type = DataType.STRING)
6363
@Schema(description = "notes about the volunteering event")
6464
private String notes;
6565

66-
public VolunteeringEvent(UUID relationshipId, LocalDate eventDate, int hours, String notes) {
66+
public VolunteeringEvent(UUID relationshipId, LocalDate eventDate, double hours, String notes) {
6767
this(null, relationshipId, eventDate, hours, notes);
6868
}
6969

@@ -79,4 +79,4 @@ public boolean equals(Object o) {
7979
public int hashCode() {
8080
return Objects.hash(id, relationshipId, eventDate, hours, notes);
8181
}
82-
}
82+
}

server/src/main/java/com/objectcomputing/checkins/services/volunteering/VolunteeringEventDTO.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public class VolunteeringEventDTO {
2929

3030
@NotNull
3131
@Schema(description = "number of hours spent volunteering")
32-
private Integer hours;
32+
private Double hours;
3333

3434
@Nullable
3535
@Schema(description = "notes about the volunteering event")
3636
private String notes;
37-
}
37+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE volunteering_event
2+
ALTER COLUMN hours TYPE float;

server/src/test/java/com/objectcomputing/checkins/services/fixture/VolunteeringFixture.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ default VolunteeringRelationship createVolunteeringRelationship(UUID memberId, U
4141
return getVolunteeringRelationshipRepository().save(new VolunteeringRelationship(memberId, organizationId, startDate, endDate, active));
4242
}
4343

44-
default VolunteeringEvent createVolunteeringEvent(UUID relationshipId, LocalDate now, int i, String notes) {
44+
default VolunteeringEvent createVolunteeringEvent(UUID relationshipId, LocalDate now, double i, String notes) {
4545
return getVolunteeringEventRepository().save(new VolunteeringEvent(relationshipId, now, i, notes));
4646
}
4747
}

server/src/test/java/com/objectcomputing/checkins/services/volunteering/VolunteeringEventControllerTest.java

Lines changed: 29 additions & 27 deletions
Large diffs are not rendered by default.

web-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web-ui",
3-
"version": "0.8.11",
3+
"version": "0.8.12",
44
"private": true,
55
"type": "module",
66
"dependencies": {

0 commit comments

Comments
 (0)