Skip to content

Conversation

@jcalarcon98
Copy link
Contributor

Description

Currently, if we want to create a new entry and we don't pass activity_id field, the activity will be create without a problem.

For example:

image

This behavior can cause problems when we try to get all the Entries and in the UI part, it will not render reports Page, and time Entries page.

With this PR, it is checked that an activity and a project are provided, and also that the projects or activities entered exist. for example:
Entry without activity_id field:

image

**Entry with fake activity_id field: **
image

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 7, 2021

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@jcalarcon98 jcalarcon98 merged commit 7b74f46 into master Jul 8, 2021
@jcalarcon98 jcalarcon98 deleted the TT-270-revert-handle-exceptions branch July 8, 2021 00:05
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.

3 participants