{#if $workspaceStore != currentWorkspaceId} You are currently seeing the deployement page of workspace {currentWorkspaceInfo?.name} ({currentWorkspaceInfo?.id}) which is not your currently selected workspace. Click here to go home ({$workspaceStore}) {/if} {#if comparison} {@const selectedConflicts = conflictingDiffs.filter((e) => selectedItems.includes(getItemKey(e)) ).length}
{#snippet children({ item })} {/snippet} {#if currentWorkspaceInfo && parentWorkspaceInfo} merge: {#if mergeIntoParent} {currentWorkspaceInfo.id} {:else} {parentWorkspaceInfo.id} {/if} into: {#if !mergeIntoParent} {currentWorkspaceInfo.id} {:else} {parentWorkspaceInfo.id} {/if} {/if}
{comparison.summary.total_diffs} total items {selectableDiffs.length} {mergeIntoParent ? 'deployable' : 'updateable'} {#if conflictingDiffs.length > 0} {conflictingDiffs.length} conflicts {/if}
{#if conflictingDiffs.length > 0} {conflictingDiffs.length} item{conflictingDiffs.length !== 1 ? 's have' : ' has'} conflicting changes, it was modified on the original workspace while changes were made on this fork. Make sure to resolve these before merging. {/if} {#if hasBehindChanges && hasAheadChanges} You have items behind '{parentWorkspaceId}'. You need to update and test your changes before being able to deploy. Override: Deploy despite {itemsWithBehindChanges.length} outdated item{itemsWithBehindChanges.length !== 1 ? 's' : ''} {/if} {#if !comparison.all_ahead_items_visible || !comparison.all_behind_items_visible} {#if !comparison.all_ahead_items_visible && !comparison.all_behind_items_visible} This fork is ahead and behind its parent {:else if !comparison.all_behind_items_visible} This fork is behind of its parent {:else if !comparison.all_ahead_items_visible} This fork is ahead of its parent {/if} and some of the changes are not visible by you. Only a user with access to the whole context may deploy or update this fork. You can share the link to this page to someone with proper permissions to get it deployed. {/if}
Select all
{#each comparison.diffs as diff} {@const key = getItemKey(diff)} {@const isSelectable = selectableDiffs.includes(diff)} {@const isSelected = selectedItems.includes(key)} {@const isConflict = diff.ahead > 0 && diff.behind > 0} {@const oldSummary = mergeIntoParent ? summaryCache[key]?.parent : summaryCache[key]?.current} {@const newSummary = mergeIntoParent ? summaryCache[key]?.current : summaryCache[key]?.parent} {@const existsInBothWorkspaces = !( (diff.exists_in_fork && !diff.exists_in_source) || (!diff.exists_in_fork && diff.exists_in_source) )} {@const isDeployedAndIrrelevant = deploymentStatus[key]?.status == 'deployed' && !isSelectable} {#if !isDeployedAndIrrelevant} toggleItem(diff)} path={diff.kind != 'resource' && diff.kind != 'variable' && diff.kind != 'resource_type' ? diff.path : ''} marked={undefined} kind={diff.kind} canFavorite={false} workspaceId="" > {#snippet customSummary()} {#if oldSummary != newSummary && isSelectable && existsInBothWorkspaces} {oldSummary || diff.path} {newSummary || diff.path} {:else if !existsInBothWorkspaces} {newSummary || oldSummary || diff.path} {:else} {newSummary || diff.path} {/if} {/snippet} {#snippet actions()} {#if !diff.exists_in_fork && diff.exists_in_source && diff.ahead == 0 && diff.behind > 0} New {/if} {#if !diff.exists_in_fork && diff.exists_in_source && diff.ahead > 0} Deleted {/if} {#if diff.exists_in_fork && !diff.exists_in_source && diff.behind > 0} Deleted {/if} {#if diff.exists_in_fork && !diff.exists_in_source && diff.ahead > 0 && diff.behind == 0} New {/if} {#if !deploymentStatus[key] || deploymentStatus[key].status != 'deployed'}
{#if isConflict || existsInBothWorkspaces} {#if diff.ahead > 0} {diff.ahead} ahead {/if} {#if diff.behind > 0} {diff.behind} behind {/if} {#if isConflict} Conflict {/if} {/if}
{/if} {#if deploymentStatus[key]} {#if deploymentStatus[key].status == 'loading'} {:else if deploymentStatus[key].status == 'deployed'} Deployed {:else if deploymentStatus[key].status == 'failed'}
Failed {deploymentStatus[key].error}
{/if} {/if} {/snippet}
{/if} {/each}
{#if comparison.all_behind_items_visible && comparison.all_ahead_items_visible} {/if} {#if deploymentErrorMessage != ''} {deploymentErrorMessage} {/if}
{:else}
No comparison data available
{/if}