Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHS-5811: Add "logout" button to sites #21

Merged
merged 8 commits into from
Dec 3, 2024
Merged

Conversation

codechefmarc
Copy link
Contributor

@codechefmarc codechefmarc commented Oct 2, 2024

READY FOR REVIEW

Summary

  • Adds a separate logout block

Review By (Date)

2024-10-07

Criticality

  • How critical is this PR on a 1-10 scale? 3

Urgency

  • Low

Review Tasks

Setup tasks and/or behavior to test

  1. Full testing environment located here: SHS-5811: Add logout button to sites SU-HSDO/suhumsci#1641

Steps to Test

  1. Login to the site as an admin
  2. Visit the Block layout page Block page: /admin/structure/block
  3. Click "Place block" in the footer region
  4. Choose the "SAML SUNetID Logout Block"
  5. Do not display the title, then click "Save Block"

Screenshot 2024-10-15 at 4 06 34 PM

  1. Verify on the front-end, while logged in, that there is now a logout button

Screenshot 2024-10-15 at 4 05 15 PM

  1. Click o the logout button and verify that it correctly logs you out of the site

Site Configuration Sync

  • Is there a config:export in this PR that changes the config sync directory?
  • No

Front End Validation

Backend / Functional Validation

Code

  • Are the naming conventions following our standards?
  • Does the code have sufficient inline comments?
  • Is there anything in this code that would be hidden or hard to discover through the UI?
  • Are there any code smells?
  • Are tests provided? eg (unit, behat, or codeception)

Code security

General

  • Is there anything included in this PR that is not related to the problem it is trying to solve?
  • Is the approach to the problem appropriate?

Affected Projects or Products

  • Does this PR impact any particular projects, products, or modules?

Associated Issues and/or People

  • JIRA ticket(s)
  • Other PRs
  • Any other contextual information that might be helpful (e.g., description of a bug that this PR fixes, new functionality that it adds, etc.)
  • Anyone who should be notified? (@mention them here)

Resources

@codechefmarc codechefmarc requested a review from pookmish October 15, 2024 23:13
@codechefmarc
Copy link
Contributor Author

I've split the logout block into its own plugin and reverted the changes in the login block plugin. Ready for review.

@codechefmarc codechefmarc requested a review from pookmish October 21, 2024 20:29
@codechefmarc
Copy link
Contributor Author

@pookmish - this is ready for a re-review. I've added a separate logout block and added a test for the new block. Thank you!

Copy link
Contributor

@pookmish pookmish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as described. Please revert the composer.json and I'll merge it in.

@codechefmarc
Copy link
Contributor Author

Okay, reverted, ready to go.

@pookmish
Copy link
Contributor

pookmish commented Dec 3, 2024

Thanks @codechefmarc , FWIW, you shouldn't need to change the composer even in a forked repo. If you designate the VCS repository in the stack composer, it should use that instead of the packagist one. We've done that to fork drupal.org modules a couple times when upgrading to D9

@pookmish pookmish merged commit 3c0a690 into SU-SWS:1.x Dec 3, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants