Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

#110 improve code quality/mongoqueryengine/queryengine #112

Conversation

DeanRTaylor1
Copy link
Contributor

Relating to issue #110

Refactored code to switch statements and smaller functions that manage each query result and handle errors.
This should be both easier to manage as well as add to in the future.

I tested all the function implementations after running 'wails dev' and using the linux gui and it worked the same as it did when I ran against the main branch.

Please let me know if you have any suggested changes. If you're okay with the changes I'll go ahead and work on the next issue on codefactor.

@DeanRTaylor1
Copy link
Contributor Author

I added the missing code and rechecked all the functions and cases, now they all cases check for the config.CreateLogFn and run it.

I also noticed I misnamed the receiver variables as mqw vs mqe, so I updated that to remain consistent with the other functions.

@paraswaykole paraswaykole changed the base branch from main to develop April 11, 2023 08:26
@paraswaykole
Copy link
Owner

Awesome! Looks good 👍

@paraswaykole paraswaykole merged commit 43c1e09 into paraswaykole:develop Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants