Skip to content

Commit

Permalink
Merge branch 'main' into horizontal-key-icon
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasEng authored Feb 13, 2025
2 parents 1a8795d + a5839e1 commit 3e60f4c
Show file tree
Hide file tree
Showing 82 changed files with 520 additions and 1,929 deletions.
67 changes: 0 additions & 67 deletions .github/workflows/deploy-eid-logger.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/eid-logger-pr-build.yaml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/lint-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,48 +15,3 @@ jobs:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
scopes: |
accessibility
analytics
app-deploy
app-preview
attachments
authentication
authorization
contact
content-library
codelist
dashboard
data-modeling
data-storage
dependencies
deps
designer
designsystem
documentation
form-layout
header
infrastructure
language
login
message
message-box
overview
pdf
prefill
process
receipt
register
resource-adm
resource-registry
settings
studio-root
subform
testing
text
text-editor
ui-component
ui-editor
ux
workspace
2 changes: 1 addition & 1 deletion backend/src/Designer/Controllers/RepositoryController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public ActionResult ContentsZip(string org, string repository, [FromQuery] bool
.Status(appContext.Org, appContext.Repo)
.Where(f => f.FileStatus != FileStatus.DeletedFromWorkdir)
.Select(f => f.FilePath);
};
}

foreach (var changedFile in changedFiles)
{
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Threading;
using System.Threading.Tasks;
using Altinn.Studio.Designer.Scheduling;
using MediatR;
using Quartz;

Expand All @@ -8,8 +9,6 @@ namespace Altinn.Studio.Designer.EventHandlers.DeploymentPipelineQueued;
public class DeploymentPipelineQueuedHandler : INotificationHandler<Events.DeploymentPipelineQueued>
{
private readonly ISchedulerFactory _schedulerFactory;
private const string DeploymentPipelineGroup = nameof(DeploymentPipelineGroup);
private const int PollingIntervalInSeconds = 10;

public DeploymentPipelineQueuedHandler(ISchedulerFactory schedulerFactory)
{
Expand All @@ -21,22 +20,24 @@ public async Task Handle(Events.DeploymentPipelineQueued notification, Cancellat
var scheduler = await _schedulerFactory.GetScheduler(cancellationToken);
var jobData = new JobDataMap
{
{ "org", notification.EditingContext.Org },
{ "app", notification.EditingContext.Repo },
{ "developer", notification.EditingContext.Developer },
{ "buildId", notification.BuildId.ToString() }
{ DeploymentPipelinePollingJobConstants.Arguments.Org, notification.EditingContext.Org },
{ DeploymentPipelinePollingJobConstants.Arguments.App, notification.EditingContext.Repo },
{ DeploymentPipelinePollingJobConstants.Arguments.Developer, notification.EditingContext.Developer },
{ DeploymentPipelinePollingJobConstants.Arguments.BuildId, notification.BuildId.ToString() },
{ DeploymentPipelinePollingJobConstants.Arguments.PipelineType, notification.PipelineType.ToString() },
{ DeploymentPipelinePollingJobConstants.Arguments.Environment, notification.Environment }
};

var job = JobBuilder.Create<Scheduling.DeploymentPipelinePollingJob>()
.WithIdentity($"{nameof(Scheduling.DeploymentPipelinePollingJob)}-{notification.EditingContext.Org}-{notification.EditingContext.Repo}-{notification.BuildId}", DeploymentPipelineGroup)
.WithIdentity(DeploymentPipelinePollingJobConstants.JobIdentity(notification.EditingContext, notification.BuildId), DeploymentPipelinePollingJobConstants.DeploymentPipelineGroup)
.UsingJobData(jobData)
.Build();

var trigger = TriggerBuilder.Create()
.WithIdentity($"{nameof(Scheduling.DeploymentPipelinePollingJob)}-{notification.EditingContext.Org}-{notification.EditingContext.Repo}-{notification.BuildId}", DeploymentPipelineGroup)
.WithIdentity(DeploymentPipelinePollingJobConstants.TriggerIdentity(notification.EditingContext, notification.BuildId), DeploymentPipelinePollingJobConstants.DeploymentPipelineGroup)
.StartNow()
.WithSimpleSchedule(x => x
.WithIntervalInSeconds(PollingIntervalInSeconds)
.WithIntervalInSeconds(DeploymentPipelinePollingJobConstants.PollingIntervalInSeconds)
.RepeatForever())
.Build();

Expand Down
17 changes: 0 additions & 17 deletions backend/src/Designer/Events/AppDeployedEvent.cs

This file was deleted.

8 changes: 8 additions & 0 deletions backend/src/Designer/Events/DeploymentPipelineQueued.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,12 @@ public class DeploymentPipelineQueued : INotification
{
public required AltinnRepoEditingContext EditingContext { get; set; }
public required int BuildId { get; set; }
public required string Environment { get; set; }
public required PipelineType PipelineType { get; set; }
}

public enum PipelineType
{
Deploy,
Undeploy
}
54 changes: 0 additions & 54 deletions backend/src/Designer/Helpers/HttpClientHelper.cs

This file was deleted.

Loading

0 comments on commit 3e60f4c

Please sign in to comment.