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(e2e): Update setupMockBopsSubmissionUrl() #2744

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions e2e/tests/api-driven/src/invite-to-pay/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,15 @@ export async function cleanup({
const setupMockBopsSubmissionUrl = async (teamId: number) => {
await $admin.client.request(
gql`
mutation SetupTeamIntegrationE2E(
mutation UpdateTeamIntegrationE2E(
$stagingBopsSubmissionUrl: String
$teamId: Int
) {
insert_team_integrations_one(
object: {
team_id: $teamId
staging_bops_submission_url: $stagingBopsSubmissionUrl
}
update_team_integrations(
where: { team_id: { _eq: $teamId } }
_set: { staging_bops_submission_url: $stagingBopsSubmissionUrl }
) {
id
affected_rows
}
}
`,
Expand Down
4 changes: 4 additions & 0 deletions hasura.planx.uk/metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,10 @@
- table:
name: team_integrations
schema: public
object_relationships:
- name: team
using:
foreign_key_constraint_on: team_id
Comment on lines +1343 to +1346
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding this relationship means that team_integrations will be deleted via cascade when their team is deleted.

select_permissions:
- role: api
permission:
Expand Down
Loading