@lowcodeunit/applications-flow-common 1.33.266-lets-get-social-ish → 1.33.269-lets-get-social-ish

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3826,7 +3826,7 @@ class DevopsSourceControlFormComponent {
3826
3826
  this.eacSvc = eacSvc;
3827
3827
  this.formBuilder = formBuilder;
3828
3828
  this.SeparatorKeysCodes = [ENTER, COMMA];
3829
- this.SaveStatusEvent = new EventEmitter;
3829
+ this.SaveStatusEvent = new EventEmitter();
3830
3830
  this.BuildPath = null;
3831
3831
  this.HostingDetails = new ProjectHostingDetails();
3832
3832
  this.SelectedBranches = [];
@@ -4006,55 +4006,18 @@ class DevopsSourceControlFormComponent {
4006
4006
  this.EditingSourceControlLookup = scLookup;
4007
4007
  }
4008
4008
  SubmitSourceControl() {
4009
- console.log("source control submitted: ", this.DevOpsSourceControlFormGroup.value);
4009
+ console.log('source control submitted: ', this.DevOpsSourceControlFormGroup.value);
4010
4010
  this.SaveSourceControl();
4011
4011
  }
4012
4012
  SaveSourceControl() {
4013
4013
  const saveEnvReq = {
4014
4014
  Environment: {
4015
4015
  ...this.Environment,
4016
- Artifacts: this.Environment.Artifacts || {},
4017
- DevOpsActions: this.Environment.DevOpsActions || {},
4018
- Secrets: this.Environment.Secrets || {},
4019
4016
  Sources: this.Environment.Sources || {},
4020
4017
  },
4021
4018
  EnvironmentLookup: this.EnvironmentLookup,
4022
4019
  EnterpriseDataTokens: {},
4023
4020
  };
4024
- let artifactLookup;
4025
- let artifact = this.Artifact;
4026
- if (!this.ArtifactLookup) {
4027
- artifactLookup = Guid.CreateRaw();
4028
- artifact = {
4029
- ...artifact,
4030
- // Type: this.HostingDetailsFormControls.SelectedHostingOption
4031
- // .ArtifactType,
4032
- // Name: this.HostingDetailsFormControls.SelectedHostingOption.Name,
4033
- NPMRegistry: 'https://registry.npmjs.org/',
4034
- };
4035
- }
4036
- else {
4037
- artifactLookup = this.ArtifactLookup;
4038
- }
4039
- saveEnvReq.Environment.Artifacts[artifactLookup] = artifact;
4040
- let devOpsActionLookup;
4041
- if (!this.DevOpsActionLookup) {
4042
- devOpsActionLookup = Guid.CreateRaw();
4043
- const doa = {
4044
- ...this.DevOpsAction,
4045
- ArtifactLookups: [artifactLookup],
4046
- };
4047
- saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = this.DevOpsAction;
4048
- }
4049
- else {
4050
- devOpsActionLookup = this.DevOpsActionLookupFormControl.value;
4051
- const doa = {
4052
- ...this.DevOpsAction,
4053
- // Name: this.HostingDetailsFormControls.DevOpsActionNameFormControl.value,
4054
- };
4055
- // saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = doa;
4056
- saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = this.DevOpsAction;
4057
- }
4058
4021
  let source = {
4059
4022
  ...this.EditingSourceControl,
4060
4023
  Branches: this.SelectedBranches,
@@ -4063,15 +4026,15 @@ class DevopsSourceControlFormComponent {
4063
4026
  source = {
4064
4027
  ...source,
4065
4028
  Type: 'GitHub',
4066
- Name: this.EditingSourceControlLookup,
4067
- DevOpsActionTriggerLookups: [devOpsActionLookup],
4029
+ Name: `@${this.OrganizationFormControl.value}/${this.RepositoryFormControl.value}`,
4030
+ DevOpsActionTriggerLookups: [this.DevOpsActionLookup],
4068
4031
  Organization: this.OrganizationFormControl.value,
4069
4032
  Repository: this.RepositoryFormControl.value,
4070
4033
  };
4071
4034
  const scLookup = `github://${source.Organization}/${source.Repository}`;
4072
4035
  saveEnvReq.Environment.Sources[scLookup] = source;
4073
4036
  let resp = this.eacSvc.SaveEnvironmentAsCode(saveEnvReq);
4074
- resp.then(res => {
4037
+ resp.then((res) => {
4075
4038
  this.SaveStatusEvent.emit(res);
4076
4039
  });
4077
4040
  }
@@ -4195,7 +4158,7 @@ class DevopsSourceControlFormComponent {
4195
4158
  }
4196
4159
  }
4197
4160
  setupFormControls() {
4198
- console.log("getting hit");
4161
+ // this.destroyFormControls();
4199
4162
  this.DevOpsSourceControlFormGroup.addControl('devOpsActionLookup', new FormControl(this.DevOpsActionLookup || '', []));
4200
4163
  this.DevOpsSourceControlFormGroup.addControl([this.SourceControlRoot, 'organization'].join(''), new FormControl(this.EditingSourceControl.Organization ?? '', Validators.required));
4201
4164
  this.DevOpsSourceControlFormGroup.addControl([this.SourceControlRoot, 'repository'].join(''), new FormControl(this.EditingSourceControl.Repository ?? '', Validators.required));