Skip to content

[O2B-1577] Rename include.byName filter to permittedNonPhysicsNames#2128

Open
NarrowsProjects wants to merge 4 commits into
mainfrom
improv/O2B-1577/Rename-the-include.byName-filter-in-data-passes-overview-model-to-includeName
Open

[O2B-1577] Rename include.byName filter to permittedNonPhysicsNames#2128
NarrowsProjects wants to merge 4 commits into
mainfrom
improv/O2B-1577/Rename-the-include.byName-filter-in-data-passes-overview-model-to-includeName

Conversation

@NarrowsProjects
Copy link
Copy Markdown
Collaborator

@NarrowsProjects NarrowsProjects commented Apr 9, 2026

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:

  • N/A

Notable changes for developers:

  • The include.byName filter is now called permittedNonPhysicsNames
  • The first ~30 lines of code in datapassService.getAll have been refactored for readability

Changes made to the database:

  • N/A

@NarrowsProjects NarrowsProjects self-assigned this Apr 9, 2026
@NarrowsProjects NarrowsProjects requested a review from graduta as a code owner April 9, 2026 14:06
@NarrowsProjects NarrowsProjects added backend javascript Pull requests that update Javascript code labels Apr 9, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 9, 2026

Codecov Report

❌ Patch coverage is 88.88889% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 45.71%. Comparing base (469ef0f) to head (f54e70d).

Files with missing lines Patch % Lines
...ataPasses/ActiveColumns/dataPassesActiveColumns.js 0.00% 1 Missing ⚠️
lib/server/controllers/dataPasses.controller.js 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2128      +/-   ##
==========================================
- Coverage   45.88%   45.71%   -0.17%     
==========================================
  Files        1035     1035              
  Lines       17167    17165       -2     
  Branches     3124     3123       -1     
==========================================
- Hits         7877     7847      -30     
- Misses       9290     9318      +28     

☔ 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.

@NarrowsProjects NarrowsProjects force-pushed the improv/O2B-1577/Rename-the-include.byName-filter-in-data-passes-overview-model-to-includeName branch from 893ed68 to 18fb34c Compare May 26, 2026 14:27
* @property {number[]} [filter.simulationPassIds] simulationPass identifier to filter with
* @property {number[]} [filter.ids] data passes identifier to filter with
* @property {string[]} [filter.names] data passes names to filter with
* @property {boolean} [filter.includeByName] list of tokens in data passes names which indicate
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I believe this doc should be updated as well, both its type and name

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, I missed that one

return helper.error('byName cannot have more than 10 characters');
}
const nameTokens = value?.split(',');
// 'debug,test' or the reverse have a length of 10
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What if instead of the hardcoded value 10, we use the length of the array + commas?
So that in the future, if it increases we are covered

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

Labels

backend frontend javascript Pull requests that update Javascript code

Development

Successfully merging this pull request may close these issues.

2 participants