Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
automatic_updates
Commits
13d96256
Unverified
Commit
13d96256
authored
3 years ago
by
Ted Bowman
Browse files
Options
Downloads
Patches
Plain Diff
remove update tabs
parent
7cc3b99c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
automatic_updates.module
+12
-0
12 additions, 0 deletions
automatic_updates.module
tests/src/Functional/UpdaterFormTest.php
+1
-3
1 addition, 3 deletions
tests/src/Functional/UpdaterFormTest.php
with
13 additions
and
3 deletions
automatic_updates.module
+
12
−
0
View file @
13d96256
...
...
@@ -84,3 +84,15 @@ function automatic_updates_form_update_manager_update_form_alter(&$form, FormSta
}
}
}
/**
* Implements hook_local_tasks_alter().
*/
function
automatic_updates_local_tasks_alter
(
&
$local_tasks
)
{
// The Update modules current update form only allows updating modules and
// themes via downloading archive files which could produce unexpected results
// on a site using our Composer based updater.
unset
(
$local_tasks
[
'update.report_update'
]);
unset
(
$local_tasks
[
'update.module_update'
]);
unset
(
$local_tasks
[
'update.theme_update'
]);
}
This diff is collapsed.
Click to expand it.
tests/src/Functional/UpdaterFormTest.php
+
1
−
3
View file @
13d96256
...
...
@@ -98,9 +98,7 @@ class UpdaterFormTest extends BrowserTestBase {
// https://www.drupal.org/i/3233564
$this
->
clickLink
(
'Extend'
);
$assert_session
->
pageTextContainsOnce
(
'There is a security update available for your version of Drupal.'
);
$this
->
clickLink
(
'Update'
);
$assert_session
->
pageTextContainsOnce
(
'Drupal core updates are supported by the enabled Automatic Updates module'
);
$this
->
clickLink
(
'Automatic Updates module'
);
$this
->
clickLink
(
'Automatic Updates'
);
$assert_session
->
pageTextNotContains
(
'There is a security update available for your version of Drupal.'
);
$cells
=
$assert_session
->
elementExists
(
'css'
,
'#edit-projects .update-update-security'
)
->
findAll
(
'css'
,
'td'
);
...
...
This diff is collapsed.
Click to expand it.
Ted Bowman
@tedbow
mentioned in commit
c157ed68
·
3 years ago
mentioned in commit
c157ed68
mentioned in commit c157ed68179e36147ec9222243015f231164bceb
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment