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

vdk-control-cli: Expand missing resource error message #706

Merged
merged 3 commits into from
Feb 15, 2022

Conversation

gabrielgeorgiev1
Copy link
Contributor

In the case when a user creates a job in the control service with
a given team name, then changes the team name in the job's config
file, the message printed is not clear enough.
The message was expanded to inform the user of the aforementioned
possible issue. This approach was chosen over checking for this
issue specifically, as that approach would have required changes
to both vdk-control-cli and the control-service and would have
required much longer development time.

Closes #605

Testing done: following reproduction steps found in #605 and
verified message is printed

Signed-off-by: Gabriel Georgiev [email protected]

In the case when a user creates a job in the control service with
a given team name, then changes the team name in the job's config
file, the message printed is not clear enough.
The message was expanded to inform the user of the aforementioned
possible issue. This approach was chosen over checking for this
issue specifically, as that approach would have required changes
to both vdk-control-cli and the control-service and would have
required much longer development time.

Closes #605

Testing done: following reproduction steps found in #605 and
verified message is printed

Signed-off-by: Gabriel Georgiev <[email protected]>
@antoniivanov
Copy link
Collaborator

That's good. change, as it makes the generic not found message a bit more helpful.

but in the ticket #605 I have a more bold goal. I'd like that the control service returns exactly what is not found (not generic 404) but it would say "No job with that name", "no such team exists" . So please keep the ticket open.

@gabrielgeorgiev1 gabrielgeorgiev1 enabled auto-merge (squash) February 15, 2022 14:50
@gabrielgeorgiev1 gabrielgeorgiev1 merged commit 43cb3b5 into main Feb 15, 2022
@gabrielgeorgiev1 gabrielgeorgiev1 deleted the person/gageorgiev/dont-ask-for-defaulted branch February 15, 2022 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unclear error message when job name or team are not passed correctly.
3 participants