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

feature: WEOS-1134 Update Context Middleware to convert incoming request to the structure needed by List Controller #62

Merged
merged 6 commits into from
Feb 1, 2022

Conversation

shaniah868
Copy link
Contributor

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

This adds functionality for adding the filters into the context for use in the other layers.
There is a helper functions to aid this functionality

  • What is the current behavior? (You can also link to an open issue here)

  • What is the new behavior (if this is a feature change)?

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

  • Other information:

…est to the structure needed by List Controller

-Added helper functions to split the filters
-Added tests for the helper functions
-Added tests for the middleware context
-Added functionality for adding filters to the context
-Add a filter property that holds the filter information
…est to the structure needed by List Controller

-Added functionality to check for an array of values
-Added tests for it
@shaniah868 shaniah868 marked this pull request as ready for review January 26, 2022 17:27
…est to the structure needed by List Controller

-Added errors for if the filters were not splitted properly
# Conflicts:
#	controllers/rest/utils.go
# Conflicts:
#	controllers/rest/utils.go
#	controllers/rest/utils_test.go
#	end2end_test.go
@RandyDeo RandyDeo self-requested a review February 1, 2022 04:12
# Conflicts:
#	end2end_test.go
@RandyDeo RandyDeo merged commit 3c83741 into feature/WEOS-1134 Feb 1, 2022
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