Skip to content

2.0.x - #1

Closed
protitude wants to merge 11 commits into
1.0.xfrom
2.0.x
Closed

2.0.x#1
protitude wants to merge 11 commits into
1.0.xfrom
2.0.x

Conversation

@protitude

Copy link
Copy Markdown
Collaborator

Describe context / purpose for this PR

Shentity Tweaks

Issue link

#1172

Any other related PRs?

Link to MultiDev instance

http://md-1172-ucbsub-oit.pantheonsite.io

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the shentity Drupal module to support newer Google Sheets “full CSV URL” sharing, deprecating the older “key” approach and adjusting how rendered sheet output is stored/displayed.

Changes:

  • Add a new full_key base field (and deprecate key) for storing the full Google “output=csv” URL.
  • Update presave behavior to fetch sheet content using full_key and hide legacy form fields.
  • Adjust rendered table output (randomized table ID / new CSS class) and change GSS shortcode rendering.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/Plugin/PullGoogleSheet.php Accepts full Google URL input, passes a new flag to the Sheets API call, and randomizes rendered table IDs/classes.
src/Entity/Shentity.php Deprecates key, introduces required full_key, and relaxes sheet_number requirement.
shentity.module Switches presave to use full_key and hides deprecated fields on the shentity form.
shentity.deploy.php Adds a deploy hook to add/populate full_key for existing entities.
modules/gss/src/Plugin/Shortcode/GssShortcode.php Changes shortcode output from check_markup() to an inline template rendering approach.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread shentity.deploy.php
Comment thread src/Plugin/PullGoogleSheet.php Outdated
Comment thread src/Plugin/PullGoogleSheet.php Outdated
Comment thread shentity.module Outdated
Comment thread shentity.module Outdated
Comment thread shentity.deploy.php
Comment thread src/Entity/Shentity.php Outdated
protitude and others added 6 commits February 11, 2026 11:33
Updated url check

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Valid digit check

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@protitude protitude closed this Feb 11, 2026
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.

2 participants