Skip to content

Commit

Permalink
Revert unused integration resource change
Browse files Browse the repository at this point in the history
  • Loading branch information
Anahkiasen committed Jun 27, 2024
1 parent 7eae351 commit 40a2274
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
20 changes: 0 additions & 20 deletions app/Domain/Integrations/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ final class Integration

private ?Organization $organization;

/** @var array<Organizer> */
private array $organizers;

/** @var array<UiTiDv1Consumer> */
private array $uiTiDv1Consumers;

Expand All @@ -60,7 +57,6 @@ public function __construct(
$this->uiTiDv1Consumers = [];
$this->auth0Clients = [];
$this->keycloakClients = [];
$this->organizers = [];
$this->organization = null;
$this->keyVisibility = KeyVisibility::v2;
$this->keyVisibilityUpgrade = null;
Expand Down Expand Up @@ -126,13 +122,6 @@ public function withKeycloakClients(KeycloakClient ...$keycloakClients): self
return $clone;
}

public function withOrganizers(Organizer ...$organizers): self
{
$clone = clone $this;
$clone->organizers = $organizers;
return $clone;
}

public function withSubscription(Subscription $subscription): self
{
$clone = clone $this;
Expand Down Expand Up @@ -177,14 +166,6 @@ public function organization(): ?Organization
return $this->organization;
}

/**
* @return array<Organizer>
*/
public function organizers(): array
{
return $this->organizers;
}

/** @return array<UiTiDv1Consumer> */
public function uiTiDv1Consumers(): array
{
Expand Down Expand Up @@ -245,7 +226,6 @@ public function toArray(): array
'contacts' => $this->contacts,
'urls' => $this->urls,
'organization' => $this->organization,
'organizers' => $this->organizers,
'authClients' => $this->auth0Clients,
'legacyAuthConsumers' => $this->uiTiDv1Consumers,
'keycloakClients' => $this->keycloakClients,
Expand Down
5 changes: 0 additions & 5 deletions app/Domain/Integrations/Models/IntegrationModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,6 @@ public function toDomain(): Integration
->get()
->map(fn (KeycloakClientModel $keycloakClientModel) => $keycloakClientModel->toDomain())
->toArray()
)->withOrganizers(
...$this->organizers()
->get()
->map(fn (OrganizerModel $organizerModel) => $organizerModel->toDomain())
->toArray()
);

if ($this->keyVisibilityUpgrade) {
Expand Down

0 comments on commit 40a2274

Please sign in to comment.