Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bdragon’s picture

Version: x.y.z » 7.x-dev

Still relevant.

Tor Arne Thune’s picture

Version: 7.x-dev » 8.x-dev
Issue tags: +Usability, +Documentation, +String freeze

I can't find any Rules page in Drupal core, but there is still no help text for user/1/edit, so still a valid issue in Drupal 7.4.

Devin Carlson’s picture

user/1/edit is just the Edit profile page. Is there any reason to have help text on this page that is not the same as on every user/%/edit page?

If text should be added, what should it be?

joachim’s picture

> user/1/edit is just the Edit profile page. Is there any reason to have help text on this page that is not the same as on every user/%/edit page?

Something saying 'This is the admin user. Changes made here could lock you out of your site completely.' might be handy here.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

xmacinfo’s picture

Issue summary: View changes
Issue tags: -String freeze +Help text

Having a warning (or help text) about User 1 would be nice.

Is there any UX enhancement planed for the user profile edition form?

jcnventura’s picture

Issue tags: +dcffm2017
FileSize
688 bytes

This patch displays the warning in the issue summary in user/1/edit.

Buoro.Angelo’s picture

Status: Needs review » Reviewed & tested by the community

I Reviewed the patch and the "warning" message is:

Warning message Be careful, you are editing the admin user. Changes made here could lock you out of your site completely.

It works great.

jcnventura’s picture

To the committers: Note that this patch was part of sprint mentoring to @Buoro.Angelo. I wrote the patch while showing him how to write patches, and he provided some input to the code. Please assign credit to him.

jcnventura’s picture

Issue summary: View changes
Issue tags: -dcffm2017 +dcffm17
lauriii’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: +Needs usability review
Bojhan’s picture

Issue tags: -Needs usability review

This is not in line with our UI standards, were we explicitly avoid words such as "Please" and/or other forms of asking the user to apply a certain emotional state.

If users are logged in with this account it makes sense, in all other cases I am not sure about special casing it?

We can do something much more friendly and more explicit about which change might lock them out?

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

daniel.nitsche’s picture

Status: Needs review » Needs work
deepakkumar14’s picture

Version: 8.5.x-dev » 8.6.x-dev
FileSize
77.25 KB
80.85 KB

Drupal_set_message is deprecated and replaced by Messenger service.

heykarthikwithu’s picture

Yes, drupal_set_message could be replaced with Messenger service.. Bit of amend in the #18 patch since it includes .lock file changes as well..

In #9 drupal_set_message is added, instead Messenger Service is amended..

heykarthikwithu’s picture

Status: Needs work » Needs review

The last submitted patch, 18: add_missing_help_text-19879-10.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

ranjith_kumar_k_u’s picture

Re-rolled for 9.2

sonam.chaturvedi’s picture

Assigned: Unassigned » sonam.chaturvedi
sonam.chaturvedi’s picture

Assigned: sonam.chaturvedi » Unassigned
FileSize
26.33 KB
37.46 KB

Verified and tested patch#27. Patch applied successfully.

Testing steps:
1. Login as admin, after applying patch
2. Goto "/user/1/edit" page
3. Check warning message "Be careful, you are editing the admin user. Changes made here could lock you out of your site completely." is displayed.

Test Result: Warning message "Be careful, you are editing the admin user. Changes made here could lock you out of your site completely." is displayed on "/user/1/edit" page

RTBC +1

guilhermevp’s picture

FileSize
11.92 KB

Hi @sonam.chaturvedi, thanks for the review! There is no need to assign yourself doing reviews cause issue may need multiple reviews to assure quality or discuss matters of the solution - especially in core. That said, very nice and detailed review!

I'm adding +1 to RTBC, tested it, works as intended and is a nice warning to have and helps user inclusiveness.

user warning success.

xmacinfo’s picture

Status: Needs review » Reviewed & tested by the community

Please switch to RTBC whenever you feel that you reviewed and tested the patch.

Based on #29 and #30, switched to RTBC.

quietone’s picture

Status: Reviewed & tested by the community » Needs work
Related issues: +#540008: Add a container parameter that can remove the special behavior of UID#1

Reading the issue I don't see that this point from from the usability review in #14 has been addressed.

We can do something much more friendly and more explicit about which change might lock them out?

And I must admit I had the same thought when I read the message.

And should this be changed in anticipation of #540008: Add a container parameter that can remove the special behavior of UID#1?

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

guilhermevp’s picture

Taking in consideration comment #33, should we wait the commit of issue #540008: Add a container parameter that can remove the special behavior of UID#1, to update this documentation accordingly?

vikashsoni’s picture

Applied patch working fine and applied successfully
After patch warning message added successfully.
For ref sharing screenshots.....

quietone’s picture

@vikashsoni, Including a screenshot and duplicating the work of others is not necessary and does not help resolve an issue. Therefore removing credit per How is credit granted for Drupal core issues.

heykarthikwithu’s picture

Issue tags: +Novice

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

dharmeshmertwal’s picture

Adding patch

dharmeshmertwal’s picture

Status: Needs work » Needs review
heykarthikwithu’s picture

@dharmeshmertwal Instead of using the drupal service directly, best approach is to use Dependency injection and attach messenger service.

apaderno’s picture

Issue summary: View changes
Status: Needs review » Needs work

I am changing status as per previous comment.

apaderno’s picture

Title: Add missing help text for user.module » Show a warning when the account for user #1 is edited
Issue summary: View changes
Issue tags: -Help text

I am editing the IS, since this issue isn't about adding help text but showing a warning when the account for user #1 is edited.

Since Drupal introduced the administrator role, should not the warning be shown when the account for a user with that role is edited? By default that is the role assigned to user #1.

Are there edits for which this warning should be shown? I won't show it when the contact settings are changed.

Since Drupal is going to stop to handle user #1 in a special way, does showing this warning still make sense?

cilefen’s picture

Indeed. As currently written this is a vestigial issue that is wasting contributors’ time.

dharmeshmertwal’s picture

Status: Needs work » Needs review
FileSize
2.53 KB
2.47 KB

Adding new patch

rajandro’s picture

Issue tags: +phpcs

Moving this backward from Needs Review as the patch has the phpcs error. However, apart from this, the point mentioned on #14 (reminded in #32) has not been addressed yet.

Also, as per the comment on #44 and #45, What can be done to move this forward?

rajandro’s picture

Status: Needs review » Needs work
pooja saraah’s picture

Fixed Failed Commands against #46
Attached interdiff

cilefen’s picture

Status: Needs work » Postponed (maintainer needs more info)
Issue tags: -Documentation, -Novice, -phpcs

I will begin by removing tags that attract the wrong kind of attention to the issue.

Please stop posting patches here until someone refocuses this issue.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

apaderno’s picture

Comment #14 has not been addressed.

If users are logged in with this account it makes sense, in all other cases I am not sure about special casing it?

If the user #1 account is edited by a user administrator, Changes made here could lock you out of your site completely. does not make much sense, as the edited account is not the account used to log in.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.