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

[Ready for review] update UI to search foreach stack #134

Merged
merged 3 commits into from
Feb 1, 2024

Conversation

darinyu
Copy link
Contributor

@darinyu darinyu commented Jan 19, 2024

Requirements for a pull request

Fill out the template below. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.

  • [ X ] Unit tests related to the change have been updated
  • [ X ] Documentation related to the change has been updated

Description of the Change

This is to surface the changes to search for foreach tasks (related PR in metaflow and metaflow-service).

Similar to artifact search, this is behind flags and default to off.

Alternate Designs

-

Possible Drawbacks

-

Verification Process

Verified that search box works by searching "key" or "key=value".

Release Notes

Added option to search for foreach argument and value to identify task faster.

Metaflow-UI (3)

@darinyu darinyu changed the title update UI to search foreach stack [Ready for review] update UI to search foreach stack Jan 19, 2024
export const parseSearchValue = (searchValue: string): SearchTerm | null => {
const scope: string[] = [];
if (FEATURE_FLAGS.ARTIFACT_SEARCH) {
scope.push('ARTIFACT');
Copy link
Collaborator

Choose a reason for hiding this comment

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

What do these strings mean? Can we use an enumerator or symbol for them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We use feature flag to control whether we want to search for artifact or foreach (flag is by default false, and no search box will show)

the value of this "scope" will be parsed in backend, and filter tasks accordingly.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If there are a limited set of possible values, it would be nice to restrict the type to those values, rather than allow any string

@romain-intel romain-intel merged commit 1013015 into master Feb 1, 2024
3 checks passed
@romain-intel romain-intel deleted the test_search_artifact branch February 1, 2024 08:54
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.

None yet

3 participants