Skip to content

Conversation

@thomasyu888
Copy link
Member

@thomasyu888 thomasyu888 commented May 8, 2024

Problem

Currently, there is no framework to maintain a library of DUO combinations as schema bindings.

Solution
This will serve as a starting point for the automation of application of DUO codes.

Bonus: Github will automatically populate the README.md file at the homepage, so I deleted the introduction.md

@thomasyu888 thomasyu888 changed the title Add templates Add initial DUO templates + Python code to apply DUO bindings. May 8, 2024
{
"if": {
"properties": {
"DUO_0000006": {
Copy link
Member Author

@thomasyu888 thomasyu888 Oct 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duoCodes: [“IRB”, “HMB", “GRB”]
duoCodes: [“HMB”, “IRB", “GRB”]

OR, but the below is a lot less clean...

IRB: True
HMB: True
GRB: True

So if... IRB exists, then an AR...

}
}
}
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
},
,
{
"if": {
"properties": {
"duoCodes": {
"type": "array",
"items": {
"type": "string"
},
"contains": {
"const": "NPU"
}
}
}
},
"then": {
"properties": {
"_accessRequirementIds": {
"type": "array",
"contains": {
"const": sdfsdfs
}
}
}
}
}

"_accessRequirementIds": {
"type": "array",
"contains": {
"const": 9606538
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a fresh set of ARs specific to that project

syn.login()
with open("config.yml", "r") as f:
config = yaml.safe_load(f)

Copy link
Member Author

@thomasyu888 thomasyu888 Oct 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add another script to select the DUO codes, and to auto generate the json schema template + ARs

@thomasyu888 thomasyu888 changed the title Add initial DUO templates + Python code to apply DUO bindings. [IBCDPE-1110] Add initial DUO templates + Python code to apply DUO bindings. Oct 27, 2024
ankimno pushed a commit that referenced this pull request Jun 5, 2025
Add MC2 DUO-AR schema and example of data type JSON with AR schema referenced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant