Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Admin to be able to delete and recreate all repository webhooks #1656

Open
eddiejaoude opened this issue Jan 10, 2020 · 0 comments · May be fixed by #1659
Open

Admin to be able to delete and recreate all repository webhooks #1656

eddiejaoude opened this issue Jan 10, 2020 · 0 comments · May be fixed by #1659
Assignees
Labels
stack: cloud functions Firebase cloud functions stack: ui

Comments

@eddiejaoude
Copy link
Contributor

eddiejaoude commented Jan 10, 2020

The code for deleting and creating webhook already exists.

Steps are probably:

  • Add to existing Admin only page with similar navigation as project dashboard (screenshot below)
  • Cloud functions
    • Get all repositories
    • For each repository
      1. UI button is clicked (single repo button or all repo button)
      2. UI calls cloud function with an array of UIDs (could be 1 UID in the array if single repo)
      3. New cloud function loops over UIDs and …
        a. calls existing delete repo webhook function
        b. on the previous step a completing successfully, call create repo webhook function
      4. Cloud function returns the total successful / failed webhook creations and display in UI

Screenshot 2020-01-10 17 30 19

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stack: cloud functions Firebase cloud functions stack: ui
Projects
None yet
2 participants