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

Bug/devtooling 831 #1269

Merged
merged 4 commits into from
Oct 1, 2024
Merged

Bug/devtooling 831 #1269

merged 4 commits into from
Oct 1, 2024

Conversation

kavinbalagen
Copy link
Collaborator

No description provided.

@@ -181,3 +181,15 @@ func GenerateColumnStatus(column, contactable string) string {
contactable = %s
}`, column, contactable)
}

func createComplexContact(contactListId, contactId string) string {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice

Copy link
Collaborator

@charliecon charliecon left a comment

Choose a reason for hiding this comment

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

I think a new export test would be a good idea, at least so that if this code is edited in the future, we will know that something has broken.

We could create two contact lists, with the IDs of the contacts being the same in both lists. Then verify that the right number of resources were exported.

Since the id field in the contacts resource is read-only, we can either allow the user to provide the value with a new field contact_id, or use a helper function in the tests to seed the contact list with contacts (the existing function addContactsToContactList is example of how you can accomplish this). I think the first option is a better

}

func splitComplexContact(complexContact string) (string, string) {
if strings.Contains(complexContact, ":") {
Copy link
Collaborator

Choose a reason for hiding this comment

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

add delimiter as a constant, in the package so that test cases also would refer the same everywhere.

@carnellj-genesys
Copy link
Collaborator

@kavinbalagen Can you please resolve the merge conflicts so we can merge this before you leave :)

@kavinbalagen
Copy link
Collaborator Author

@kavinbalagen Can you please resolve the merge conflicts so we can merge this before you leave :)

done!

@carnellj-genesys carnellj-genesys merged commit 6957981 into dev Oct 1, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants