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
Projects

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

@eddiejaoude eddiejaoude created this issue from a note in v0.11.9 (To do) Jan 10, 2020
@eddiejaoude eddiejaoude added stack: cloud functions Firebase cloud functions stack: ui labels Jan 10, 2020
@webkhushboo webkhushboo mentioned this issue Jan 16, 2020
2 tasks
@webkhushboo webkhushboo linked a pull request Jan 16, 2020 that will close this issue
2 tasks
@webkhushboo webkhushboo moved this from To do to In progress in v0.11.9 Jan 17, 2020
@webkhushboo webkhushboo moved this from In progress to In review in v0.11.9 Jan 17, 2020
@webkhushboo webkhushboo moved this from In review to In progress in v0.11.9 Jan 18, 2020
@webkhushboo webkhushboo moved this from In progress to In review in v0.11.9 Jan 18, 2020
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
v0.11.9
  
In review
2 participants