Skip to content

Conversation

@isaachilly
Copy link
Collaborator

@isaachilly isaachilly commented Nov 25, 2025

Introduces a raw text filter for environment IDs in the environments overview.

Adds tests to verify filtering by single and multiple IDs.

I have a JIRA ticket

  • branch and/or PR name(s) include(s) JIRA ID
  • issue has "Fix version" assigned
  • issue "Status" is set to "In review"
  • PR labels are selected

Notable changes for users:

  • Can filter environments by ID now on environments overview page

Notable changes for developers:

  • N/A

Changes made to the database:

  • N/A

Integrated the filtersPanelPopover component into the environment overview UI.

Added a test to verify that the filtering panel can be successfully opened.
Adds FilteringModel to EnvironmentOverviewModel, enabling filter state management.
Introduces a raw text filter for environment IDs in the environments overview.

Adds tests to verify filtering by single and multiple IDs.
@isaachilly isaachilly self-assigned this Nov 25, 2025
@isaachilly isaachilly requested a review from graduta as a code owner November 25, 2025 13:52
@isaachilly isaachilly added frontend javascript Pull requests that update Javascript code labels Nov 25, 2025
@codecov
Copy link

codecov bot commented Nov 25, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 45.45%. Comparing base (c8e9fde) to head (caec672).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...onments/ActiveColumns/environmentsActiveColumns.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2028      +/-   ##
==========================================
- Coverage   45.47%   45.45%   -0.03%     
==========================================
  Files        1023     1023              
  Lines       17050    17051       +1     
  Branches     3092     3092              
==========================================
- Hits         7754     7750       -4     
- Misses       9296     9301       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Removed the overridden getLoadParameters method from EnvironmentOverviewModel.
await fillInput(page, selector, inputValue, ['change']);
await waitForTableLength(page, expectedIds.length);
const table = await page.$$('tbody tr');
expect(table.length).to.equal(expectedIds.length);
Copy link
Member

Choose a reason for hiding this comment

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

As far as I can tell, the waitForTableLength will already confirm the expected number of environments, so there is no need for this check.

I would even go further (as front-end tests tend to be quite slow), that the placeholder, we check it once at the start of the test, and then for each reset of filters, we do not recheck it to save just a bit of time.

Houwie7000
Houwie7000 previously approved these changes Nov 26, 2025
Eliminated an unnecessary table length check that could slow down test speed.
graduta
graduta previously approved these changes Dec 5, 2025
Changed the filter input and expected results for a test case with filtering on env IDs.

This is because test inputs following each other that result in the same number of rows in the table will cause incorrect functioning of the waitForTableLength whose job it is is to wait for the filter to be applied.
@graduta graduta merged commit bf9d5f4 into main Dec 5, 2025
21 of 24 checks passed
@graduta graduta deleted the feature/O2B-1490/Add-filtering-by-env-ids-to-environment-filtering-panel branch December 5, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend javascript Pull requests that update Javascript code

Development

Successfully merging this pull request may close these issues.

4 participants