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

[To Feature ] DESENG-511: Survey translation model #2406

Conversation

ratheesh-aot
Copy link
Collaborator

Issue #: https://apps.itsm.gov.bc.ca/jira/browse/DESENG-511

Description of changes:
A survey translation model added

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the met-public license (Apache 2.0).

@ratheesh-aot ratheesh-aot requested a review from Baelx March 5, 2024 23:39
Copy link

sonarqubecloud bot commented Mar 5, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Contributor

@NatSquared NatSquared left a comment

Choose a reason for hiding this comment

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

Looks good! Consider using the premade BaseModel.save() method where relevant

'form_json'
), # Returns `None` if 'form_json' is not in `data` as its optional
)
db.session.add(survey_translation)
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be survey_translation.save() instead, a method inherited from the BaseModel

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks @NatSquared . Will follow that.

@ratheesh-aot ratheesh-aot merged commit 94a53bf into bcgov:DESENG-511-SurveyTranslation-Final Mar 7, 2024
1 check passed
ratheesh-aot added a commit that referenced this pull request Mar 8, 2024
* DESENG-511: Survey translation model (#2406)

* DESENG-511: Adding API for survey translation

* DESENG-511 : Added Unit test Survey translation

* DESENG-511: Fixed the review comment

* DESENG-511: Fixing lint

* Updaed Changelog

* DESENG-511: Fixing Review comments
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