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

CMR-9409: Added validation to prevent drafts from being associated. #1970

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

sxu123
Copy link
Contributor

@sxu123 sxu123 commented Sep 18, 2023

No description provided.

@sxu123 sxu123 changed the title CMR-9489: Added validation to prevent drafts from being associated. CMR-9409: Added validation to prevent drafts from being associated. Sep 18, 2023
@@ -481,7 +481,7 @@
(let [concept-ids (concat [(:concept-id concept)] (map :concept-id associations))
concept-types (map #(concepts/concept-id->type %) concept-ids)
supported-concept-types (set (concat [:collection :variable :service :tool]
(concepts/get-generic-concept-types-array)))
concepts/get-generic-non-draft-concept-types-array))
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably add just a sentence to the Search api doc under the Associate any concept section like: note: draft records can only be associated to other draft records

Copy link
Contributor

Choose a reason for hiding this comment

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

Draft records cannot be associated to other draft records.

Copy link
Contributor

Choose a reason for hiding this comment

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

I do think its worthwhile to add that as a note in that section to avoid a later confusion just something like: Note: Draft records cannot be associated to any concepts.

@sxu123 sxu123 merged commit 36376e1 into master Sep 19, 2023
1 check passed
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