-
Notifications
You must be signed in to change notification settings - Fork 23
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
Feature/943 update asset endpoints using post #1172
Feature/943 update asset endpoints using post #1172
Conversation
feature(api):[#943] reworked autocomplete api for asBuilt & asPlanned…
✅ No Dependency Check findings were found |
Integration Test Results350 tests 349 ✅ 1m 43s ⏱️ Results for commit c266b5c. ♻️ This comment has been updated with latest results. |
Unit Test Results210 tests 210 ✅ 19s ⏱️ Results for commit c266b5c. ♻️ This comment has been updated with latest results. |
Feature/943 api rework
This reverts commit 094896a.
feat: rework autocomplete api for notifications endpoint
CHANGELOG.md
Outdated
@@ -45,6 +45,8 @@ _**For better traceability add the corresponding GitHub issue number in each cha | |||
- #xxx fixed notification description on receiver side | |||
- #875 owasp dependency check tool is now used from github action image instead of maven plugin | |||
- XXX fixed display of semantic data model in parts as planned table | |||
- #943 renamed distinctFilterValues API to searchable-values for the asBuilt, asPlanned and notification routes | |||
and changed these endpoints to POST with body instead of GET with parameters |
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.
and changed these endpoints to POST with body instead of GET with parameters | |
#943 Changed these endpoints to POST with body instead of GET with parameters |
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.
Addressed in new PR
/******************************************************************************** | ||
* Copyright (c) 2022, 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) | ||
* Copyright (c) 2022, 2023 ZF Friedrichshafen AG | ||
* Copyright (c) 2022, 2023 Contributors to the Eclipse Foundation |
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.
Only this line and only 2024
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.
Addressed in new PR
/******************************************************************************** | ||
* Copyright (c) 2022, 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) | ||
* Copyright (c) 2022, 2023 ZF Friedrichshafen AG | ||
* Copyright (c) 2022, 2023 Contributors to the Eclipse Foundation |
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.
Only this line and only 2024
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.
Addressed in new PR
import jakarta.validation.constraints.Size; | ||
import org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSide; | ||
|
||
public record SearchableNotificationsRequest( |
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.
Try to move the request object to tx-models
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.
Addressed in new PR
refactor: refactor according to feedback
|
||
return this.apiService | ||
.getBy<any>(`${ requestUrl }/distinctFilterValues`, params); | ||
let body = { |
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.
const
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.
Addressed
.set('size', 200) | ||
.set('inAssetIds', inAssetIds ? inAssetIds.join(',') : ''); | ||
|
||
let body = { |
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.
const
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.
Addressed
} | ||
return assetBaseService.getDistinctFilterValues(fieldMapper.mapRequestFieldName(fieldName), startWith, size, owner, inAssetIdsList); | ||
int size = searchableAssetsRequest.size() == null ? 200 : searchableAssetsRequest.size(); |
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.
Please add default value in the request object.
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.
Addressed
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.
LGTM
Feature/943 api rework
Quality Gate failed for 'eclipse-tractusx_traceability-foss-frontend'Failed conditions |
Quality Gate passed for 'Trace-X Root'Issues Measures |
Description
Pre-review checks
Please ensure to do as many of the following checks as possible, before asking for committer review:
resolves #943