Skip to content

Commit

Permalink
Feature/reminder logs (#174)
Browse files Browse the repository at this point in the history
* update changelog

* v0.3.2

* only log sessions were reminded

---------

Co-authored-by: Timo Huber <[email protected]>
  • Loading branch information
timohuber and timohuber authored Aug 2, 2023
1 parent 435f896 commit 24a7355
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 11 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

- canary notifier for job worker

## [0.3.2](https://github.com/uzh/pool/tree/0.3.2) - 2023-07-31

### Added

- option to prompt custom fields when signing up

### Changed

- ignore boolean custom fields when checking profile completeness

## [0.3.1](https://github.com/uzh/pool/tree/0.3.1) - 2023-07-28

### Added
Expand Down
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

(name pool)

(version 0.3.1)
(version 0.3.2)

(authors "Department of Economics, University of Zurich")

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pool",
"version": "0.3.1",
"version": "0.3.2",
"license": "GPL-2.0-or-later",
"scripts": {
"build": "export NODE_OPTIONS=--trace-warnings PUBLIC_URL=$PREFIX_PATH/assets/; parcel build resources/index.js resources/images/** --dist-dir public --public-url $PUBLIC_URL && parcel build resources/admin.js --dist-dir public --public-url $PUBLIC_URL",
Expand Down
2 changes: 1 addition & 1 deletion pool.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.3.1"
version: "0.3.2"
synopsis: "The Z-Pool tool"
description: """

Expand Down
2 changes: 1 addition & 1 deletion pool.opam.locked
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "0.3.1"
version: "0.3.2"
synopsis: "The Z-Pool tool"
description: """

Expand Down
15 changes: 9 additions & 6 deletions pool/app/assignment/service.ml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,15 @@ let send_tenant_reminder ({ Pool_tenant.database_label; _ } as tenant) =
Please fix the string manually and reset the job instance. Error: %s"
Pool_common.(Utils.error_to_string Language.En err))
| Ok sessions ->
Logs.info ~src (fun m ->
m
"Reminder send for the following sessions: %s"
(sessions
|> CCList.map (fun { Session.id; _ } -> Session.Id.value id)
|> CCString.concat ", "))
(match sessions with
| [] -> ()
| sessions ->
Logs.info ~src (fun m ->
m
"Reminder sent for the following sessions: %s"
(sessions
|> CCList.map (fun { Session.id; _ } -> Session.Id.value id)
|> CCString.concat ", ")))
;;

let run () =
Expand Down
2 changes: 1 addition & 1 deletion pool/version/version.ml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
let to_string = "0.3.1"
let to_string = "0.3.2"

0 comments on commit 24a7355

Please sign in to comment.