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

Tdl 15582 check best practices #78

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

prijendev
Copy link
Contributor

Description of change

  • Added following below integration tests
    • Start Date Test
    • Pagination Test
    • Automatic Fields Test
    • All Fields Test
    • Bookmark Test
    • Discovery Test

Manual QA steps

Risks

Rollback steps

  • revert this branch

test/base.py Outdated Show resolved Hide resolved
test/base.py Outdated Show resolved Hide resolved
test/base.py Outdated
Comment on lines 118 to 122
"ticket_metrics": {
self.PRIMARY_KEYS: {"id"},
self.REPLICATION_METHOD: self.INCREMENTAL,
self.REPLICATION_KEYS: set()
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Also invalid

Copy link
Contributor Author

@prijendev prijendev Nov 9, 2021

Choose a reason for hiding this comment

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

ticket_comments is child stream of tickets, and tickets is incremental stream. But ticket_comments does not save its own bookmark. It fetches records based on the record of the parent stream. That's why it is incremental but does not have a replication key.

test/base.py Outdated
Comment on lines 133 to 137
"ticket_audits": {
self.PRIMARY_KEYS: {"id"},
self.REPLICATION_METHOD: self.INCREMENTAL,
self.REPLICATION_KEYS: set()
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Also invalid

Copy link
Contributor Author

@prijendev prijendev Nov 9, 2021

Choose a reason for hiding this comment

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

ticket_comments is child stream of tickets, and tickets is incremental stream. But ticket_comments does not save its own bookmark. It fetches records based on the record of the parent stream. That's why it is incremental but does not have a replication key.

test/base.py Outdated Show resolved Hide resolved
test/test_start_date.py Outdated Show resolved Hide resolved
test/test_start_date.py Outdated Show resolved Hide resolved
test/test_standard_bookmark.py Show resolved Hide resolved
test/test_standard_bookmark.py Outdated Show resolved Hide resolved
test/test_standard_bookmark.py Outdated Show resolved Hide resolved
@dbshah1212 dbshah1212 requested a review from kspeer825 November 9, 2021 10:57
Copy link
Contributor

@kspeer825 kspeer825 left a comment

Choose a reason for hiding this comment

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

I resolved the comments where changes looked good, and followed up on the others.

@dbshah1212 dbshah1212 requested a review from kspeer825 November 10, 2021 12:40
Copy link
Contributor

@kspeer825 kspeer825 left a comment

Choose a reason for hiding this comment

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

Tests are good, thanks 👍

@dbshah1212 dbshah1212 mentioned this pull request Nov 11, 2021
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.

5 participants