Skip to content

Search refactoring updates#23742

Merged
chirag-madlani merged 50 commits intoopen-metadata:mainfrom
harsh-vador:search-refactoring-updates
Oct 14, 2025
Merged

Search refactoring updates#23742
chirag-madlani merged 50 commits intoopen-metadata:mainfrom
harsh-vador:search-refactoring-updates

Conversation

@harsh-vador
Copy link
Copy Markdown
Contributor

@harsh-vador harsh-vador commented Oct 6, 2025

Describe your changes:

Fixes #22498

I worked on refactoring search to avoid AND and OR operators inside q params

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 7, 2025

The Python checkstyle failed.

Please run make py_format and py_format_check in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 8, 2025

The Python checkstyle failed.

Please run make py_format and py_format_check in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 8, 2025

The Python checkstyle failed.

Please run make py_format and py_format_check in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

await redirectToHomePage(page);
await followingSearchResponse;

await page.reload();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

WE are redirecting home and again reloading any reason for that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed this code

await expect(
page.locator('[data-testid="following-widget"]')
).toContainText(domain.data.displayName);
).toContainText(domain.data.displayName, { timeout: 15000 });
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We shouldn't be increasing timeout instead need to wait for proper API if possible

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed this code

await expect(
page.locator('[data-testid="following-widget"]')
).toContainText(subDomain.data.displayName);
).toContainText(subDomain.data.displayName, { timeout: 15000 });
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed this code

Comment on lines +258 to +261
await adminPage
.locator('.ant-select-item-option-content')
.getByText('Application bot role')
.click();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you check we can do it via testID?

* @param wildcardTerms - Optional record for wildcard queries
* @returns Query filter object for searchQuery API
*/
export const getTermQuery = (
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Add test for this function

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@sonarqubecloud
Copy link
Copy Markdown

@Prajwal214
Copy link
Copy Markdown
Contributor

@chirag-madlani @harsh-vador Will this be cherry picked in 1.10.2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search refactoring

8 participants