Skip to content

fix: update accessibility data processing and opportunity creation #924

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

Merged
merged 3 commits into from
Jun 3, 2025

Conversation

dmaurya929
Copy link
Contributor

@dmaurya929 dmaurya929 commented Jun 2, 2025

  • Modified getObjectKeysFromSubfolders to include a storagePrefix parameter for better flexibility in S3 path management.
  • Refactored createAccessibilityOpportunity
  • Updated tests to reflect changes in the accessibility opportunity creation logic and ensure proper functionality.
  • Aligned storage/cleanup mechanism with the site

Copy link

github-actions bot commented Jun 2, 2025

This PR will trigger a patch release when merged.

@dmaurya929 dmaurya929 requested a review from nit23uec June 2, 2025 13:01
@dmaurya929 dmaurya929 force-pushed the form-accessibility-version branch from 440f663 to 61adc15 Compare June 2, 2025 13:06
* @returns {Promise<void>}
*/
// eslint-disable-next-line max-len
export default async function handler(message, context) {
export async function createOpportunity(auditId, siteId, a11yData, context) {
Copy link
Contributor

Choose a reason for hiding this comment

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

is this function used anywhere outside this module too?

- Modified `getObjectKeysFromSubfolders` to include a `storagePrefix` parameter for better flexibility in S3 path management.
- Refactored `createAccessibilityOpportunity` to streamline the process of creating accessibility opportunities, including improved error handling and logging.
- Updated tests to reflect changes in the accessibility opportunity creation logic and ensure proper functionality.
- Removed deprecated references to `formA11yData` in the scraping utility to simplify data handling.
@dmaurya929 dmaurya929 force-pushed the form-accessibility-version branch from 61adc15 to 21853e9 Compare June 2, 2025 19:37
@dmaurya929 dmaurya929 requested a review from nit23uec June 3, 2025 06:23
@nit23uec nit23uec merged commit 6199178 into main Jun 3, 2025
11 checks passed
@nit23uec nit23uec deleted the form-accessibility-version branch June 3, 2025 10:14
solaris007 pushed a commit that referenced this pull request Jun 3, 2025
## [1.97.6](v1.97.5...v1.97.6) (2025-06-03)

### Bug Fixes

* **forms-a11y:** update accessibility data processing and opportunity creation ([#924](#924)) ([6199178](6199178))
@solaris007
Copy link
Member

🎉 This PR is included in version 1.97.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants