-
Notifications
You must be signed in to change notification settings - Fork 88
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
[Devtooling-672] Added Missing Attributes and Refactor #1491
Conversation
...scloud/knowledge_document_variation/data_source_genesyscloud_knowledge_document_variation.go
Outdated
Show resolved
Hide resolved
genesyscloud/knowledge_document_variation/resource_genesyscloud_knowledge_document_variation.go
Outdated
Show resolved
Hide resolved
genesyscloud/knowledge_document_variation/genesyscloud_knowledge_document_variation_proxy.go
Outdated
Show resolved
Hide resolved
genesyscloud/knowledge_document_variation/genesyscloud_knowledge_document_variation_proxy.go
Outdated
Show resolved
Hide resolved
genesyscloud/knowledge_document_variation/genesyscloud_knowledge_document_variation_proxy.go
Show resolved
Hide resolved
...scloud/knowledge_document_variation/data_source_genesyscloud_knowledge_document_variation.go
Outdated
Show resolved
Hide resolved
genesyscloud/knowledge_document_variation/resource_genesyscloud_knowledge_document_variation.go
Outdated
Show resolved
Hide resolved
genesyscloud/knowledge_document_variation/resource_genesyscloud_knowledge_document_variation.go
Outdated
Show resolved
Hide resolved
genesyscloud/knowledge_document_variation/resource_genesyscloud_knowledge_document_variation.go
Show resolved
Hide resolved
genesyscloud/knowledge_document_variation/resource_genesyscloud_knowledge_document_variation.go
Show resolved
Hide resolved
genesyscloud/knowledge_document_variation/resource_genesyscloud_knowledge_document_variation.go
Outdated
Show resolved
Hide resolved
genesyscloud/knowledge_document_variation/resource_genesyscloud_knowledge_document_variation.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add tests for these utils. Amazon Q is really helpful with creating tests for these types of functions.
Also double check these functions with Amazon Q to confirm no nil pointer exceptions or anything
@@ -164,6 +164,7 @@ func (r *registerTestInstance) registerTestResources() { | |||
providerResources[journeyActionTemplate.ResourceType] = journeyActionTemplate.ResourceJourneyActionTemplate() | |||
providerResources[knowledgeDocument.ResourceType] = knowledgeDocument.ResourceKnowledgeDocument() | |||
providerResources[knowledgeLabel.ResourceType] = knowledgeLabel.ResourceKnowledgeLabel() | |||
providerResources[knowledgeDocumentVariation.ResourceType] = knowledgeDocumentVariation.ResourceKnowledgeDocumentVariation() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you run all the acceptance tests in the package, to be sure the tests are passing and there are no dependent datasources to be registered in the test provider.
This PR is a Refactor of
Knowledge Document Variation
It incorporates the missing 'name' field, missing 'context' field and missing 'properties' field
It also resolves bugs found during the refactor.
Amazon Q was used to check for potential nil pointers, errors, etc