This repository was archived by the owner on Oct 29, 2020. It is now read-only.
Drush command to create campaigns from JSON#2835
Merged
aaronschachter merged 5 commits intoDoSomethingArchive:devfrom Jul 17, 2014
aaronschachter:json_node
Merged
Drush command to create campaigns from JSON#2835aaronschachter merged 5 commits intoDoSomethingArchive:devfrom aaronschachter:json_node
aaronschachter merged 5 commits intoDoSomethingArchive:devfrom
aaronschachter:json_node
Conversation
Contributor
There was a problem hiding this comment.
I'd better name it campaign-create, following pattern user-create, pantheon-site-create, etc
aaronschachter
added a commit
that referenced
this pull request
Jul 17, 2014
Drush command to create campaigns from JSON
Contributor
|
👍 Awesome! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2793
@sergii-tkachenko Would you mind reviewing?
cc @DFurnes
Adds a drush command
drush campaign-createto create a campaign node from a given JSON file, and adds said JSON file into thetests/campaigndirectory.The function and JSON files are minimal at the moment, just to get this up and running. The idea here is that the Capser JS tests will read from the JSON file as well when checking for the presence of various fields, so we're not relying on content within the database as is, and hardcoding tests based on that content.