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

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

Copy link
Contributor

@kevinjlope kevinjlope left a comment

Choose a reason for hiding this comment

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

Good job!

@jcalarcon98 jcalarcon98 merged commit 3cddc6b into master Jun 22, 2021
@jcalarcon98 jcalarcon98 deleted the TT-270-handle-exceptions-in-create-update-entries branch June 22, 2021 20:10
scastillo-jp added a commit that referenced this pull request Jun 24, 2021
@scastillo-jp scastillo-jp restored the TT-270-handle-exceptions-in-create-update-entries branch June 24, 2021 18:09
scastillo-jp added a commit that referenced this pull request Jun 24, 2021
scastillo-jp added a commit that referenced this pull request Jun 24, 2021
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.

4 participants