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

1.0.0-beta8 release #100

Merged
merged 41 commits into from
Dec 10, 2024
Merged

1.0.0-beta8 release #100

merged 41 commits into from
Dec 10, 2024

Conversation

Adnan-cds
Copy link
Contributor

What does this change?

New functionality:

Bug fix:

Adnan-cds and others added 30 commits March 7, 2024 14:36
The newly added local custodian code restriction should also be considered when
opting to use cached results from previous address lookups.  This is
particularly useful when there are multiple address lookup elements in a form
but they are using different local custodian codes.
Long term storage of Webform submission data in an off-site database.  Work in
progress.
Alternate Webform submission entity storage class for storing and retrieving
entities from the LTS database.
- PHP class to copy Webform submissions to Long term storage.
- Cron job to periodically copy Webform submissions to Long term storage.
- Deploy hook to copy Webform submissions to Long term storage.
- Personally Identifiable Information redaction before copying Webform
  submissions to Long term storage.
- A requirement hook implementation to warn against misconfiguration.
Fixed return value of LtsCopy::findCopyTargets().

Also, ensured that no Webform handlers run while Webform submissions are copied
to Long term storage.
Updated scope of Personally Identifiable Information.
Listing and viewing Webform submissions in Long term storage.
Fix for Personally Identifiable Information redaction.  Date elements from this
module were unaccounted for.
Spots and redacts any email address, postcode, and number within the text value
of a textarea field.
Tests following functionalities:
- LtsCopy's ability to copy both new and existing Webform submissions.
- LtsStorageForWebformSubmission's ability to copy into the LTS database.
- PIIRedactor's ability to correctly identify which Webform fields should be
  redacted.
PHPStan is incorrectly inferring the type of the $entity_type object used within
_localgov_forms_lts_get_webform_submission_storage_schema().

Inferred type is Drupal\Core\Entity\EntityTypeInterface.
Expected type is Drupal\Core\Entity\ContentEntityTypeInterface.
Actual type is Drupal\Core\Entity\ContentEntityType which is an instance of
Drupal\Core\Entity\ContentEntityTypeInterface.
…ddev-testing

Feature/long term storage ddev testing
The address lookup validation process was loosing existing form error messages
set by other parts of a form.  Some of its own error messages also got lost.

WIP.
The LocalGov address lookup element should not tamper with error messages raised
by other elements.  It should also remain inactive when none of its subelements
are marked as required.
The address selection dropdown was not appearing after a form submission error
involving the address lookup element.

Also:
- removed some unused and commented out Javascript code.
- improved code comments.
Updated error message text in test code to match updated error handling.
We should have a choice of PII redaction plugins before saving Webform
submissions in the long term storage database.

WIP.
Adnan-cds and others added 11 commits October 25, 2024 19:01
Moved PII redaction functionality from the localgov_forms_lts submodule into the
localgov_forms module in the form of a plugin.
Adding the `localgov_forms_lts:copy` Drush command.  This command copies all
existing Webform submissions into the Long Term Storage (LTS).  This is
particularly useful soon after the localgov_forms_lts module has been installed.
A config form for:
- Activating or deactivating copying to LTS database.
- Selecting a PII redactor plugin if PII redaction is necessary.
These constants represent the newly added localgov_forms_lts module
configuration.
Adding custom error messages to several subelements of the Address lookup
element.  This is for better UX.
Selecting an address following lookup and then manually altering the selected
address skipped validation.  Fixed now.
Feature: Long term storage of Webform submission data
@finnlewis
Copy link
Member

@Adnan-cds are we happy to push ahead and release this?

@finnlewis
Copy link
Member

@andybroomfield will try to find time to test this too.

@finnlewis finnlewis merged commit 43d1e6a into release-1.x Dec 10, 2024
8 checks passed
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