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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

jobs list and node read fixes #56

Merged
merged 3 commits into from Apr 15, 2019
Merged

jobs list and node read fixes #56

merged 3 commits into from Apr 15, 2019

Conversation

vjeffrey
Copy link

馃敥 Description

only show report button on scan job list if not recurring job
a scan job with a recurrence schedule should not show a report
button on the jobs list. the report button should only show
up on the actual scans list for recurring jobs.

do not fail node read if secret does not exist
if we cannot find the credential id attached to the node,
we should not fail the node. we should just return what is
found and leave it to the user from there. failing the node
results in unreadable nodes, which helps no one.

馃憤 Definition of Done

bugs fixed

馃憻 Demo Script / Repro Steps

rebuild nodemanager-service
load up some nodes
create a recurring job that will complete soon
try to read a node
delete credential for node
try to read node again
check recurring job - should not have report button on jobs list, only on scans

Victoria Jeffrey added 2 commits April 13, 2019 10:30
a scan job with a recurrence schedule should not show a report
button on the jobs list. the report button should only show
up on the actual scans list for recurring jobs.
if we cannot find the credential id attached to the node,
we should not fail the node. we should just return what is
found and leave it to the user from there. failing the node
results in unreadable nodes, which helps no one.

Signed-off-by: Victoria Jeffrey <vjeffrey@chef.io>
Co-Authored-By: vjeffrey <vjeffrey@chef.io>
Signed-off-by: Victoria Jeffrey <vjeffrey@chef.io>
@vjeffrey vjeffrey merged commit b0ab2e3 into master Apr 15, 2019
@chef-ci chef-ci deleted the vj/fixes branch April 15, 2019 18:32
afiune pushed a commit that referenced this pull request Apr 16, 2019
* only show report button on scan job list if not recurring job

a scan job with a recurrence schedule should not show a report
button on the jobs list. the report button should only show
up on the actual scans list for recurring jobs.

* do not fail node read if secret does not exist

if we cannot find the credential id attached to the node,
we should not fail the node. we should just return what is
found and leave it to the user from there. failing the node
results in unreadable nodes, which helps no one.

Signed-off-by: Victoria Jeffrey <vjeffrey@chef.io>

* Update components/nodemanager-service/api/nodes/server/server.go

Co-Authored-By: vjeffrey <vjeffrey@chef.io>
Signed-off-by: Victoria Jeffrey <vjeffrey@chef.io>
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.

None yet

3 participants