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

UHF-6666: Search filters #371

Conversation

jeremysteerio
Copy link
Contributor

@jeremysteerio jeremysteerio commented Oct 3, 2022

UHF-6666: Search filters

Added filters to LinkedEvents React-version

What was done

  • Added filters according to specs
  • Filters rendered conditionally based on paragraph choices
  • Selecting stuff from filters and submitting creates an API call to LinkedEvents and renders results

How to install

  • Get any instance up and running
  • Get this branch: composer require drupal/helfi_platform_config:dev-UHF-6666-search-filters
  • Get the style branch for HDBT: composer require drupal/hdbt:dev-UHF-3128-sote-linkedevents-filtering
  • Run make drush-updb
  • Run make drush-cr

How to test

  • Create or edit a landing- or standard page.
  • Add an Events paragraph. Fill fields.
    • API URL = https://tapahtumat.hel.fi/fi/events?text=jooga
  • Visit the page.
  • Test the filters:
    • Changing filter values shouldn't execute search, only clicking the submit button
    • Test that filters work as expected
  • "Lataa lisää" will be removed. At this point, only 5 first events will be shown, regadless of result count. This will be handled later with Pagination component.

Other PRs

@sakkelaaksonen-siili sakkelaaksonen-siili self-assigned this Oct 3, 2022
@sakkelaaksonen-siili
Copy link

Alku- ja loppupäivämäärän poistaminen näppäimistöllä kaataa koko react-palikan.

Aseta alku- ja loppupäivämäärä.
Poista alku- tai loppupäivämäärä näppäimistöllä. Paina vaikka backspacea , hitaasti, yksi kerrallaan, kunnes saat.

"Uncaught RangeError: Invalid time value"

@sakkelaaksonen-siili
Copy link

Jos kaikki filtterit laittaa pois päältä, Filter Events -otsikko on silti näkyvillä

@sakkelaaksonen-siili
Copy link

Tuloksia tulee aina vain viisi, vaikka sanoo että tulis 30 tai mitä vaan. Onko paginaatiota olemassa tässä ollenkaan?

@sakkelaaksonen-siili
Copy link

päivämääriä ei voi vaihtaa kirjoittamalla koska koko roska kaatuu kun päiuvämäärän validointia ei hanskata ollenkaan. mutta kenttä silti antaa kirjoittaa.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 6 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sakkelaaksonen-siili sakkelaaksonen-siili force-pushed the UHF-3128-sote-linkedevents-filtering branch from b406142 to dda5eda Compare October 12, 2022 11:33
@sakkelaaksonen-siili sakkelaaksonen-siili marked this pull request as draft October 12, 2022 13:05
@rpnykanen rpnykanen deleted the UHF-6666-search-filters branch February 13, 2023 07:02
@rpnykanen rpnykanen restored the UHF-6666-search-filters branch February 13, 2023 07:02
@khalima khalima deleted the UHF-6666-search-filters branch May 24, 2023 13:47
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