Skip to content

chore(ui): make checkstyle green - #32233

Merged
harsh-vador merged 3 commits into
fix/ui-checkstyle-eslint-pr-report-2.0from
fix-checktyle-2-0
Aug 28, 2026
Merged

harsh-vador merged 3 commits into
fix/ui-checkstyle-eslint-pr-report-2.0from
fix-checktyle-2-0

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes checkstyle

I worked on ... because ...

Type of change:

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

High-level design:

N/A — small change.

Tests:

Use cases covered

Unit tests

Backend integration tests

Ingestion integration tests

Playwright (UI) tests

Manual testing performed

UI screen recording / screenshots:

Not applicable.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • 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.
  • For UI changes: I attached a screen recording and/or screenshots above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

Greptile Summary

This PR performs UI checkstyle cleanup without changing application behavior.

  • Reorders imports in Playwright and frontend utility files.
  • Removes an unused import from the certification component.
  • Removes obsolete ESLint suppression comments across components, tests, and service setup pages.

Confidence Score: 5/5

The PR appears safe to merge because its changes are limited to import organization and removal of obsolete lint suppressions.

The changed code preserves all runtime expressions, component props, hook dependencies, and test behavior, and no blocking or non-blocking defect remains.

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/src/components/BlockEditor/Extensions/File/FileNodeView.tsx Removes obsolete accessibility-rule suppression comments without changing the rendered media elements.
openmetadata-ui/src/main/resources/ui/src/pages/AddServicePage/AddServicePage.component.tsx Removes an obsolete hook-dependency suppression while preserving the effect and dependency array.
openmetadata-ui/src/main/resources/ui/src/pages/EmbeddedAddServicePage/EmbeddedAddServicePage.component.tsx Mirrors the nonfunctional suppression cleanup in the embedded service setup flow.
openmetadata-ui/src/main/resources/ui/src/components/common/Icon/Icon.tsx Removes an obsolete accessibility-rule suppression without changing image lifecycle handling.
openmetadata-ui/src/main/resources/ui/src/components/ContextCenter/DocumentsView/DocumentFolderView.component.tsx Removes obsolete array-index-key suppressions from fixed-length loading placeholders.
openmetadata-ui/src/main/resources/ui/src/utils/SearchClassBase.ts Reorders named imports only, with no runtime or type-level behavior change.

Reviews (1): Last reviewed commit: "chore(ui): make checkstyle green" | Re-trigger Greptile

IceS2 and others added 3 commits August 28, 2026 12:12
…ta (#31882) (#32227)

pytest orders unittest TestCase methods alphabetically, so
test_list_entity_profiles runs first -- before test_profiler_workflow has
created any profile. The module sets TestLoader.sortTestMethodsUsing = None
to force definition order, but that only affects unittest's own loader:
pytest collects TestCase methods itself and ignores it. Verified against an
unmodified checkout -- collection still yields list_entity_profiles first
with that line in place, so it has never had any effect here.

The test still passed, because it asserts on a global 24h window across
every table rather than on data it owns, and hard-deleted tables used to
leak their profiler rows into that window. #31556 stopped that leak (issue
#27041), and the latent ordering bug surfaced: shard-2 now fails with
"0 not greater than 0" on every PR that actually runs the ingestion
integration matrix, blocking the merge queue. PRs that do not touch
ingestion skip the matrix and report green, which is why this looked
branch-specific rather than repo-wide.

Run the profiler in setUpClass, where fixture data belongs, so no test
depends on another's ordering. Drop the ineffective loader hack, and turn
the `if profiles_all.entities:` guard into an assertion -- that guard
swallowed an empty unfiltered listing and hid which of the two calls was
actually empty, which is the signal needed to diagnose this.

Co-authored-by: Himanshu Khairajani <46777429+Khairajani@users.noreply.github.com>
@harsh-vador harsh-vador self-assigned this Aug 28, 2026
@harsh-vador
harsh-vador requested a review from a team as a code owner August 28, 2026 10:40
@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Aug 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added the UI UI specific issues label Aug 28, 2026
@gitar-bot

gitar-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Checkstyle violations resolved in the UI. No issues found.

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@github-actions

Copy link
Copy Markdown
Contributor

❌ UI Checkstyle Failed

❌ ESLint + Prettier + Organise Imports (src)

One or more source files have linting or formatting issues.

❌ Playwright - Guardrails + ESLint + Prettier + Organise Imports

Either a Playwright test file has linting/formatting issues, or a guardrail check failed: ESLint rule unit tests, a new guardrail violation, a stale suppression entry (its violation was fixed but the baseline was not pruned), a blanket eslint-disable, or a stale generated rule table. For the guardrail cases run yarn lint:playwright:suppressions in openmetadata-ui/src/main/resources/ui and commit the pruned eslint-suppressions.json, then yarn test:eslint-rules && node scripts/generate-playwright-rule-table.mjs --check.

Affected files

error Command "test:eslint-rules" not found.

❌ Core Components - I18n Sync

Core-components t() keys, locale files, or language-set are out of sync. Run yarn check-i18n-all locally.

❌ Tailwind Audit

Hardcoded Tailwind values found. Use a design-system utility (run yarn tw-audit:report for the token each value maps to).

❌ Antd + Less Deprecation Guard

A new antd import or new .less file was added. Use UntitledUI + Tailwind for new work.

Affected files

at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)
at Function._load (node:internal/modules/cjs/loader:1211:37)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)
at node:internal/main/run_main_module:36:49 {


Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

@github-actions

github-actions Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 67%
67.1% (80526/120005) 51.61% (49373/95664) 52.5% (14724/28041)

@harsh-vador
harsh-vador changed the base branch from 2.0 to fix/ui-checkstyle-eslint-pr-report-2.0 August 28, 2026 10:58
@harsh-vador
harsh-vador requested a review from a team as a code owner August 28, 2026 10:58
@harsh-vador
harsh-vador merged commit dce58c0 into fix/ui-checkstyle-eslint-pr-report-2.0 Aug 28, 2026
116 of 134 checks passed
@harsh-vador
harsh-vador deleted the fix-checktyle-2-0 branch August 28, 2026 10:58
@sonarqubecloud

Copy link
Copy Markdown

This branch was previously deployed

1 inactive deployment
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.

3 participants