-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Tag recognizer pagination #25537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Tag recognizer pagination #25537
Conversation
e2dca3b to
dce5dac
Compare
🔍 CI failure analysis for dce5dac: TagResourceIT fails (PR bug). NEW: Maven SonarCloud has same AWS config errors as Maven PostgreSQL + database memory exhaustion after 3h run. Total: 12 failures, 83% unrelated to PR.IssueTwelve CI jobs have failed across multiple workflow runs: 1-2. integration-tests (2 Java jobs) - TagResourceIT failures Java Integration Tests: TagResourceIT.test_recognizerPaginationEndpointStatus: Fails in MySQL+Elasticsearch AND PostgreSQL+OpenSearch Test Failure:
Root CauseBackward pagination bug in Fix: Pass PR Related: ✓ Yes Maven SonarCloud CI (NEW FAILURE)Job: maven-sonarcloud-ci - job 61511518768 Status: Build failed after 3 hours 20 minutes Failure: Test failures in openmetadata-service Errors Identified1. AwsCredentialsUtilTest (3 errors)
2. Database Resource Exhaustion
3. RdfIndexApp Installation Failures
AnalysisWhy This is NOT PR-Related: This PR only modifies tag recognizer pagination code:
Zero changes to:
Root Cause Analysis: AwsCredentialsUtilTest (Same as maven-postgresql-ci):
Database "Out of sort memory":
RdfIndexApp failures:
Long Build Time (3h 20min):
RecommendationThis maven-sonarcloud-ci failure is infrastructure/environment/configuration issue unrelated to the PR:
Pattern: This is essentially the same failure pattern as maven-postgresql-ci (job 11) plus additional resource exhaustion from the longer SonarCloud analysis run. PR Related: ✗ No - Infrastructure/environment/configuration issues Summary
Critical Statistics:
Required for PR: Fix backward pagination bug in Infrastructure/Environment Issues:
Strong Recommendation: This PR should NOT be blocked by maven-sonarcloud-ci failures or any of the other infrastructure/environment issues (83% of failures). The maven-sonarcloud-ci failure is a duplicate of the maven-postgresql-ci pattern with additional resource exhaustion from the long analysis run. Code Review
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
| } | ||
|
|
||
| @GET | ||
| @Path("{id}/recognizers") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Details
Both REST endpoints (listRecognizersByTagId and listRecognizersByTagFQN) use the same operationId = "listATagsRecognizers". OpenAPI specification requires unique operation IDs across all endpoints. This will cause issues with:
- OpenAPI spec validation
- SDK code generation (client generators use operationId to generate method names)
- API documentation tools
Suggested fix: Use unique operation IDs for each endpoint:
For the ID-based endpoint:
operationId = "listTagRecognizersById"For the FQN-based endpoint:
operationId = "listTagRecognizersByFQN"Was this helpful? React with 👍 / 👎
Describe your changes:
This PR includes an endpoint that returns a tag's recognizers with pagination
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
GET /v1/tags/{id}/recognizersandGET /v1/tags/name/{fqn}/recognizersenable paginated retrieval of tag recognizersTagRepository.getRecognizersOfTag()implements bidirectional cursor navigation withbefore/afterparametersBadCursorExceptionvalidates and handles malformed pagination cursors returning HTTP 400This will update automatically on new commits.