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

Refactor DB as document store, add Postgres, remove mongo #9176

Merged
merged 269 commits into from
Sep 17, 2024
Merged

Conversation

eelcovdw
Copy link
Contributor

Description

Please include a summary of the change, the motivation, and any additional context that will help others understand your PR. If it closes one or more open issues, please tag them as described here.

Affected Dependencies

List any dependencies that are required for this change.

How has this been tested?

  • Describe the tests that you ran to verify your changes.
  • Provide instructions so we can reproduce.
  • List any relevant details for your test configuration.

Checklist

@abyesilyurt abyesilyurt mentioned this pull request Aug 15, 2024
4 tasks
try:
value = getattr(obj, attr)
except Exception as e:
if raise_errors:
Copy link
Collaborator

Choose a reason for hiding this comment

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

when would you not want to do this?

Copy link
Contributor Author

@eelcovdw eelcovdw Sep 16, 2024

Choose a reason for hiding this comment

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

searchable attrs can be @property methods, and those can throw errors. Example: Job.code_id was throwing errors when the Job was for a twinAPI. This flag is to control this behaviour, 'do i want to skip writing if some method throws an error'

we're using raise_errors=False right now to just skip searchable properties that hit an exception

@koenvanderveen koenvanderveen changed the title SQL JSON Refactor DB as document store, add Postgres, remove mongo Sep 16, 2024
@eelcovdw eelcovdw merged commit ed78b29 into dev Sep 17, 2024
38 checks passed
@eelcovdw eelcovdw deleted the aziz/sql_json branch September 17, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants