Skip to content
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

[PB-759] Feat: allow to create empty files #409

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JoanVicens
Copy link
Contributor

Allows to create empty files (with no fileId) when the size is 0.

Also allows the clients to specify the Uuid value

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@JoanVicens JoanVicens marked this pull request as ready for review July 31, 2023 13:25
@JoanVicens JoanVicens requested a review from sg-gs July 31, 2023 13:25
@JoanVicens JoanVicens changed the title [PB-758] Feat: allow to create empty files [PB-759] Feat: allow to create empty files Jul 31, 2023
this.logger.error(
`Invalid metadata trying to create a file for user ${behalfUser.email}: ${JSON.stringify(file, null, 2)}`,
);
return res.status(400).json({ error: 'Invalid metadata for new file' });

This comment was marked as off-topic.

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