Skip to content

Conversation

@jianyexi
Copy link
Contributor

@jianyexi jianyexi commented Dec 2, 2020

@jianyexi jianyexi changed the title fix get property in model bug Add Rpaas_ResourceProvisioningState, improve TopLevelResourcesListByResourceGroup Dec 16, 2020
const model = utils.getResourceByName(resource)
const properties = utils.getPropertyOfModel(model,"properties")
let hasProvisioningState = false
if (properties && (!properties.type || properties.type === "object")) {
Copy link
Member

Choose a reason for hiding this comment

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

If type undefined, is it valid?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, undefined type equals to "object"

if (!model) {
return undefined
}
if (model.properties) {
Copy link
Member

Choose a reason for hiding this comment

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

model.properties?.propertyName

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, 'propertyName' is variable

@jianyexi
Copy link
Contributor Author

jianyexi commented Jan 6, 2021

@sanjaiganesh could you help review the PR ?

@jianyexi
Copy link
Contributor Author

jianyexi commented Jan 8, 2021

@sanjaiganesh could you help review the PR ?

Run regression test against rpaasMaster branch , there are totally 17 Rpaas_ResourceProvisioningState rule errors
see attached file
linting_all_rpaas_readmes.test.log

@jianyexi jianyexi merged commit e5a7980 into master Jan 15, 2021
@jianyexi jianyexi deleted the bug-fix-1 branch May 21, 2021 07:44
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.

3 participants