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

Converted memo_code to boolean and added schema query param #121

Merged
merged 5 commits into from
May 18, 2022

Conversation

mjtravers
Copy link
Contributor

@sonarcloud
Copy link

sonarcloud bot commented May 17, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

90.9% 90.9% Coverage
0.0% 0.0% Duplication

@@ -38,6 +38,10 @@ def get_schema_name(self, data):
:py:function:`fecfile_validate.validate` that will
match a schema defined in the package
"""
request = self.context.get("request", None)
if request and request.query_params.get("schema"):
self.schema_name = request.query_params.get("schema")
Copy link
Contributor

Choose a reason for hiding this comment

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

this got me wondering if setting the schema name would impact subsequent requests. basically is a single serializer instance used in drf for each request. I ran a little test printing schema_name before and after we set it. It does not persist across requests.
image

Copy link
Contributor

Choose a reason for hiding this comment

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

so no change required

@toddlees toddlees merged commit 85eee73 into develop May 18, 2022
@toddlees toddlees deleted the feature/230-group-B-transactions branch May 18, 2022 18:28
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.

2 participants