Skip to content

Archive organization mutation#4544

Merged
lcampbell2 merged 3 commits intomasterfrom
archive-org-mutation
May 23, 2023
Merged

Archive organization mutation#4544
lcampbell2 merged 3 commits intomasterfrom
archive-org-mutation

Conversation

@lcampbell2
Copy link
Copy Markdown
Collaborator

@lcampbell2 lcampbell2 commented May 23, 2023

New mutation that allows super admins to "archive" an org. This mutation:

  • takes an org ID as input
  • unverifies the org
  • archives any domains that only belong to this org

@lcampbell2 lcampbell2 requested a review from FestiveKyle May 23, 2023 16:31
@lcampbell2 lcampbell2 marked this pull request as ready for review May 23, 2023 17:55
Comment on lines +122 to +124
UPSERT { _key: ${domain._key} }
INSERT { archived: true }
UPDATE { archived: true }
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This should probably be just an UPDATE

Comment on lines +142 to +144
UPSERT { _key: ${organization._key} }
INSERT { verified: false }
UPDATE { verified: false }
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This should probably be just an UPDATE

@lcampbell2 lcampbell2 merged commit 4fdf39f into master May 23, 2023
@lcampbell2 lcampbell2 deleted the archive-org-mutation branch May 23, 2023 19:29
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.

2 participants