diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index 70a4073..b561e4b 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -5,15 +5,35 @@ on: - feature/** jobs: + changed-files: + name: changed-files + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 2 + + - name: Get changed files + uses: tj-actions/changed-files@v45 + with: + dir_names: 'true' + build-deploy-api: + if: contains(needs.changed-files.outputs.modified_files, 'api') name: build-deploy-api + needs: + - changed-files uses: ./.github/workflows/api.yaml with: calling_workflow: dev secrets: inherit build-deploy-app: + if: contains(needs.changed-files.outputs.modified_files, 'app') name: build-deploy-app + needs: + - changed-files uses: ./.github/workflows/app.yaml with: calling_workflow: dev diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index 6afc62f..47f2928 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -7,22 +7,22 @@ on: - main jobs: - build-deploy-api: - if: github.event_name == 'pull_request' && github.event.action != 'closed' - name: build-deploy-api - uses: ./.github/workflows/api.yaml - with: - calling_workflow: dev - secrets: inherit + # build-deploy-api: + # if: github.event_name == 'pull_request' && github.event.action != 'closed' + # name: build-deploy-api + # uses: ./.github/workflows/api.yaml + # with: + # calling_workflow: dev + # secrets: inherit - build-deploy-app: - if: github.event_name == 'pull_request' && github.event.action != 'closed' - name: build-deploy-app - uses: ./.github/workflows/app.yaml - with: - calling_workflow: dev - deployment_environment: staging - secrets: inherit + # build-deploy-app: + # if: github.event_name == 'pull_request' && github.event.action != 'closed' + # name: build-deploy-app + # uses: ./.github/workflows/app.yaml + # with: + # calling_workflow: dev + # deployment_environment: staging + # secrets: inherit close-pull-request-job: if: github.event_name == 'pull_request' && github.event.action == 'closed' diff --git a/app/src/components/logbook/Logbook.tsx b/app/src/components/logbook/Logbook.tsx index ea69897..e12c413 100644 --- a/app/src/components/logbook/Logbook.tsx +++ b/app/src/components/logbook/Logbook.tsx @@ -418,20 +418,24 @@ const Logbook: React.FC = () => { )} - onOpenCloseEntryForm(mode)} - /> - + {state.isFormOpen && ( + onOpenCloseEntryForm(mode)} + /> + )} + {state.isConfirmDialogOpen && ( + + )} ); }; diff --git a/infrastructure/storage_account.tf b/infrastructure/storage_account.tf index 3e61f22..daed14c 100644 --- a/infrastructure/storage_account.tf +++ b/infrastructure/storage_account.tf @@ -1,23 +1,17 @@ -resource "azurerm_storage_account" "storage_account_dev" { - name = "${var.STORAGE_ACCOUNT_NAME}dev" +resource "azurerm_storage_account" "storage_account" { + name = "${var.STORAGE_ACCOUNT_NAME}" resource_group_name = data.azurerm_resource_group.resource_group.name location = data.azurerm_resource_group.resource_group.location account_tier = "Standard" account_replication_type = "LRS" } -resource "azurerm_storage_account" "storage_account_staging" { - name = "${var.STORAGE_ACCOUNT_NAME}staging" - resource_group_name = data.azurerm_resource_group.resource_group.name - location = data.azurerm_resource_group.resource_group.location - account_tier = "Standard" - account_replication_type = "LRS" +resource "azurerm_storage_table" "logbook_storage_table" { + name = "Logbook" + storage_account_name = azurerm_storage_account.storage_account.name } -resource "azurerm_storage_account" "storage_account_prod" { - name = "${var.STORAGE_ACCOUNT_NAME}prod" - resource_group_name = data.azurerm_resource_group.resource_group.name - location = data.azurerm_resource_group.resource_group.location - account_tier = "Standard" - account_replication_type = "LRS" +resource "azurerm_storage_table" "pilots_storage_table" { + name = "Pilots" + storage_account_name = azurerm_storage_account.storage_account.name } \ No newline at end of file