-
Notifications
You must be signed in to change notification settings - Fork 10
PLAT-118 Add scheduled_updates to makefile #148
Conversation
@pvhee whats the deal with this one? |
@bimsonz this is just the start really, needs quite a bit more work to get to a presentable state - feel free to take over :) |
Added to profile as mentioned in the Jira ticket @wagg-matt maybe you want to take a look at this? |
@pvhee what state is this one in? Happy to take it on but where does one start..... |
@wagg-matt haven't done anything beyond adding the contrib module to the branch. What I'd suggest is to look into agov, see how they set up scheduled updates and mimick this for us. The contrib module scheduled_updates should allow us to do everything but you might need to look for some doc in the module, not sure what's available |
Conflicts: profiles/cr/drupal-org.make.yml
@pvhee @bimsonz have got this working, hit a few stumbling blocks along the way so a few things to note are:
Happy to investigate further into other uses. There's an example I found that has content to be published and then unpublish it at specific times - something that may be useful |
Thanks for the update @wagg-matt ! |
@pvhee Have gone through this with Liv and she's asked about the following:
What do you reckon? |
Great feedback @wagg-matt ! I think we could get rid of the publish date, that shouldn't be a problem, and replace with the scheduled update field. Could you try this in this PR if not yet done? Regarding the option of displaying or not the publish date, we could do that as well, but let's open a new ticket first to discuss (can be in PLAT), same for the unpublish date request. I'd prefer to keep things as simple as possible, so we need to understand whether that's really going to be useful or not. |
@bimsonz sounds good to me mate. Will remove the publish date in this PR and export it. Will look at the rest in new tickets, first thing Tuesday, cheers man |
…e/PLAT-118_scheduling
…e/PLAT-118_scheduling
…to remove the publish by default
…campaign into feature/PLAT-118_scheduling
…t, even though it shouldn't. Do we know the logic is correct and very likely a small tweak to the test and this can be reviewed but how long it takes me to figure out which tweak to make is anyone's guess. Will continue tomorrow, this commit will break travis in the branch but it's the latest work.
@wagg-matt will have a look to see if I can fix the test |
I did some more research here and I think we need to define the steps we use to fill out a node with these publishing dates. Currently we're using
The problem is that this element is not found and I think we need to write a step definition to create a node with a given publishing date, rather than trying to recreate the UI via behat. This will require a bit more dev work, and probably @Saphyel can help out writing the step definition? Also \cc-ing @shravanmechineni as he might have an idea on how to write this test better. |
@pvhee if you uncomment 'And I wait for AJAX' in every instance in that scenario and you'll see on selenium the test passes. I'll pop over and show you |
…finition started scrollIntoView step definition, this needs work
…rks, ready for code review and QA
@wagg-matt yo dude, you seen that travis error before? |
@@ -0,0 +1 @@ | |||
{ } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you make sure that is deleted or added with content this file & block.block.campaign_base_main_footer ?
ARGS=( $DRUPAL_TI_BEHAT_ARGS ) | ||
./vendor/bin/behat "${ARGS[@]}" | ||
./vendor/bin/behat "${ARGS[@]}" -tags '~@javascript' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's double dash ^^
…behat tests as travis was failing
…campaign into feature/PLAT-118_scheduling
@pvhee Happy with this, just deploying this to QA3, if all looks good will merge it in |
@pvhee going to wait to see if this passes travis with core update, should be fine but ill merge after |
Nice work @wagg-matt - happy for this to go in as well |
* PLAT-118 Add scheduled_updates to makefile * PLAT-118 Add scheduled_updates to profile * PLAT-118 Add Scheduled updates to repo * PLAT-118_scheduling got the export working, only thing left to do is to remove the publish by default * PLAT-118_scheduling removing part of create feature test to finish work and rewrite test * PLAT-118_scheduling pushing for export assistance * PLAT-118_scheduling push for Zach to help * PLAT-118 Fix conflict * PLAT-118_scheduling making the article content type save as unpublished by default and updating development docs for what to do when Command cdi needs the following extension(s) enabled to run: config_devel. error message displays * PLAT-118_scheduling first part of test * PLAT-118_scheduling exported user role update, updated Create news articles that are linked together via a common tag test, written first iteration of scheduled updates test * PLAT-118_scheduling updated test to dynamically use current date and time + 60 seconds * PLAT-118_scheduling test updates waiting till scheduled update has been set * PLAT-118 Spin function * PLAT-118_scheduling updated test * PLAT-118_scheduling have a working selenium test that fails without it, even though it shouldn't. Do we know the logic is correct and very likely a small tweak to the test and this can be reviewed but how long it takes me to figure out which tweak to make is anyone's guess. Will continue tomorrow, this commit will break travis in the branch but it's the latest work. * PLAT-118 Only run tests without javascript * PLAT-118 Tag scheduled update tests to run via selenium * PLAT-118_scheduling removed spin step definition, added sleep step definition started scrollIntoView step definition, this needs work * PLAT-118_scheduling selenium test now working, config exported and works, ready for code review and QA * PLAT-118_scheduling updated what looked like a type in script.sh for behat tests as travis was failing
Fixes https://jira.comicrelief.com/browse/PLAT-118
Changes proposed in this pull request
Deployment instructions