Skip to content

Conversation

@Kasterov
Copy link
Contributor

dev

JIRA

Code reviewers

  • @github_username

Second Level Review

  • @github_username

Summary of issue

ToDo

Summary of change

ToDo

Testing approach

ToDo

CHECK LIST

  • СI passed
  • Сode coverage >=95%
  • PR is reviewed manually again (to make sure you have 100% ready code)
  • All reviewers agreed to merge the PR
  • I've checked new feature as logged in and logged out user if needed
  • PR meets all conventions

Kasterov and others added 17 commits March 14, 2023 18:14
Implemented logic of saving in blob storage files dur to the service BlobService
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
It seems that now eveything works properly
public string? Description { get; set; }
public UrlDTO Url { get; set; }
public string BlobName { get; set; }

Copy link

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;
Copy link

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
Copy link
Contributor

@Tysyatsky Tysyatsky left a 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.

Comment on lines -36 to -37
[HttpPut("{id:int}")]
public async Task<IActionResult> Update([FromRoute] int id, [FromBody] AudioDTO audio)
Copy link
Contributor

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)?

Copy link
Contributor

@MementoMorj MementoMorj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OMG111AWS!!!!GOAT!!!!

Copy link
Contributor

@Katerix Katerix left a 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)

@Kasterov Kasterov merged commit d5b156f into newFixed Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

BlobStorage on the server

6 participants