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

fix: update how asl and lsq filters are applied to submissions #66

Merged
merged 3 commits into from
Jul 18, 2024

Conversation

chosww
Copy link
Contributor

@chosww chosww commented Jul 12, 2024

  • This pull request has been linted by running npm run lint without errors
  • This pull request has been tested by running npm run start and reviewing affected routes
  • This pull request has been built by running npm run build without errors
  • This isn't a duplicate of an existing pull request

Description

Sign language filters were not working as expected because previously we were expecting to get separate submissions for ASL and LSQ videos. Add additional condition to submissions to check if asl or lsq video is linked.

Steps to test

  1. Go to the submissions page and check language filter to ASL
  2. See only submissions with ASL videos are showing up from the filtering

@chosww chosww added the bug Something isn't working label Jul 12, 2024
@chosww chosww self-assigned this Jul 12, 2024
@chosww chosww requested a review from greatislander July 12, 2024 16:58
Comment on lines 12 to 17
{%- if submission.data.youtube.interpretation -%}
{{ 'asl' if submission.data.youtube.lang === 'en' else 'lsq' }},
{{ 'asl' if submission.data.youtube.lang === 'en' and submission.data.youtube.signLanguageUrl }},
{%- endif -%}
{%- if submission.data.youtube.interpretation -%}
{{ 'lsq' if submission.data.youtube.lang === 'fr' and submission.data.youtube.signLanguageUrl }},
{%- endif -%}
Copy link
Member

Choose a reason for hiding this comment

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

You probably can consolidate this a little bit as there are two if clauses that do the same thing (check if there's an interpretation).

@chosww chosww requested a review from greatislander July 18, 2024 14:36
@greatislander greatislander merged commit 331b66e into inclusive-design:main Jul 18, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants