Skip to content

Instantly share code, notes, and snippets.

@007lva
Last active December 28, 2022 19:46
Show Gist options
  • Save 007lva/52413fd66982a13fbdc8795ab1373055 to your computer and use it in GitHub Desktop.
Save 007lva/52413fd66982a13fbdc8795ab1373055 to your computer and use it in GitHub Desktop.
# First of all, ensure farming-consumers is up and running
ct_attributes = FactoryBot.build(:es_concept_type).attributes
# in Staging you might need to do this before call Create service:
# transactions (sta):009> ct_attributes["uuid"] = SecureRandom.uuid
ES::ConceptTypes::Create.new(attributes: ct_attributes).call
# check concept type created consumer in Farming (devkit logs farming-consumers)
ct = ES::ConceptType.last
cn_attributes = FactoryBot.build(:es_concept_name, concept_type: ct).attributes
ES::ConceptNames::Create.new(attributes: cn_attributes).call
# check concept name created consumer in Farming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment