Skip to content

Conversation

@Jayachand
Copy link
Contributor

🔒 Scanned for secrets using gitleaks 8.28.0

resolves DAW-2749

🔒 Scanned for secrets using gitleaks 8.28.0
Comment on lines 183 to 189
req := &transformations.CreateLibraryRequest{
Name: newData.Name,
Description: newData.Description,
Code: newData.Code,
Language: newData.Language,
ExternalID: newData.ID,
}
Copy link
Collaborator

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.

Copy link
Contributor Author

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

Comment on lines 179 to 185
req := &transformations.CreateTransformationRequest{
Name: newData.Name,
Description: newData.Description,
Code: newData.Code,
Language: newData.Language,
ExternalID: newData.ID,
}
Copy link
Collaborator

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants