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

Release 0.65.0 #725

Merged
merged 49 commits into from
Oct 31, 2024
Merged
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
88c35ba
fix: add height to css classes
toxophilist Oct 1, 2024
6c797c0
refactor: swap empty onKeyUp for aria-hidden
toxophilist Oct 1, 2024
d1f335a
fix: SonarCloud issue with html pattern change json values to raw string
toxophilist Oct 1, 2024
295f89b
feat: Add PCA OKE Networking reference architecture
toxophilist Oct 1, 2024
fed6c76
fix: SonarCloud nested ternary statement complexity
toxophilist Oct 1, 2024
f7e12fc
refactor: SonarCloud simplify ternary statement
toxophilist Oct 1, 2024
c24813f
refactor: SonarCloud remove commented out css
toxophilist Oct 1, 2024
8a09c75
refactor(SonarCloud): Simplify Promise reject
toxophilist Oct 1, 2024
6533cd1
refactor(SonarCloud): Make Promise rejects return error
toxophilist Oct 1, 2024
a077c85
refactor(SonarCloud): Remove unused imports from generated code
toxophilist Oct 1, 2024
5c1ff1f
refactor(SonarCloud): Remove unused imports
toxophilist Oct 1, 2024
92c1418
refactor(SonarCloud): Memorise Context
toxophilist Oct 1, 2024
ef66c30
refactor(SonarCloud): Set Active file modified directly not via setAc…
toxophilist Oct 1, 2024
f8c2da3
refactor(SonarCloud): Fix recommendations
toxophilist Oct 2, 2024
baeb2c2
refactor(SonarCloud): Code improvements
toxophilist Oct 2, 2024
3de39d4
refactor(SonarCloud): Clean excessive parameters
toxophilist Oct 2, 2024
280c5e4
feat(library): Add OKE example to C3
toxophilist Oct 2, 2024
6e324d4
fix: read all library svg files
toxophilist Oct 2, 2024
e557d0d
feat: Allow environment based switch of library
toxophilist Oct 2, 2024
15bf0b8
refactor(SonarCloud): implement recommendations
toxophilist Oct 3, 2024
8b19295
feat: make dev check explicite
toxophilist Oct 7, 2024
cb51f37
feat: Add read Svg File ipc handler
toxophilist Oct 8, 2024
916ca2e
refactor: replace css-loader with predefined TypeScript constant
toxophilist Oct 8, 2024
79eaa13
chore: remove commented out code
toxophilist Oct 8, 2024
f7352a5
feat: Add suggested name for save as
toxophilist Oct 8, 2024
5b781cd
fix(SonarCloud): Clean code
toxophilist Oct 10, 2024
b38cc02
chore: remove unused css import code
toxophilist Oct 17, 2024
bc18f19
fix: Convert node_pool availabilty_domain to number (#723)
toxophilist Oct 21, 2024
4141654
chore: update change log
toxophilist Oct 21, 2024
e80706c
refactor: remove unnecessary package files
toxophilist Oct 21, 2024
0df5390
refactor: set okit-web restructuring structure
toxophilist Oct 21, 2024
256b9c6
refactor: remove incorrect and unused explicite imports and add moder…
toxophilist Oct 22, 2024
34aaba6
refactor(SonarCloud): implement code recommendations
toxophilist Oct 22, 2024
b7898ea
refactor(Google): import released google terraform with oci database
toxophilist Oct 22, 2024
002a79c
refactor: Update resource names for azure and google for oracle resou…
toxophilist Oct 28, 2024
7482f30
feat: add clean script
toxophilist Oct 28, 2024
3cd1784
refactor: Split OCI & PCA Cache data classes and pick approprite base…
toxophilist Oct 29, 2024
a7d9d2e
chore: remove VM cluster to see if it resolves build issues
toxophilist Oct 29, 2024
37fe4df
chore: re-add VmCluster to see if it resolve case issue
toxophilist Oct 29, 2024
a9125b3
chore: update version numbers
toxophilist Oct 29, 2024
3309748
feat: Set tabular header to aria-hidden
toxophilist Oct 29, 2024
282f617
refactor(SonarCloud): Implement recommendations
toxophilist Oct 29, 2024
aba00a8
refactor(SonarCloud): Implement changes
toxophilist Oct 29, 2024
381766e
refactor(SonarCloud): Split load balancer listener processing into fu…
toxophilist Oct 30, 2024
9f71fab
refactor(SonarCloud): Remove redundant return
toxophilist Oct 30, 2024
f7ff112
refactor: conver html patterns to raw strings
toxophilist Oct 30, 2024
fe52817
Merge pull request #724 from oracle/toxophilist/sprint-dev
toxophilist Oct 30, 2024
b47b15f
refactor(SonarCloud): Clean code based on SonarCloud recommendations
toxophilist Oct 30, 2024
f0d4493
Merge pull request #726 from oracle/toxophilist/sprint-dev
toxophilist Oct 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor(SonarCloud): implement code recommendations
  • Loading branch information
toxophilist committed Oct 22, 2024
commit 34aaba618c652b801281fb9b763739e43d1a2cde
4 changes: 2 additions & 2 deletions ocd/packages/core/src/OcdUtils.ts
Original file line number Diff line number Diff line change
@@ -58,8 +58,8 @@ export namespace OcdUtils {
export function isCondition(leftHandSide: string | number | boolean | Array<any> | Function | undefined, operator: string | undefined, rightHandSide: string | number | boolean | Array<any> | Function | undefined): boolean {
let isTrue = false
// console.debug('OcdUtils: isConditional', leftHandSide, operator, rightHandSide)
if (operator === 'eq') isTrue = (leftHandSide === rightHandSide)
else if (operator === 'ne') isTrue = (leftHandSide !== rightHandSide)
if (operator === 'eq') isTrue = (leftHandSide !== undefined && rightHandSide !== undefined && leftHandSide === rightHandSide)
else if (operator === 'ne') isTrue = (leftHandSide !== undefined && rightHandSide !== undefined && leftHandSide !== rightHandSide)
else if (operator === 'lt') isTrue = (leftHandSide !== undefined && rightHandSide !== undefined && leftHandSide < rightHandSide)
else if (operator === 'gt') isTrue = (leftHandSide !== undefined && rightHandSide !== undefined && leftHandSide > rightHandSide)
else if (operator === 'le') isTrue = (leftHandSide !== undefined && rightHandSide !== undefined && leftHandSide <= rightHandSide)
5 changes: 3 additions & 2 deletions ocd/packages/model/src/validator/OcdResourceValidator.ts
Original file line number Diff line number Diff line change
@@ -30,8 +30,9 @@ export namespace OcdResourceValidator {
// If not conditional then we will always display
if (!conditional) return true
// Check condition
const element = condition.element ? condition.element.indexOf('_') ? OcdUtils.toCamelCase(condition.element) : condition.element : ''
const display = OcdUtils.isCondition(resource[element], condition.operator, condition.value)
const element = condition.element?.indexOf('_') ? OcdUtils.toCamelCase(condition.element) : condition.element
const leftValue = element ? resource[element] : ''
const display = OcdUtils.isCondition(leftValue, condition.operator, condition.value)
return display
}
export function noDefaultValidation(displayName: string, key: string, value: string | boolean | number, title: string, cssClass: string, resources: OcdResources, message: string | undefined = undefined): OcdValidationResult {
7 changes: 4 additions & 3 deletions okitweb/static/okit/view/js/okit_view.js
Original file line number Diff line number Diff line change
@@ -56,10 +56,10 @@ class OkitJsonView {
drop(source, target) {
let newFunction = 'new' + source.name;
let getFunction = 'get' + target.type.split(' ').join('');
console.debug('OkitJsonView: New:', newFunction,'Get:', getFunction)
}

init() {
}
init() {return}

clear() {
for (const [key, value] of Object.entries(this)) {
@@ -166,7 +166,7 @@ class OkitArtefactView {
static get fo_x_tranlation() {return this.icon_width + 5;}
static get fo_y_tranlation() {return 0;}

constructor(artefact=null, json_view) {
constructor(artefact, json_view) {
this.artefact = artefact;
// this.view = json_view
// this.artefact = new Proxy(artefact, model_proxy_handler);
@@ -338,6 +338,7 @@ class OkitArtefactView {
id: this.icon_definition_id,
transform: this.icon_transform
}
return definition
}
getForeignObjectDefinition() {
const definition = {