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

Prevent duplicate entry on API #299

Closed
benoit-cty opened this issue Apr 19, 2022 · 2 comments
Closed

Prevent duplicate entry on API #299

benoit-cty opened this issue Apr 19, 2022 · 2 comments
Assignees
Labels
API Concern only the codecarbon API enhancement New feature or request P1 Priority 1

Comments

@benoit-cty
Copy link
Contributor

  • CodeCarbon version: 2.0.0

Description

The API routes did not check if an entity with same name and same parent id already exist.

What I Did

Call two time the same API entry with same payload.

What I expect

An error message.

What I get

The entry was created two times.

@benoit-cty benoit-cty added enhancement New feature or request API Concern only the codecarbon API labels Apr 19, 2022
@alencon alencon self-assigned this Feb 29, 2024
@benoit-cty
Copy link
Contributor Author

See also #507 and #508

@benoit-cty benoit-cty added the P1 Priority 1 label Mar 10, 2024
@SaboniAmine
Copy link
Collaborator

Closing this issue as it has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Concern only the codecarbon API enhancement New feature or request P1 Priority 1
Projects
None yet
Development

No branches or pull requests

4 participants