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

Ticket filters: initial filters #5374

Open
5 tasks
sanmont3drepo opened this issue Jan 29, 2025 · 0 comments
Open
5 tasks

Ticket filters: initial filters #5374

sanmont3drepo opened this issue Jan 29, 2025 · 0 comments
Assignees

Comments

@sanmont3drepo
Copy link
Contributor

sanmont3drepo commented Jan 29, 2025

Description

Product issue: https://github.com/3drepo/3D-Repo-Product-Team/issues/521
Parent issue: #5188

In the ticket list we need to show relevant tickets. That means showing the tickets that are being filtered by query string and when we dont have a query string

  • When there's a query param ticketSearch that is an array of ticket codes. We should set a filter by ticket codes using the param.
When there's no query param the initial filtering should filter by not completed statuses.

This means filtering status values in Status (basic property) and in safetibase:'Treatment Status'

Completed in Status basic property

  • For the basic property Status get the status config from the template config (template.config.status)
  • From the status config get the names with types 'done' and 'void'
  • Set a filter to Status not equal the previously obtained names.

Completed in safetibase Treatment Status property

  • safetibase:'Treatment Status' set the filter to not_equal ['Agreed (Fully)', 'Void']

Goals

  • As a user I want to be see relevant tickets initially

Tasks

  • Rename HandleTicketsCardSearchParams to HandleInitialFilters or InitialFiltersSetter or something more relevant like that
  • Update HandleTicketsCardSearchParams by changing how filters are set. This is an array with ticket codes so set the ticket code filter with this equals this array
  • Remove 'ticketTemplates' and 'ticketCompleted' from the query handling
  • ModifyHandleTicketsCardSearchParams to set the completed filter(as specified earlier) if there is no 'ticketSearch' param
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants