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

Support to add postInstall hooks/scripts to the provisioning (ProjectSetup txt) #700

Closed
Remi749 opened this issue Apr 25, 2022 · 3 comments
Assignees
Labels
backend Related to backend/apis complexity: large Issue/PR with large complexity customer funded Issues funded by customer enhancement Request that will enhance the product
Milestone

Comments

@Remi749
Copy link
Collaborator

Remi749 commented Apr 25, 2022

Describe the solution you'd like
Support to add Hooks to the provisioning. Both GET/POST HTTP requests should be supported.

This will enable customers to start GET/POST HTTP requests at the end of the project setup process.

  • Ex: Trigger API's, Flows, Logic Apps, Azure Functions, etc...
  • Support pending requests (202)

https://github.com/Puzzlepart/sp-js-provisioning

Example:

{
  "Hooks": [
    {
      "Title": "Get something from API: X",
      "Url": "https://example.com/get/X",
      "Method": "GET",
      "Headers": {
        "Content-Type": "application/json",
        "Cache-Control": "no-cache"
      }
    },
    {
      "Title": "Trigger logic app: X",
      "Url": "https://example.com/trigger/X",
      "Method": "POST",
      "Headers": {
        "Content-Type": "application/json",
        "Cache-Control": "no-cache"
      },
      "Body": { 
        "Body goes here"
      }
    }
  ]
}

Relevant issue:
Puzzlepart/sp-js-provisioning#1

@Remi749
Copy link
Collaborator Author

Remi749 commented May 4, 2022

The pieces are starting to fall into place here. Hooks are running (GET/POST) and error handling is almost finished. Here are som example of what happens if some hooks fail:

image
image

Example template with hooks:

image

@Remi749 Remi749 added this to the 1.5.5 milestone May 6, 2022
@Remi749
Copy link
Collaborator Author

Remi749 commented May 6, 2022

PR created in sp-js-provisioning:
Puzzlepart/sp-js-provisioning#2

@Remi749 Remi749 modified the milestones: 1.5.5, 1.6.0 May 10, 2022
@Remi749
Copy link
Collaborator Author

Remi749 commented May 12, 2022

sp-js-provisioning has been updated to: v1.1.2 to include hooks

@Remi749 Remi749 added complexity: large Issue/PR with large complexity backend Related to backend/apis customer funded Issues funded by customer labels May 12, 2022
@Remi749 Remi749 closed this as completed May 25, 2022
@pzljanb pzljanb mentioned this issue Jun 23, 2022
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend/apis complexity: large Issue/PR with large complexity customer funded Issues funded by customer enhancement Request that will enhance the product
Projects
None yet
Development

No branches or pull requests

1 participant