-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add KingfisherTransformMiddleware and update affected spiders #572
Merged
Merged
Changes from 2 commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
ab77692
Add KingfisherTransformMiddleware and update affected spiders
yolile c047506
Merge branch 'master' of github.com:open-contracting/kingfisher-colle…
yolile 36b1935
Apply suggestions from code review
yolile 5972690
Changes from code review
yolile d210d45
Merge branch '329-data-types' of github.com:open-contracting/kingfish…
yolile 437cf93
Update CompressedFileSpider tests
yolile 9a3d67a
Reorder if-else condition
yolile 3453b87
Change root_path to '' by default and update transform middleware's c…
yolile fedba70
Add *_package_list correct handle and sample skip
yolile 3d056df
Add transform middleware tests
yolile ca1191f
Add root_path documentation
yolile a0beebc
Update compressed file tests
yolile b5b67c2
Set item data type in digiwhist items
yolile 999b6ff
Fix bolivia data_type
yolile 6204f65
Update middleware docs and json array keys
yolile 5b793fa
Limit the number of releases inside a package according to sample size
yolile 2d7679c
docs: Clarify some docstrings and comments
jpmckinney 4e5fa27
docs: Clarify some comments
jpmckinney d994500
Merge branch 'master' of github.com:open-contracting/kingfisher-colle…
yolile a815b00
Merge branch 'master' of github.com:open-contracting/kingfisher-colle…
yolile 32341d9
Merge branch 'master' of github.com:open-contracting/kingfisher-colle…
yolile fd62583
Add separate KingfisherTransformCompressedMiddleware
yolile bb03bf6
KingfisherTransformMiddleware refactor
yolile fe7ca72
Remove spider.format_file and use compressed_file_format instead
yolile 55b52b7
Update KingfisherTransform*Middleware tests
yolile 2b90f2d
Merge branch '329-data-types' of github.com:open-contracting/kingfish…
yolile 62eed8d
Merge branch 'master' of github.com:open-contracting/kingfisher-colle…
yolile ad5c538
isort
jpmckinney 61b28a9
Separate KingfisherTransform Middleware in one per step
yolile 9a8bd18
Merge branch '329-data-types' of github.com:open-contracting/kingfish…
yolile 2819b5a
Merge branch 'master' of github.com:open-contracting/kingfisher-colle…
yolile d960f69
isort
yolile 1e4483f
Eliminate post_to_api, since we no longer write files without posting…
jpmckinney 4bb3ca4
base_spider: Use clearer variable names than data and data_to_ret
jpmckinney 4949af7
Merge master into 329-data-types
jpmckinney f5c6241
settings: Document spider middleware priority order
jpmckinney 2e04bc4
Add UnknownArchiveFormat exception. Get tests passing after merge.
jpmckinney b0922f3
Rename UnknownArchiveFormat to UnknownArchiveFormatError
jpmckinney 95b7e15
tests: Add assertions to test_compressed_file_spider.py
jpmckinney 269a09e
Fix typo in b0922f35b6557d972c4eb6bc4db2659a651a7180
jpmckinney e8b5a7d
tests: Parametrize a test
jpmckinney efca5aa
Change `compressed_file_format = 'json_lines'` to `line_delimited = T…
jpmckinney d0dd96d
base_spider: Replace data_pointer with root_path, closes #573
jpmckinney 7be3e8b
flake8, isort
jpmckinney a24ef5a
tests: Rename test method since original method was renamed
jpmckinney b2beb4d
Fix KingfisherTransformRootPathMiddleware to not yield duplicate items
jpmckinney b05d0e8
georgia_opendata: Remove compressed_file_format, since the ZIP contai…
jpmckinney d659d62
tests: Rename ExpectedError to TestError to avoid pytest warning
jpmckinney a3692d0
middlewares: Abbreviate class names
jpmckinney 4d8daeb
base_spider: Rename compressed_file_format string to resize_package b…
jpmckinney c35c105
tests: Split tests to be more atomic
jpmckinney 21ba2aa
base_spider: Add a note that resize_package isn't compatible with lin…
jpmckinney 61157e6
middlewares: Fix comment (ResizePackageMiddleware doesn't support rec…
jpmckinney 2189b5e
base_spider: Merge PeriodicSpider.get_default_until_date into BaseSpi…
jpmckinney 0e84813
spiders: Add comments so that it is easier to reconcile which class a…
jpmckinney 9399603
honduras_portal_base: Remove unused next_pointer
jpmckinney d84df8f
spiders, docs: Document and apply order for class attributes
jpmckinney c00a78f
autopep8
jpmckinney e9e1a51
extensions: KingfisherFilesStore: Put the number after the file name
jpmckinney a263be1
crawlall: Remove exception for CompressedFileSpider, closes #471
jpmckinney 79d18cf
middlewares: Fix variable name to align with comment
jpmckinney 6f40453
tests: Removed unnecessary response_mock
jpmckinney 66af007
flake8
jpmckinney File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need both
file_format
andcompressed_file_format
or can we collapse them?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added that just for
digiwhist_base
that currently doesn't extend fromCompressedFileSpider
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, we can maybe look at combining them in a follow-up PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow-up issue is here: #574
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpmckinney I ended up removing it now