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

[Devtooling-672] Added Missing Attributes and Refactor #1491

Merged
merged 6 commits into from
Jan 29, 2025

Conversation

BrianMoyles
Copy link
Collaborator

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

Copy link
Contributor

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()
Copy link
Collaborator

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.

@carnellj-genesys carnellj-genesys merged commit d0791cd into dev Jan 29, 2025
2 checks passed
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.

6 participants