Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toxophilist/sprint dev #729

Merged
merged 40 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
91bef3a
build:Update version number
toxophilist Oct 31, 2024
b872c74
refactor(ES6): Convert to ES6 Modules (OKIT-307, OKIT-308, OKIT-309, …
toxophilist Oct 31, 2024
823bdb5
Merge branch 'master' into toxophilist/sprint-dev
toxophilist Oct 31, 2024
02a5e63
Merge branch 'master' into toxophilist/es6-module
toxophilist Oct 31, 2024
a805b11
Merge branch 'toxophilist/sprint-dev' into toxophilist/es6-module
toxophilist Oct 31, 2024
8391857
refactor(ES6): Split react components into module / convert to ES and…
toxophilist Nov 6, 2024
3ebd377
refactor: add author info and dmg maker
toxophilist Nov 13, 2024
6b58db0
feat: Add Mac specific dmg options
toxophilist Nov 13, 2024
ed016ed
Merge pull request #727 from oracle/toxophilist/es6-module
toxophilist Nov 13, 2024
7625a85
chore: update build actions
toxophilist Nov 14, 2024
02ab6a5
chore: add missing build scripts
toxophilist Nov 14, 2024
55a3db3
build: fix node version
toxophilist Nov 15, 2024
bce4265
build: List recursive
toxophilist Nov 15, 2024
cdba9c7
build: set NODE_OPTIONS as environment variable
toxophilist Nov 15, 2024
e54abbb
build: set executableName
toxophilist Nov 15, 2024
9d59a96
build: remove deb build
toxophilist Nov 17, 2024
7169036
build: add rpm & deb options
toxophilist Nov 18, 2024
d2e8935
build: always run upload
toxophilist Nov 18, 2024
edc558f
build: change executeable name
toxophilist Nov 18, 2024
dc1bcc1
build: Add electron-builder version of the desktop
toxophilist Nov 20, 2024
dfbd3da
build: change built file location
toxophilist Nov 21, 2024
066275e
build: Add oci-sdk to package dependancies
toxophilist Nov 21, 2024
2deb0e0
build: Add specific name to Squirel Maker
toxophilist Nov 26, 2024
5845129
build: set name to ocd
toxophilist Nov 26, 2024
fb65920
build: set executable name
toxophilist Nov 26, 2024
779f701
build: Change package name
toxophilist Nov 26, 2024
64a94ca
build: update upload source directories for electron-forge build
toxophilist Nov 27, 2024
c7a2503
build: fix name typos
toxophilist Nov 27, 2024
6dd211e
build: remove version directory from windows
toxophilist Nov 27, 2024
a5d6581
build: stop zip build
toxophilist Nov 27, 2024
22ca7c7
build: stop electron-builder build
toxophilist Nov 27, 2024
872ad17
chore: Update Version numbers
toxophilist Nov 27, 2024
327df4c
refactor: comment out cert disabling code for PCA
toxophilist Dec 2, 2024
cdaa37a
refactor: SonarCloud suggestions
toxophilist Dec 2, 2024
41900bc
refactor: SonarCloud suggestions
toxophilist Dec 2, 2024
fcaa245
refactor: remove duplicate electron-desktop package
toxophilist Dec 2, 2024
cdac999
refactor: remove duplicate code
toxophilist Dec 2, 2024
44fe165
refactor: remove duplicate code
toxophilist Dec 2, 2024
2295be1
refactor: delete auto generated code
toxophilist Dec 2, 2024
c998291
refactor: change pattern to raw string
toxophilist Dec 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 18 additions & 10 deletions .github/workflows/build-desktop-application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]
version: [latest]
os: [macos-latest, windows-latest, ubuntu-latest]
version: [22.11.0]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: ${{ needs.generate-variables.outputs.okit_release_tag }}
OCD_VERSION: ${{ needs.generate-variables.outputs.ocd_version }}
NODE_OPTIONS: "--max-old-space-size=8192"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -74,24 +75,31 @@ jobs:
- run: npm run github-action-install
- run: npm run github-action-compile-for-codegen
- run: npm run github-action-generate
- run: npm run github-action-compile
- run: npm run github-action-pack
- run: npm run github-action-build-react
- run: npm run github-action-build-electron
- run: npm run github-action-build
# - run: npm run github-action-compile
# - run: npm run github-action-pack
# - run: npm run github-action-build-react
# - run: npm run github-action-build-electron
- run: ls -R ./ocd/dist
if: always()
- name: Upload Mac Artifact to Release
if: matrix.os == 'macos-latest'
run: |
gh release upload ${{ env.RELEASE_TAG }} ./ocd/dist/mac/ocd-${{ env.OCD_VERSION }}-*.dmg --clobber
npm run github-action-build-macos-x86
gh release upload ${{ env.RELEASE_TAG }} ./ocd/dist/make/ocd-${{ env.OCD_VERSION }}-*.dmg --clobber
# gh release upload ${{ env.RELEASE_TAG }} ./ocd/dist/mac/ocd-${{ env.OCD_VERSION }}-*.dmg --clobber
- name: Upload Windows Artifact to Release
if: matrix.os == 'windows-latest'
run: |
gh release upload ${{ env.RELEASE_TAG }} ./ocd/dist/win/ocd-${{ env.OCD_VERSION }}-x64.exe --clobber
ls ./ocd/dist/make/squirrel.windows/x64
gh release upload ${{ env.RELEASE_TAG }} ./ocd/dist/make/squirrel.windows/x64/ocd-${{ env.OCD_VERSION }}*.exe --clobber
# gh release upload ${{ env.RELEASE_TAG }} ./ocd/dist/win/ocd-${{ env.OCD_VERSION }}-x64.exe --clobber
- name: Upload Linux Artifact to Release
if: matrix.os == 'ubuntu-latest'
run: |
gh release upload ${{ env.RELEASE_TAG }} ./ocd/dist/make/rpm/x64/ocd-${{ env.OCD_VERSION }}-*.rpm --clobber
gh release upload ${{ env.RELEASE_TAG }} ./ocd/dist/make/deb/x64/ocd_${{ env.OCD_VERSION }}*.deb --clobber
# gh release upload ${{ env.RELEASE_TAG }} ./ocd/dist/linux/ocd-${{ env.OCD_VERSION }}.rpm --clobber
# gh release upload ${{ env.RELEASE_TAG }} ./ocd/dist/linux/ocd-${{ env.OCD_VERSION }}.deb --clobber
gh release upload ${{ env.RELEASE_TAG }} ./ocd/dist/linux/ocd-${{ env.OCD_VERSION }}-*.snap --clobber
gh release upload ${{ env.RELEASE_TAG }} ./ocd/dist/linux/ocd-${{ env.OCD_VERSION }}-*.AppImage --clobber
# gh release upload ${{ env.RELEASE_TAG }} ./ocd/dist/linux/ocd-${{ env.OCD_VERSION }}-*.snap --clobber
# gh release upload ${{ env.RELEASE_TAG }} ./ocd/dist/linux/ocd-${{ env.OCD_VERSION }}-*.AppImage --clobber
36 changes: 21 additions & 15 deletions .github/workflows/development-build-desktop-application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
version: [latest]
version: [22.11.0]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -78,6 +78,7 @@ jobs:
OCD_VERSION: ${{ needs.generate-variables.outputs.ocd_version }}
# BRANCH_OCD_VERSION: ${{ needs.generate-variables.outputs.ocd_version }}-${{ github.head_ref || github.ref_name }}
BRANCH_RELEASE_TAG: ocd.${{ github.head_ref || github.ref_name }}
NODE_OPTIONS: "--max-old-space-size=8192"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -91,25 +92,30 @@ jobs:
- run: npm run github-action-install
- run: npm run github-action-compile-for-codegen
- run: npm run github-action-generate
- run: npm run github-action-compile
- run: npm run github-action-pack
- run: npm run github-action-build-react
- run: npm run github-action-build-electron
- run: npm run github-action-build
# - run: npm run github-action-compile
# - run: npm run github-action-pack
# - run: npm run github-action-build-react
# - run: npm run github-action-build-electron
- name: Upload Mac Artifact to Release
if: matrix.os == 'macos-latest'
run: |
ls -lash ./ocd/dist/mac
gh release upload ${{ env.BRANCH_RELEASE_TAG }} ./ocd/dist/mac/ocd-${{ env.OCD_VERSION }}-*.dmg --clobber
npm run github-action-build-macos-x86
ls -lashR ./ocd/dist
gh release upload ${{ env.BRANCH_RELEASE_TAG }} ./ocd/dist/make/ocd-${{ env.OCD_VERSION }}-*.dmg --clobber
# gh release upload ${{ env.BRANCH_RELEASE_TAG }} ./ocd/dist/release/${{ env.OCD_VERSION }}/ocd-${{ env.OCD_VERSION }}-*.dmg --clobber
- name: Upload Windows Artifact to Release
if: matrix.os == 'windows-latest'
if: matrix.os == 'windows-latest' && (failure() || success())
run: |
ls ./ocd/dist/win
gh release upload ${{ env.BRANCH_RELEASE_TAG }} ./ocd/dist/win/ocd-${{ env.OCD_VERSION }}-x64.exe --clobber
ls -R ./ocd/dist
ls ./ocd/dist/make/squirrel.windows/x64
gh release upload ${{ env.BRANCH_RELEASE_TAG }} ./ocd/dist/make/squirrel.windows/x64/ocd-${{ env.OCD_VERSION }}-Setup.exe --clobber
# gh release upload ${{ env.BRANCH_RELEASE_TAG }} ./ocd/dist/release/${{ env.OCD_VERSION }}/ocd-Windows-${{ env.OCD_VERSION }}*x64.exe --clobber
- name: Upload Linux Artifact to Release
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-latest' && (failure() || success())
run: |
ls -lash ./ocd/dist/linux
# gh release upload ${{ env.BRANCH_RELEASE_TAG }} ./ocd/dist/linux/ocd-${{ env.OCD_VERSION }}-*.rpm --clobber
# gh release upload ${{ env.BRANCH_RELEASE_TAG }} ./ocd/dist/linux/ocd-${{ env.OCD_VERSION }}-*.deb --clobber
gh release upload ${{ env.BRANCH_RELEASE_TAG }} ./ocd/dist/linux/ocd-${{ env.OCD_VERSION }}-*.snap --clobber
ls -lashR ./ocd/dist
gh release upload ${{ env.BRANCH_RELEASE_TAG }} ./ocd/dist/make/rpm/x64/ocd-${{ env.OCD_VERSION }}-*.rpm --clobber
gh release upload ${{ env.BRANCH_RELEASE_TAG }} ./ocd/dist/make/deb/x64/ocd_${{ env.OCD_VERSION }}*.deb --clobber
# gh release upload ${{ env.BRANCH_RELEASE_TAG }} ./ocd/dist/release/${{ env.OCD_VERSION }}/ocd-${{ env.OCD_VERSION }}-*.snap --clobber
# gh release upload ${{ env.BRANCH_RELEASE_TAG }} ./ocd/dist/linux/ocd-${{ env.OCD_VERSION }}-*.AppImage --clobber
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ __pycache__/
*.egg-info/
okit.wpr

# Node / React / Electron
# Node / React / Electron / Vite
**/dist/
**/build/
**/node_modules
**/out/
**/lib/
**/.vite/
# **/package-lock.json

# Terraform
Expand Down Expand Up @@ -70,3 +71,5 @@ workspace
# Others
.coverage
htmlcov/

# Build
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
# Release Notes


## Version 0.66.0
**Release Date**: 30th November 2024
### Features
1. OKIT-Ocd: Convert @ocd/core to ES6 Module (#OKIT-307)
1. OKIT-Ocd: Convert @ocd/model to ES6 Module (#OKIT-308)
1. OKIT-Ocd: Convert @ocd/query to ES6 Module (#OKIT-309)
1. OKIT-Ocd: Convert @ocd/export to ES6 Module (#OKIT-310)
1. OKIT-Ocd: Convert @ocd/import to ES6 Module (#OKIT-311)
1. OKIT-Ocd: Convert @ocd/codegen to ES6 Module (#OKIT-312)
1. OKIT-Ocd: Convert @ocd/codegen-cli to ES6 Module (#OKIT-313)
1. OKIT-Ocd: Convert @ocd/cli to ES6 Module (#OKIT-314)
1. OKIT-Ocd: Convert @ocd/desktop to ES6 Module (#OKIT-315)
1. OKIT-Ocd: Switch build process from Create React App / Webpack to Vite (#OKIT-305)
1. OKIT-Ocd: Switch to Electron Forge for building.
### Bug Fixes


## Version 0.65.0
**Release Date**: 30th October 2024
### Features
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ FROM oraclelinux:8
ARG BRANCH=master
LABEL "provider"="Oracle" \
"issues"="https://github.com/oracle/oci-designer-toolkit/issues" \
"version"="0.65.0" \
"version"="0.66.0" \
"description"="OKIT Web Server Container." \
"copyright"="Copyright (c) 2020, 2024, Oracle and/or its affiliates."
# SHELL ["/bin/bash", "-c"]
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[![License: UPL](https://img.shields.io/badge/license-UPL-green)](https://img.shields.io/badge/license-UPL-green) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=oracle_oci-designer-toolkit&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=oracle_oci-designer-toolkit)
# Oracle Cloud Infrastructure Designer and Visualisation Toolkit [0.65.0](CHANGELOG.md#version-0.65.0)
# Oracle Cloud Infrastructure Designer and Visualisation Toolkit [0.66.0](CHANGELOG.md#version-0.66.0)

Full Release Details Can Found [0.65.0 Release](https://github.com/oracle/oci-designer-toolkit/releases/tag/v0.65.0).
Full Release Details Can Found [0.66.0 Release](https://github.com/oracle/oci-designer-toolkit/releases/tag/v0.66.0).

**OKIT - Open Cloud Designer** Public Beta is now Available see [0.65.0 Release](https://github.com/oracle/oci-designer-toolkit/releases/tag/v0.65.0) for details.
**OKIT - Open Cloud Designer** Public Beta is now Available see [0.66.0 Release](https://github.com/oracle/oci-designer-toolkit/releases/tag/v0.66.0) for details.
_____

OCI designer and visualisation toolKIT (OKIT) is a browser based tool that allows the user to [design](https://www.ateam-oracle.com/introduction-to-okit-the-oci-designer-toolkit),
Expand Down Expand Up @@ -38,7 +38,7 @@ OCI environments through a graphical web based interface.

## Changes

[Changes for the current release (0.65.0) are documented here.](CHANGELOG.md#version-0.65.0)
[Changes for the current release (0.66.0) are documented here.](CHANGELOG.md#version-0.66.0)


## Releases
Expand Down
21 changes: 14 additions & 7 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
[![License: UPL](https://img.shields.io/badge/license-UPL-green)](https://img.shields.io/badge/license-UPL-green) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=oracle_oci-designer-toolkit&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=oracle_oci-designer-toolkit)
# October 2024 Release (Version 0.65.0)
# November 2024 Release (Version 0.66.0)
____
**Update 0.65.0**: This update addresses the following issues.
1. OKIT-Web: Resolve issue with queried node_pool where the availability dodamin was still the full name. (#723)
**Update 0.66.0**: This update addresses the following issues.
____
Welcome to the October 2024 release of OKIT. This release updates the Azure and Google based on the released terraform providers.
Welcome to the November 2024 release of OKIT. This release switches the exiat Create React App based build format to Vite and Electron Forge.

## OKIT (Web) Features
1. OKIT-Web: Create PCA specific OKIT Cache classes for use when accessing the pca link.

## OKIT - Open Cloud Designer
1. OKIT-Ocd: Update initial Azure resources to match released terraform providers. (#OKIT-316)
2. OKIT-Ocd: Update initial Google resources to match released terraform providers . (#OKIT-317)
1. OKIT-Ocd: Convert @ocd/core to ES6 Module (#OKIT-307)
1. OKIT-Ocd: Convert @ocd/model to ES6 Module (#OKIT-308)
1. OKIT-Ocd: Convert @ocd/query to ES6 Module (#OKIT-309)
1. OKIT-Ocd: Convert @ocd/export to ES6 Module (#OKIT-310)
1. OKIT-Ocd: Convert @ocd/import to ES6 Module (#OKIT-311)
1. OKIT-Ocd: Convert @ocd/codegen to ES6 Module (#OKIT-312)
1. OKIT-Ocd: Convert @ocd/codegen-cli to ES6 Module (#OKIT-313)
1. OKIT-Ocd: Convert @ocd/cli to ES6 Module (#OKIT-314)
1. OKIT-Ocd: Convert @ocd/desktop to ES6 Module (#OKIT-315)
1. OKIT-Ocd: Switch build process from Create React App / Webpack to Vite (#OKIT-305)
1. OKIT-Ocd: Switch to Electron Forge for building.

### Beta Overview

Expand Down
2 changes: 1 addition & 1 deletion containers/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
FROM oraclelinux:8
LABEL "provider"="Oracle" \
"issues"="https://github.com/oracle/oci-designer-toolkit/issues" \
"version"="0.65.0" \
"version"="0.66.0" \
"description"="OKIT Web Server Container." \
"copyright"="Copyright (c) 2020, 2024, Oracle and/or its affiliates."
# SHELL ["/bin/bash", "-c"]
Expand Down
14 changes: 7 additions & 7 deletions ocd/documentation/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class GoogleTerraformSchemaImporter extends OcdTerraformSchemaImporter {
}

export default GoogleTerraformSchemaImporter
module.exports = { GoogleTerraformSchemaImporter }
// module.exports = { GoogleTerraformSchemaImporter }
```

#### src/importer/data/GoogleResourceMap.ts
Expand Down Expand Up @@ -243,7 +243,7 @@ export class GoogleMarkdownGenerator extends OcdMarkdownGenerator {
}

export default GoogleMarkdownGenerator
module.exports = { GoogleMarkdownGenerator }
// module.exports = { GoogleMarkdownGenerator }
```

#### src/generator/GoogleModelGenerator.ts
Expand All @@ -266,7 +266,7 @@ export class GoogleModelGenerator extends OcdModelGenerator {
}

export default GoogleModelGenerator
module.exports = { GoogleModelGenerator }
// module.exports = { GoogleModelGenerator }
```

#### src/generator/GooglePropertiesGenerator.ts
Expand All @@ -289,7 +289,7 @@ export class GooglePropertiesGenerator extends OcdPropertiesGenerator {
}

export default GooglePropertiesGenerator
module.exports = { GooglePropertiesGenerator }
// module.exports = { GooglePropertiesGenerator }
```

#### src/generator/GoogleTabularGenerator.ts
Expand All @@ -312,7 +312,7 @@ export class GoogleTabularGenerator extends OcdTabularGenerator {
}

export default GoogleTabularGenerator
module.exports = { GoogleTabularGenerator }
// module.exports = { GoogleTabularGenerator }
```

#### src/generator/GoogleTerraformGenerator.ts
Expand All @@ -337,7 +337,7 @@ export class GoogleTerraformGenerator extends OcdTerraformGenerator {
}

export default GoogleTerraformGenerator
module.exports = { GoogleTerraformGenerator }
// module.exports = { GoogleTerraformGenerator }
```

#### src/generator/GoogleValidatorGenerator.ts
Expand All @@ -360,7 +360,7 @@ export class GoogleValidatorGenerator extends OcdValidatorGenerator {
}

export default GoogleValidatorGenerator
module.exports = { GoogleValidatorGenerator }
// module.exports = { GoogleValidatorGenerator }
```

#### src/generator/data/GoogleCommonResourceProperties.ts
Expand Down
Loading