OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Column tag filter works only per page instead of across entire table

Open nikhilchennam opened this issue 10 months ago • 15 comments

Affected module Does it impact the UI, backend or Ingestion Framework? UI

Describe the bug I have applied classification tags at the column level for a table that contains approximately 80 columns. These columns are paginated in the UI:

Page 1: First 50 columns Page 2: Remaining ~30 columns

When I use the column filtering icon to filter columns by a specific tag, the filter appears to work only on the currently visible page. For example: If I apply the tag filter while on Page 1, only matching columns from Page 1 are shown. Columns on Page 2 that have the same tag are not displayed unless I manually navigate to that page and reapply or view the filter there.

To Reproduce

Screenshots or steps to reproduce

Expected behavior The column tag filter should work across the entire table, returning all columns that match the selected tag, regardless of pagination.

Version:

  • OS: [e.g. iOS]
  • Python version:
  • OpenMetadata version: [e.g. 0.8]
  • OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ]

Additional context Slack reference-https://openmetadata.slack.com/archives/C02B6955S4S/p1766398625809029

nikhilchennam avatar Jan 06 '26 06:01 nikhilchennam

Hi @nikhilchennam! I'd like to tackle this bug — could you assign it to me? Thanks!

david-mamani avatar Apr 09 '26 02:04 david-mamani

Hi @nikhilchennam! I'd like to tackle this bug — could you assign it to me? Thanks!

david-mamani avatar Apr 09 '26 02:04 david-mamani

Hi @pmbrull @harshach @PubChimps , I reviewed this and confirmed it’s a valid issue.

Current behavior:

  • Columns are paginated from API.
  • Tag filter is applied only on currently loaded rows in current page.
  • So matches on other pages are missed.

Proposed fix:

  1. Move tag filtering to server-side (apply filter before pagination).
  2. Keep pagination/sorting/search behavior unchanged.
  3. Reset to page 1 when tag filter changes.

Validation:

  • Reproduce with a table having >1 page of columns and same tag across pages.
  • Verify filtered results include matches from all pages.
  • Add backend + UI tests for filtered total and pagination behavior.

If this approach sounds good, I can start implementing it and open my first PR soon.

Could you plz also assign this issue to me ?

hassaansaleem28 avatar Apr 09 '26 09:04 hassaansaleem28

can i try to fix it

susantedit avatar Apr 13 '26 03:04 susantedit

Hi @nikhilchennam @harshach 👋 I'd like to work on this issue.

My approach: Fix the column tag filter to work across all pages by fetching all columns lazily (only when the filter dropdown opens) and caching filtered results client-side — no extra API calls on every page change, and no backend modifications needed.

Requesting assignment. Would love to raise a PR shortly!

mohitjeswani01 avatar Apr 13 '26 20:04 mohitjeswani01

No, thats the right wya of doing, you need to delegate teh call to pagination and ColumnResource API to apply this ordering at the API level not on the UI

harshach avatar Apr 13 '26 20:04 harshach

No, thats the right wya of doing, you need to delegate teh call to pagination and ColumnResource API to apply this ordering at the API level not on the UI

Thank you @harshach! Understood — will implement the tag filtering at the ColumnResource API level and delegate pagination to the backend. Working on it now! 🙏

mohitjeswani01 avatar Apr 13 '26 21:04 mohitjeswani01

Hi @mohitjeswani01 thanks for asking, we had @david-mamani asked to be assigned to this issue first, so I have assigned him.

@david-mamani is this still something you'd like to work on? If so, we need you to provide a screen recording in your PR. Please make sure to verify with us that your are working on this issue, and build and test your code that it is solving this issue before submitting a PR

PubChimps avatar Apr 13 '26 21:04 PubChimps

Hi @PubChimps thanks for the update! I'm already working on the fix — implementing tag filtering at the ColumnResource API level as suggested by @harshach. Will include a screen recording in the PR. May I continue if possible ? 🙏

mohitjeswani01 avatar Apr 13 '26 21:04 mohitjeswani01

Hi @mohitjeswani01 thanks for asking, we had @david-mamani asked to be assigned to this issue first, so I have assigned him.

@david-mamani is this still something you'd like to work on? If so, we need you to provide a screen recording in your PR. Please make sure to verify with us that your are working on this issue, and build and test your code that it is solving this issue before submitting a PR

Hi @PubChimps! Yes, absolutely — I'm actively working on this. I'm in the final testing phase locally and will submit my PR within the next 24 hours, including the screen recording as requested. Thank you for keeping the assignment!

david-mamani avatar Apr 13 '26 21:04 david-mamani

Hi @PubChimps and @harshach !

I've just opened PR #27334 with the fix for this issue.

As requested, the tag filtering is now properly delegated to the ColumnResource API level instead of the UI, and the PR includes the complete screen recording demonstrating the fix.

Looking forward to your review! Let me know if any changes are needed.

david-mamani avatar Apr 14 '26 04:04 david-mamani

Thank you @david-mamani

Thank you to everyone for you interest in this issue but we will not be accepting new pr's for this issue at this time

PubChimps avatar Apr 16 '26 01:04 PubChimps

As discussed with @sonika-shah, she will review the PR for the backend changes. If everything looks good, we will merge the PR; otherwise, a new PR will be created to address the required changes.

Rohit0301 avatar Jun 04 '26 11:06 Rohit0301

@Rohit0301 any progress here? Let's review the PR and close it out.

aniketkatkar97 avatar Jun 08 '26 05:06 aniketkatkar97

@aniketkatkar97 review is pending from the @sonika-shah side

Rohit0301 avatar Jun 08 '26 13:06 Rohit0301