-
Notifications
You must be signed in to change notification settings - Fork 14
Admin panel blob storage #145
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
Conversation
Not done yet
Base: logic of encryption coded. Now service use key to encrypt and decrypt files.
BlobStorage added to git ignore
Now endpoint GetFileBase returns a File!
Audio and Image entity changes
Now in order to save new file you should use special endpoint + to read you need also special endpoint
Audio general crud operations
Implemented all CRUD operations for audio
Implemented IOption pattern
| public string? Description { get; set; } | ||
| public UrlDTO Url { get; set; } | ||
| public string BlobName { get; set; } | ||
|
|
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.
redundant line
|
|
||
| await _repositoryWrapper.AudioRepository.CreateAsync(audio); | ||
|
|
||
| var resultIsSuccess = await _repositoryWrapper.SaveChangesAsync() > 0; |
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.
don't you think that isResultSuccess or isSavingSucceeded or even just isSuccess would be more appropriate than current name?
Now when you return imageDTO or imagesDTO you also have mime-type and bae64
Tysyatsky
left a comment
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.
Great job pal! Waiting for the meeting with a guide how to work with that in future. Thank you.
| [HttpPut("{id:int}")] | ||
| public async Task<IActionResult> Update([FromRoute] int id, [FromBody] AudioDTO audio) |
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.
Why do you delete HttpPut attribute here but not in the next method (delete)?
MementoMorj
left a comment
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.
OMG111AWS!!!!GOAT!!!!
Katerix
left a comment
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.
awesome! useful and fun blob storage)
dev
JIRA
Code reviewers
Second Level Review
Summary of issue
ToDo
Summary of change
ToDo
Testing approach
ToDo
CHECK LIST