Repository navigation
Fixes #7309 -- Implement testPlatform filter - #7599
Merged
Merged
Conversation
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
|
[open-metadata-ingestion] Kudos, SonarCloud Quality Gate passed! |
|
[OpenMetadata-Platform] Kudos, SonarCloud Quality Gate passed! |
Comment on lines
+2667
to
+2686
| if (entityType == null) { | ||
| String mysqlCondition = | ||
| String.format("%s AND json_extract(json, '$.testPlatforms') LIKE '%%%s%%' ", condition, testPlatform); | ||
| String psqlCondition = String.format("%s AND json->>'testPlatforms' LIKE '%%%s%%' ", condition, testPlatform); | ||
| return listBefore(getTableName(), getNameColumn(), mysqlCondition, psqlCondition, limit, before); | ||
| } | ||
|
|
||
| if (testPlatform == null) { | ||
| condition = String.format("%s AND entityType='%s' ", condition, entityType); | ||
| return listBefore(getTableName(), getNameColumn(), condition, condition, limit, before); | ||
| } | ||
|
|
||
| String mysqlCondition = | ||
| String.format( | ||
| "%s AND entityType='%s' AND json_extract(json, '$.testPlatforms') LIKE '%%%s%%' ", | ||
| condition, entityType, testPlatform); | ||
| String psqlCondition = | ||
| String.format( | ||
| "%s AND entityType='%s' AND json->>'testPlatforms' LIKE '%%%s%%' ", condition, entityType, testPlatform); | ||
| return listBefore(getTableName(), getNameColumn(), mysqlCondition, psqlCondition, limit, before); |
Contributor
There was a problem hiding this comment.
I think we can build the SQL query differently, and this could be applied to other methods and maybe also extracted into a separate method.
Suggested change
| if (entityType == null) { | |
| String mysqlCondition = | |
| String.format("%s AND json_extract(json, '$.testPlatforms') LIKE '%%%s%%' ", condition, testPlatform); | |
| String psqlCondition = String.format("%s AND json->>'testPlatforms' LIKE '%%%s%%' ", condition, testPlatform); | |
| return listBefore(getTableName(), getNameColumn(), mysqlCondition, psqlCondition, limit, before); | |
| } | |
| if (testPlatform == null) { | |
| condition = String.format("%s AND entityType='%s' ", condition, entityType); | |
| return listBefore(getTableName(), getNameColumn(), condition, condition, limit, before); | |
| } | |
| String mysqlCondition = | |
| String.format( | |
| "%s AND entityType='%s' AND json_extract(json, '$.testPlatforms') LIKE '%%%s%%' ", | |
| condition, entityType, testPlatform); | |
| String psqlCondition = | |
| String.format( | |
| "%s AND entityType='%s' AND json->>'testPlatforms' LIKE '%%%s%%' ", condition, entityType, testPlatform); | |
| return listBefore(getTableName(), getNameColumn(), mysqlCondition, psqlCondition, limit, before); | |
| StringBuilder mysqlCondition = new StringBuilder(); | |
| StringBuilder psqlCondition = new StringBuilder(); | |
| if (entityType != null) { | |
| mysqlCondition.append(String.format("%s AND json_extract(json, '$.testPlatforms') LIKE '%%%s%%' ", condition, testPlatform)); | |
| psqlCondition.append(String.format("%s AND json->>'testPlatforms' LIKE '%%%s%%' ", condition, testPlatform)); | |
| } | |
| if (testPlatform != null) { | |
| mysqlCondition.append(String.format("%s AND entityType='%s' ", condition, entityType)); | |
| psqlCondition.append(String.format("%s AND entityType='%s' ", condition, entityType)); | |
| } | |
| return listBefore(getTableName(), getNameColumn(), mysqlCondition.toString(), psqlCondition.toString(), limit, before); |
nahuelverdugo
approved these changes
Sep 21, 2022
yan-3005
added a commit
that referenced
this pull request
Oct 21, 2026
Matches Collate (#7599) and ai-platform main, which already run 12.1.14. 12.1.13 is where CVE-2026-19863 (jetty-security) and the jetty-client CVEs were fixed; 12.1.14 is the current patch on that line. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
yan-3005
added a commit
that referenced
this pull request
Oct 21, 2026
…ort) (#35885) * fix(security): bump logback to 1.5.38 and pin avatica-core to 1.29.0 (#34287) - logback-core/classic 1.5.36 -> 1.5.38 clears CVE-2026-13006 (code execution via Janino conditional config, fixed in 1.5.37). Janino is on the server classpath via calcite-core. - avatica-core pinned to 1.29.0 in dependencyManagement for CVE-2026-70410 (unsafe reflection in AvaticaUtils#instantiatePlugin). calcite-core 1.42.0 is the latest release and still declares 1.28.0. Stays on logback 1.5.x on purpose: 1.6.x removed PatternLayout.DEFAULT_CONVERTER_MAP, which Dropwizard's LogbackAccessRequestLayout (5.0.0 through 5.0.2) reads in its static initializer, so text request logging fails with NoSuchFieldError (SwitchableLayoutFactoryTest reproduces it). Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit cd48072) * fix(security): bump jetty to 12.1.13 Clears CVE-2026-19863 (jetty-security auth bypass, critical) and CVE-2026-77711/76184 (jetty-client information exposure). Also moves the openmetadata-service and openmetadata-mcp jetty.version overrides off 12.1.10, which still carry the 12.1.12 fixes for jetty-http, jetty-server, jetty-ee10-annotations and jetty-websocket-core-common. (cherry picked from commit ce99462) * fix(security): move jetty to 12.1.14 Matches Collate (#7599) and ai-platform main, which already run 12.1.14. 12.1.13 is where CVE-2026-19863 (jetty-security) and the jetty-client CVEs were fixed; 12.1.14 is the current patch on that line. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit 2b3696b) --------- Co-authored-by: Harsh Vador <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> Co-authored-by: karanh37 <[email protected]>
github-actions Bot
pushed a commit
to aokimoon/OpenMetadata
that referenced
this pull request
Oct 22, 2026
* fix(security): bump jetty to 12.1.13 Clears CVE-2026-19863 (jetty-security auth bypass, critical) and CVE-2026-77711/76184 (jetty-client information exposure). Also moves the openmetadata-service and openmetadata-mcp jetty.version overrides off 12.1.10, which still carry the 12.1.12 fixes for jetty-http, jetty-server, jetty-ee10-annotations and jetty-websocket-core-common. * fix(security): move jetty to 12.1.14 Matches Collate (open-metadata#7599) and ai-platform main, which already run 12.1.14. 12.1.13 is where CVE-2026-19863 (jetty-security) and the jetty-client CVEs were fixed; 12.1.14 is the current patch on that line. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> --------- Co-authored-by: Ram Narayan Balaji <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.










Describe your changes :
I worked on the ..... because ...
Type of change :
Frontend Preview (Screenshots) :
For frontend related change, please link screenshots of your changes preview! Optional for backend related changes.
Checklist:
Reviewers