 (ns cmr.ingest.services.ingest-service.collection
   (:require
    [clojure.string :as string]
+   [cmr.common.api.context :as common-context]
+   [cmr.common.log :as log :refer (warn)]
    [cmr.common.util :refer [defn-timed]]
    [cmr.ingest.config :as config]
    [cmr.ingest.services.helper :as ingest-helper]

                                                                    concept
                                                                    validation-options)]
    (let [{:keys [concept-id revision-id]} (mdb/save-concept context concept)
          entry-title (get-in concept [:extra-fields :entry-title])]
      {:entry-title entry-title
       :concept-id concept-id
       :revision-id revision-id

        prev-concept (first (ingest-helper/find-visible-collections context {:provider-id provider-id
                                                                             :native-id native-id}))
        {:keys [collection warnings]} (validate-and-parse-collection-concept
                                       context
                                       concept
                                       prev-concept
                                       validation-options)
        ;; Add extra fields for the collection
        coll-concept (assoc (add-extra-fields-for-collection context concept collection)
                            :umm-concept collection)]
