-
Notifications
You must be signed in to change notification settings - Fork 1
feat: implement handlers for transformation and library #339
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: chore.transformation-model
Are you sure you want to change the base?
Conversation
🔒 Scanned for secrets using gitleaks 8.28.0
| req := &transformations.CreateLibraryRequest{ | ||
| Name: newData.Name, | ||
| Description: newData.Description, | ||
| Code: newData.Code, | ||
| Language: newData.Language, | ||
| ExternalID: newData.ID, | ||
| } |
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.
Generally we don't include externalID in the update request ( you are not allowed to update the externalID by mistake in update call ) and the backend shouldn't accept it. The capability to attach externalID to the backend should be part of create flow.
I would suggest to have separate entities for create and update and keep the model different in terms of externalID.
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.
Validation of externalId to be same as existing was done is backend update call. So used same structs. Sure, will drop externalID
| req := &transformations.CreateTransformationRequest{ | ||
| Name: newData.Name, | ||
| Description: newData.Description, | ||
| Code: newData.Code, | ||
| Language: newData.Language, | ||
| ExternalID: newData.ID, | ||
| } |
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.
Same comment as in libraries !
…ndler 🔒 Scanned for secrets using gitleaks 8.28.0
🔒 Scanned for secrets using gitleaks 8.28.0
🔒 Scanned for secrets using gitleaks 8.28.0
resolves DAW-2749