This repository has been archived by the owner on Mar 18, 2024. It is now read-only.
feat(events): new event stream for build command #1446
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary generated by Reviewpad on 12 Dec 23 05:41 UTC
This pull request includes changes to multiple files. Here is a summary of the changes:
build.ts
in theorchestrator
directory:jobId
to theBuild
class.CreateDataPackageImpl.ts
:BuildStreamService
from'../../eventStream/build'
.BuildStreamService.sendPackageError()
with error messages.build.json
:jobIdFlagDescription
.CreateDiffPackageImpl.ts
:BuildStreamService
from thebuild
event stream.BuildStreamService
to send a package error message and throw an error.PackageDependencyDisplayer.ts
:BuildStreamService
.printPackageDependencies
method.CreatePackage.ts
:BuildStreamService
.BuildStreamService.buildPackageStatus()
andBuildStreamService.sendPackageError()
.BuildImpl.ts
:BuildStreamService
.BuildImpl
class.hooks.ts
:Other files:
Please review these changes and let me know if you have any questions.
Hi @azlam-abdulsalam
This is the pull request for the new event stream. (build and release command)
There are 2 options:
To activate this method you need to first install the package 04t2o000001B1kiAAC. This package contains a new object called SfPowerscriptsEvent__c and a permission set to access the new fields. And it has a scheduled apex class where you can delete old records from the event object. (default value older then 15 days)
Then you have to set the new (optional) flag --jobid (-j) to send the events to the devhub.
To activate this method you need to set the ENV variables
EVENT_STREAM_WEBHOOK_URL
EVENT_STREAM_WEBHOOK_TOKEN
optional(NODE_TLS_REJECT_UNAUTHORIZED=0) (required when you have no ssl certificates for the hook)
At the end we create always a new json in the .sfpowerscripts folder with the name ,,eventStreamBuild.json'' OR ,,eventStreamRelease.json''.
This file has all infos from part1/2 as well.
Checklist
All items have to be completed before a PR is merged