Skip to content

Conversation

@sherif-olaboye
Copy link
Contributor

JIRA link

https://hee-tis.atlassian.net/browse/TD-4893

Description

I added Q1Options property to Customisation class
I add Q1Options as a parameter in the GetFilterString method
I added a check to the GetFilterString method to clear the cookievalue where is neccessary

Screenshots

image


Developer checks

(Leave tasks unticked if they haven't been appropriate for your ticket.)

I have:

  • Run the formatter and made sure there are no IDE errors (see info on Text Editor settings to avoid whitespace changes)
  • Written tests for the changes (accessibility tests, unit tests for controller, data services, services, view models, etc)
  • Manually tested my work with and without JavaScript
  • Tested any Views or partials created or changed with Wave Chrome plugin and addressed any valid accessibility issues
  • Updated/added documentation in Confluence and/or GitHub Readme. List of documentation links added/changed:
  • Updated my Jira ticket with information about other parts of the system that were touched as part of the MR and have to be sanity tested to ensure nothing’s broken
  • Scanned over my pull request in GitHub and addressed any warnings from the GitHub Build and Test checks.

…rror when course admin field applied filters got deleted
…rror when course admin field applied filters got deleted
Copy link
Collaborator

@Auldrin-Possa Auldrin-Possa left a comment

Choose a reason for hiding this comment

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

The proposed solution does not seem appropriate. This may give error if we use number of admin fields with different option names.

Copy link
Contributor

@kevwhitt-hee kevwhitt-hee left a comment

Choose a reason for hiding this comment

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

As per Auldrin's comment. This looks like it will only partially fix the problem. There are 6 custom prompt fields / answers. I suggest we try to a generic approach of catching the error when applying filters, clearing the filters if there is an error and reloading page with cleared filters, if possible.

…/Fixes/TD-4893-Delegateactivities-viewcoursedelegatesresultedin500errorwhencourseadminfieldappliedfiltersgotdeleted
…rror when course admin field applied filters got deleted
…rror when course admin field applied filters got deleted
…rror when course admin field applied filters got deleted
@sherif-olaboye
Copy link
Contributor Author

The proposed solution does not seem appropriate. This may give error if we use number of admin fields with different option names.

Please kindly take a look at the latest push

@sherif-olaboye
Copy link
Contributor Author

As per Auldrin's comment. This looks like it will only partially fix the problem. There are 6 custom prompt fields / answers. I suggest we try to a generic approach of catching the error when applying filters, clearing the filters if there is an error and reloading page with cleared filters, if possible.

Please kindly take a look at the latest push

Copy link
Collaborator

@Auldrin-Possa Auldrin-Possa left a comment

Choose a reason for hiding this comment

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

Looks good, however some changes need to apply

  1. To CheckIfFilterisValid(+)
    • remove response param if not being used.
    • clearFilters param check can be handled by existingFilterString param. Can be removed. (Need to test)
  2. Duplicate filters should be handled within or outside of CheckIfFilterisValid(+)

@sherif-olaboye
Copy link
Contributor Author

Looks good, however some changes need to apply

  1. To CheckIfFilterisValid(+)

    • remove response param if not being used.
    • clearFilters param check can be handled by existingFilterString param. Can be removed. (Need to test)
  2. Duplicate filters should be handled within or outside of CheckIfFilterisValid(+)

Done

Copy link
Collaborator

@Auldrin-Possa Auldrin-Possa left a comment

Choose a reason for hiding this comment

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

This looks good to me.

@kevwhitt-hee kevwhitt-hee merged commit 8be64c1 into DLS-Release-v1.1.1 Dec 6, 2024
3 checks passed
@kevwhitt-hee kevwhitt-hee deleted the Develop/Fixes/TD-4893-Delegateactivities-viewcoursedelegatesresultedin500errorwhencourseadminfieldappliedfiltersgotdeleted branch December 6, 2024 17:14
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.

4 participants