Fix duplicate data and API : Tickets [507] & [299]#508
Fix duplicate data and API : Tickets [507] & [299]#508
Conversation
prompts for Organisation Teams Project and Experiment Creations , uses typer instead of click
allows to create and list organisations, projects and teams from the CLI
allows easier testing
- Navig Bar created
- Home Page
- Admin Page
There was a problem hiding this comment.
Its very nice to add those 3 tabs ! On a side note I think we need to decide where to put the python queries to the api between dashboard/data/data_loader.py and codecarbon/core/api_client.py
| ) | ||
| if existing_organization: | ||
| raise HTTPException( | ||
| status_code=404,detail=f"the organization name {organization.name} is already existed" |
There was a problem hiding this comment.
f"the organization named {organization.name} already exists"
There was a problem hiding this comment.
I have just corrected that anomaly
There was a problem hiding this comment.
f"the project named {project.name} of team {project.team_id} already exists"
There was a problem hiding this comment.
I have just corrected that anomaly
| ) | ||
| if existing_team: | ||
| raise HTTPException( | ||
| status_code=404,detail=f"the team name {team.name} of that organization {team.organization_id} is already existed" |
There was a problem hiding this comment.
f"the team name {team.name} of organization {team.organization_id} is already exists"
There was a problem hiding this comment.
I have just corrected that anomaly
prompts for Organisation Teams Project and Experiment Creations , uses typer instead of click
allows to create and list organisations, projects and teams from the CLI
allows easier testing
…into feat/rework_cli
benoit-cty
left a comment
There was a problem hiding this comment.
I encounter error when running SQL Script.
|
|
||
| --RAISE NOTICE '------- START -------'; | ||
| RAISE NOTICE 'The rows affected by A=%',a_count; | ||
| RAISE NOTICE 'Delete experiments which contains any runs affected' |
There was a problem hiding this comment.
| RAISE NOTICE 'Delete experiments which contains any runs affected' | |
| RAISE NOTICE 'Delete experiments which contains any runs affected'; |
There was a problem hiding this comment.
Fix stored procedure
|
|
||
|
|
||
| RAISE NOTICE '--------------'; | ||
| RAISE NOTICE 'Delete projects which contains any experiments affected' |
There was a problem hiding this comment.
| RAISE NOTICE 'Delete projects which contains any experiments affected' | |
| RAISE NOTICE 'Delete projects which contains any experiments affected'; |
There was a problem hiding this comment.
Fix stored procedure
|
|
||
|
|
||
| RAISE NOTICE '--------------'; | ||
| RAISE NOTICE 'Delete teams which contains any project affected ' |
There was a problem hiding this comment.
| RAISE NOTICE 'Delete teams which contains any project affected ' | |
| RAISE NOTICE 'Delete teams which contains any project affected '; |
There was a problem hiding this comment.
Fix stored procedure
|
|
||
|
|
||
| RAISE NOTICE '--------------'; | ||
| RAISE NOTICE 'Delete organizations which contains any teams affected' |
There was a problem hiding this comment.
| RAISE NOTICE 'Delete organizations which contains any teams affected' | |
| RAISE NOTICE 'Delete organizations which contains any teams affected'; |
There was a problem hiding this comment.
Fix stored procedure
- Admin Page which allow to create an organization into database.
[507] : stored procedure which delete all duplicate data and organization unused
[299] : Prevent duplicate entry on API