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

Add ability to query schedules #2272

Merged
merged 15 commits into from
Aug 21, 2024

Conversation

laurakwhit
Copy link
Contributor

@laurakwhit laurakwhit commented Aug 19, 2024

Description & motivation 💭

Adds ability to query schedules for custom search attributes.

Screenshots (if applicable) 📸

Before After
Screenshot 2024-08-16 at 9 03 10 PM Screenshot 2024-08-16 at 8 34 23 PM Screenshot 2024-08-16 at 8 34 08 PM Screenshot 2024-08-16 at 8 33 50 PM
Screenshot 2024-08-16 at 9 03 24 PM Screenshot 2024-08-16 at 8 56 33 PM
Screenshot 2024-08-16 at 9 03 59 PM Screenshot 2024-08-16 at 9 00 35 PM
Screenshot 2024-08-19 at 12 18 18 PM Screenshot 2024-08-19 at 1 32 00 PM

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added updated

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

  • Verify Schedules can be filtered by custom search attributes and Schedule ID
  • Verify an error message is displayed if the query is malformed
  • Verify there is an empty state if
    • no Schedules are found that match the filter
    • no Schedules are found that match the Schedule Name search
    • no Schedules exist
  • Verify the Schedules table headers can be configured as expected

  • Verify the Workflows filter still works as expected
  • Verify the Workflows table headers can still be configured as expected

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

DT-2017

Docs

Any docs updates needed?

Copy link

vercel bot commented Aug 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
holocene ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2024 3:15pm

{#if !createDisabled && visibleItems.length}
{#if showActions}
<div class="w-96">
<Input
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wondering if we want to keep this client side search for now or just remove it? Filtering by Schedule Id should be available with the next release.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we remove it and add support for the scheduleId query. Can add a 1.25 server version guard on that option

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added ✔️

@laurakwhit laurakwhit marked this pull request as ready for review August 19, 2024 20:11
@laurakwhit laurakwhit changed the base branch from main to search-attributes-for-schedules August 21, 2024 15:07
@laurakwhit laurakwhit merged commit e8a7a6a into search-attributes-for-schedules Aug 21, 2024
4 checks passed
@laurakwhit laurakwhit deleted the DT-2017-query-schedules branch August 21, 2024 15:41
@laurakwhit laurakwhit mentioned this pull request Aug 21, 2024
3 tasks
laurakwhit added a commit that referenced this pull request Sep 10, 2024
* Schedule search attributes (#2241)

* Add search attributes to create schedule UI

* Add search attributes to edit schedule UI

* Fix search attribute inputs based on search attribute type

* Add search attributes to schedule view UI

* Use custom datetime input with UTC

* Small UI and copy fixes

* Fix attribute value to always update on attribute change

* Fix label spacing and update custom search attribute table to be list instead

* Update schedule advanced settings to be list

* Fix search attribute view/create/update

* Fix type

* Add expandable prop to search attribute Accordion

---------

Co-authored-by: Alex Tideman <[email protected]>

* Add ability to query schedules (#2272)

* Refactor FilterSearch to component for reuse on Schedules page

* Rename filter search to search attribute filter

* Make schedules table headers configurable

* Add back schedule name search input

* Fix responsiveness

* Only add starts with option to TextFilter if attribute is a Keyword

* Fix empty state

* update testId

* Add onError callback

* Remove schedule name search input

* Add search attribute type map

* Add ScheduleId filter option and rename table header

* Use Input required prop on schedule form

* Add isCloud check for ScheduleId

* Add unspecified search attribute type

---------

Co-authored-by: Alex Tideman <[email protected]>
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.

2 participants