Closed madhuravius closed 1 year ago
This pull request has been linked to Shortcut Story #7097: Calculate organization ID for Environments.
Inferred from user (non dedicated stack):
Inferred from stack (dedicated stack), had to disable auth api endpoint to verify:
The new test case passes for me locally but may not pass in CI unless there are specific conditions met (user is part of one org OR is dedicated stack)
TODOS:
org_id
to be optional as it can be inferred in certain scenarios✅ Manual test case 1: orgid can be inferred from dedicated stack (had to force my stack to be private and assigned an org id via rails console) ✅ Manual test case 2: orgid can be inferred from user ✅ Manual test case 3: orgid must be specific explicitly, because above two conditions not met
Manual test case 3: orgid must be specific explicitly, because above two conditions not met
I hit this error block as expected when no conditions were met:
I used the below terraform:
The above case is fine if provided manually: