Feature:Sapbw4Connector#28875
Conversation
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
| "paginationLimit": { | ||
| "title": "Pagination Limit", | ||
| "description": "Number of rows fetched per page when querying BW metadata tables.", | ||
| "type": "integer", | ||
| "default": 100 | ||
| }, |
There was a problem hiding this comment.
💡 Edge Case: paginationLimit lacks minimum constraint
paginationLimit is defined as an integer with default 100 but has no minimum constraint. A user could configure 0 or a negative value, which when used to page through BW metadata tables could result in no rows being fetched or an infinite/degenerate pagination loop depending on the connector implementation. Add "minimum": 1 (or a sensible floor) to the schema to prevent invalid configuration values at validation time.
Add a minimum bound to reject non-positive pagination limits.:
"paginationLimit": {
"title": "Pagination Limit",
"description": "Number of rows fetched per page when querying BW metadata tables.",
"type": "integer",
"minimum": 1,
"default": 100
}
- Apply fix
Check the box to apply the fix or reply for a change | Was this helpful? React with 👍 / 👎
| { | ||
| "name": "SapBw4Hana" |
There was a problem hiding this comment.
💡 Quality: Generated artifacts not propagated (schema-first)
Per the project's schema-first workflow, changes to openmetadata-spec/ must be propagated via make generate so the corresponding generated Java/TypeScript/Python models and UI service-type mappings (e.g. DashboardServiceType/DataModelType enums, SERVICE_TYPE_WITH_DISPLAY_NAME) stay in sync. The PR only contains the spec JSON; the generated code and supporting connector/test-connection files for SapBw4Hana are absent. This is expected for an early draft, but the connector will not be selectable or usable until the generation step is run and the connector implementation/tests are added. Run make generate and include the generated outputs (and connector code + tests) before this leaves draft.
Propagate schema changes to generated artifacts.:
# From the repo root, regenerate models after editing openmetadata-spec/
make generate
# then commit the generated Java/TS/Python sources and add the
# SapBw4Hana connector implementation + test-connection definitions.
- Apply fix
Check the box to apply the fix or reply for a change | Was this helpful? React with 👍 / 👎
Code Review 👍 Approved with suggestions 0 resolved / 2 findingsIntroduces the SAP BW/4HANA connector with new database and dashboard service schemas. Consider adding a minimum constraint to 💡 Edge Case: paginationLimit lacks minimum constraint📄 openmetadata-spec/src/main/resources/json/schema/entity/services/connections/database/sapBw4HanaConnection.json:51-56 📄 openmetadata-spec/src/main/resources/json/schema/entity/services/connections/dashboard/sapBw4HanaConnection.json:46-51
Add a minimum bound to reject non-positive pagination limits.💡 Quality: Generated artifacts not propagated (schema-first)📄 openmetadata-spec/src/main/resources/json/schema/entity/services/databaseService.json:38-39 📄 openmetadata-spec/src/main/resources/json/schema/entity/services/databaseService.json:253-254 📄 openmetadata-spec/src/main/resources/json/schema/entity/services/connections/dashboard/sapBw4HanaConnection.json:1-15 Per the project's schema-first workflow, changes to Propagate schema changes to generated artifacts.🤖 Prompt for agentsOptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
Describe your changes:
Fixes #
I worked on ... because ...
Type of change:
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:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.Summary by Gitar
SapBw4Hanaconnector support for both database and dashboard services.sapBw4HanaConnection.jsonfor database andsapBw4HanaDashboardConnection.jsonfor dashboard metadata extraction.SapBw4HanaindatabaseService.jsonanddashboardService.jsonschemas.SapBw4HanaQueryas a newdashboardDataModeltype.hdbclidependency toingestion/setup.pyfor the newsap-bw4hanaplugin.This will update automatically on new commits.