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

fix: apply farm ID and queue ID settings correctly #151

Merged

Conversation

joel-wong-aws
Copy link
Contributor

@joel-wong-aws joel-wong-aws commented May 16, 2024

What was the problem/requirement? (What/Why)

The error message "AccessDeniedException" was appearing during login, settings, and creation flows with no actionable error message.

Resolves #117

What was the solution? (How)

Updated the flows to check whether the farm and queue IDs are set before calling Deadline Cloud APIs. Use a shared function for consistent behaviour.

Now, customers will only see error messages if they attempt to submit without a farm and queue ID set. The ROP creation, login, and settings flows will not show an error message if the farm and queue ID are not set.

What is the impact of this change?

Avoids customer confusion from access denied exceptions

How was this change tested?

  1. Unset the farm ID and queue ID using deadline config set defaults.farm_id "" and deadline config set defaults.queue_id
  2. Created a simple geometry, camera, and light scene with a Mantra ROP
  3. Created a Deadline Cloud Node
    Before: access denied error appears
    After: no error
  4. Clicked login
    Before: access denied error appears, even though login succeeded
    After: no error
  5. Opened the settings menu, then clicked okay without setting the farm and queue
    Before: access denied error appears, even though there was no action by the user
    After: no error
  6. Submitted the job. An error message that the farm ID was not set appeared
  7. Set the farm ID using deadline config set defaults.farm_id <farm ID>
  8. Created a Deadline Cloud Node
    Before: access denied error appears
    After: no error
  9. Clicked login
    Before: access denied error appears, even though login succeeded
    After: no error
  10. Opened the settings menu, then clicked okay without setting the farm and queue
    Before: access denied error appears, even though there was no action by the user
    After: no error
  11. Submitted the job. An error message that the queue ID was not set appeared
  12. Set the queue ID using deadline config set defaults.queue_id <queue ID>
  13. Created a Deadline Cloud node, clicked login, opened settings, and submitted a job

Was this change documented?

No, not required

Is this a breaking change?

No


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@joel-wong-aws joel-wong-aws requested a review from a team as a code owner May 16, 2024 20:00
@joel-wong-aws joel-wong-aws force-pushed the check_more_input_ids branch 2 times, most recently from 832855b to f1faaae Compare May 16, 2024 20:33
fixes aws-deadline#117

Signed-off-by: Joel Wong <127782171+joel-wong-aws@users.noreply.github.com>
@joel-wong-aws joel-wong-aws force-pushed the check_more_input_ids branch from f1faaae to ea64572 Compare May 16, 2024 20:43
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@epmog epmog left a comment

Choose a reason for hiding this comment

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

Great clean-ups! I just had the one question around the OnCreated node event

@joel-wong-aws joel-wong-aws merged commit 1f7a8f4 into aws-deadline:mainline May 17, 2024
16 checks passed
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.

Bug: login callback does not validate farm or queue values before calling Deadline APIs
3 participants