Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(BUX-685): sql-injection safe filters #531

Merged
merged 3 commits into from
Apr 5, 2024

Conversation

chris-4chain
Copy link
Contributor

Pull Request Checklist

  • πŸ“– I created my PR using provided : CODE_STANDARDS
  • πŸ“– I have read the short Code of Conduct: CODE_OF_CONDUCT
  • 🏠 I tested my changes locally.
  • βœ… I have provided tests for my changes.
  • πŸ“ I have used conventional commits.
  • πŸ“— I have updated any related documentation.
  • πŸ’Ύ PR was issued based on the Github or Jira issue.

@chris-4chain chris-4chain requested a review from a team as a code owner April 5, 2024 07:05
Copy link

github-actions bot commented Apr 5, 2024

Manual Tests

ℹ️ Remember to ask team members to perform manual tests and to assign tested label after testing.

engine/action_destination_test.go Show resolved Hide resolved
applyConditionsIfNotNil(conditions, "created_at", mf.CreatedRange.ToDbConditions())
applyConditionsIfNotNil(conditions, "updated_at", mf.UpdatedRange.ToDbConditions())

if mf.IncludeDeleted == nil || !*mf.IncludeDeleted {
Copy link
Contributor

Choose a reason for hiding this comment

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

If we have 2 records. One active and second is deleted. With this condition we can get one of them or both ?

Copy link
Contributor Author

@chris-4chain chris-4chain Apr 5, 2024

Choose a reason for hiding this comment

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

As the IncludeDeleted field says:
When we have two records: deleted-record and normal-record

  • when IncludeDeleted is set to true - we'll get deleted-record and normal-record
  • when IncludeDeleted is nil or is set to false - we'll get only normal-record

@Nazarii-4chain Nazarii-4chain merged commit 34e270e into BUX-685/SqlInjectionStatic Apr 5, 2024
2 of 3 checks passed
@Nazarii-4chain Nazarii-4chain deleted the feat-filters branch April 5, 2024 10:23
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants