Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/2139 store invitations reset #485

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

timohuber
Copy link
Contributor

No description provided.

@@ -123,6 +123,7 @@ module SurveyUrl = struct
let schema () = schema ~validation field ()
end

(* TODO: Remove this module *)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo

@@ -243,10 +243,26 @@ module DirectEnrollment : sig
val assignable : t -> bool
end

module InvitationReset : sig
module Write : sig
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is there a "write" model, it's the same in both ways, isn't it?

~label:"add unique combination to pool_queue_jobs_mapping"
[%string
{sql|
CREATE TABLE pool_queue_job_%{table_suffix} (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, add "_map" to name, otherwise might be confusing with "_history"

Suggested change
CREATE TABLE pool_queue_job_%{table_suffix} (
CREATE TABLE pool_queue_job_map_%{table_suffix} (

Comment on lines -113 to +120
let instance = Job.to_instance ~id ?message_template ?run_at label input job in
let clone_of =
match job_ctx with
| Create _ -> None
| Clone id -> Some id
in
let instance =
Job.to_instance ~id ?message_template ?run_at ?clone_of label input job
in
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't there a simpler handling to achive this?

pool/pool_queue/pool_queue.ml Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants