Skip to content

Commit

Permalink
A lot of stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndouglas committed Oct 3, 2023
1 parent 83d87da commit 97de240
Show file tree
Hide file tree
Showing 24 changed files with 601 additions and 356 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Drupal\Core\State\StateInterface;
use Drupal\va_gov_build_trigger\Controller\ContentReleaseNotificationController;
use Drupal\va_gov_build_trigger\EventSubscriber\ContinuousReleaseSubscriber;
use Drupal\va_gov_build_trigger\Service\BuildRequester;
use Drupal\va_gov_build_trigger\Service\BuildRequesterInterface;
use Drupal\va_gov_build_trigger\Service\BuildSchedulerInterface;
use Drupal\va_gov_build_trigger\Service\ReleaseStateManager;
Expand Down Expand Up @@ -91,19 +90,6 @@ public function resetState() {
$this->logger()->info('Content release state has been reset to \'ready\'.');
}

/**
* Reset the content release frontend version.
*
* @command va-gov:content-release:reset-frontend-version
* @aliases va-gov-content-release-reset-frontend-version
*/
public function resetFrontendVersion() {
$this->state->delete(BuildRequester::VA_GOV_FRONTEND_VERSION);
$this->logger()->info('Content release state has been reset to @state.', [
'@state' => ReleaseStateManager::STATE_DEFAULT,
]);
}

/**
* Advance the state like an external system would do through HTTP.
*
Expand Down Expand Up @@ -131,17 +117,6 @@ public function advanceState($state) {
]);
}

/**
* Get the frontend version that was requested by the user.
*
* @command va-gov:content-release:get-frontend-version
* @aliases va-gov-content-release-get-frontend-version
*/
public function getFrontendVersion() {
$state = $this->state->get(BuildRequester::VA_GOV_FRONTEND_VERSION, '__default');
$this->io()->write($state);
}

/**
* Get the current release state.
*
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
va_gov_build_trigger.front_end_branches_autocomplete:
path: '/admin/content/deploy/front_end_branches_autocomplete/{count}'
defaults:
_controller: '\Drupal\va_gov_build_trigger\Controller\FrontEndBranchAutocompleteController::handleAutocomplete'
_format: json
requirements:
_permission: "va gov deploy content build"

va_gov_build_trigger.content_release_status_block_controller_get_block:
path: '/admin/content_release_status_block/ajax'
defaults:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
<?php

namespace Drupal\va_gov_build_trigger\Plugin\Block;
namespace Drupal\va_gov_content_release\Plugin\Block;

use Drupal\Core\Block\BlockBase;
use Drupal\Core\Datetime\DateFormatterInterface;
use Drupal\Core\Link;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Core\Url;
use Drupal\va_gov_build_trigger\Environment\EnvironmentDiscovery;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\va_gov_build_trigger\Service\BuildRequester;

/**
* Provides a 'ContentReleaseStatusBlock' block.
* Provides a Content Release Status block.
*
* @Block(
* id = "content_release_status_block",
* admin_label = @Translation("Recent updates"),
* admin_label = @Translation("Content Release Status"),
* )
*/
class ContentReleaseStatusBlock extends BlockBase implements ContainerFactoryPluginInterface {
Expand Down Expand Up @@ -128,7 +126,6 @@ public function build() {

if ($this->environmentDiscovery->shouldDisplayBuildDetails()) {
$current_frontend_version = $this->state->get(BuildRequester::VA_GOV_FRONTEND_VERSION, '[default]');
$build_log_link =

$items['front_end_version'] = [
'title' => $this->t('Front end version'),
Expand Down
Loading

0 comments on commit 97de240

Please sign in to comment.