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

CLDC-3860: Bulk upload add validation, prevent reasonpref dontknow being selected #2955

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

Conversation

Dinssa
Copy link
Contributor

@Dinssa Dinssa commented Feb 20, 2025

No description provided.

Copy link

…asonpref-dontknow-being-selected' into CLDC-3860-Bulk-upload-prevent-reasonpref-dontknow-being-selected
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks good to me! I think we also want the same changes for 2025

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ye we do, once the 2025 PR is merged we can update it with this or vice versa

end
end

it "does not update the logs with valid rp_dontknow values" do
Copy link
Contributor

Choose a reason for hiding this comment

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

We can check the updated_at field here to verify that the logs haven't been updated

Copy link
Contributor Author

@Dinssa Dinssa Feb 25, 2025

Choose a reason for hiding this comment

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

Good idea, i'll add that in

dont_know_selected = field_111 == 1

if selected_reasons.any? && dont_know_selected
block_log_creation!
Copy link
Collaborator

@kosiakkatrina kosiakkatrina Feb 27, 2025

Choose a reason for hiding this comment

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

Do we really want to block log creation in this case? I assume we should still be able to create logs, but would clear the reasonable preference reasons?

Copy link
Contributor Author

@Dinssa Dinssa Feb 27, 2025

Choose a reason for hiding this comment

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

Ok sure let's do that, will update it

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.

3 participants