source-google-sheets: do not consume http spreadsheets (#22884)
* source-google-sheets: do not consume http spreadsheets * source-google-sheets: do not consume http spreadsheets * update tests * table format * auto-bump connector version --------- Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
This commit is contained in:
@@ -728,7 +728,7 @@
|
||||
- name: Google Sheets
|
||||
sourceDefinitionId: 71607ba1-c0ac-4799-8049-7f4b90dd50f7
|
||||
dockerRepository: airbyte/source-google-sheets
|
||||
dockerImageTag: 0.2.31
|
||||
dockerImageTag: 0.2.32
|
||||
documentationUrl: https://docs.airbyte.com/integrations/sources/google-sheets
|
||||
icon: google-sheets.svg
|
||||
sourceType: file
|
||||
|
||||
@@ -6044,7 +6044,7 @@
|
||||
oauthFlowOutputParameters:
|
||||
- - "access_token"
|
||||
- - "refresh_token"
|
||||
- dockerImage: "airbyte/source-google-sheets:0.2.31"
|
||||
- dockerImage: "airbyte/source-google-sheets:0.2.32"
|
||||
spec:
|
||||
documentationUrl: "https://docs.airbyte.com/integrations/sources/google-sheets"
|
||||
connectionSpecification:
|
||||
|
||||
@@ -34,5 +34,5 @@ COPY google_sheets_source ./google_sheets_source
|
||||
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
|
||||
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
|
||||
|
||||
LABEL io.airbyte.version=0.2.31
|
||||
LABEL io.airbyte.version=0.2.32
|
||||
LABEL io.airbyte.name=airbyte/source-google-sheets
|
||||
|
||||
@@ -199,7 +199,7 @@ class Helpers(object):
|
||||
|
||||
@staticmethod
|
||||
def get_spreadsheet_id(id_or_url: str) -> str:
|
||||
if re.match(r"(http://)|(https://)", id_or_url):
|
||||
if re.match(r"(https://)", id_or_url):
|
||||
# This is a URL
|
||||
m = re.search(r"(/)([-\w]{40,})([/]?)", id_or_url)
|
||||
if m is not None and m.group(2):
|
||||
|
||||
@@ -236,15 +236,11 @@ class TestHelpers(unittest.TestCase):
|
||||
result = Helpers.get_spreadsheet_id(test_url)
|
||||
self.assertEqual("18vWlVH8BfjGa-gwYGdV1BjcPP9re66xI8uJK25dtY9Q", result)
|
||||
|
||||
test_url = "http://docs.google.com/spreadsheets/d/18vWlVH8BfjGegwY_GdV1BjcPP9re_6xI8uJ-25dtY9Q/"
|
||||
test_url = "https://docs.google.com/spreadsheets/d/18vWlVH8BfjGegwY_GdV1BjcPP9re_6xI8uJ-25dtY9Q/"
|
||||
result = Helpers.get_spreadsheet_id(test_url)
|
||||
self.assertEqual("18vWlVH8BfjGegwY_GdV1BjcPP9re_6xI8uJ-25dtY9Q", result)
|
||||
|
||||
test_url = "http://docs.google.com/spreadsheets/d/18vWlVH8BfjGegwY_GdV1BjcPP9re_6xI8uJ-25dtY9Q/#"
|
||||
result = Helpers.get_spreadsheet_id(test_url)
|
||||
self.assertEqual("18vWlVH8BfjGegwY_GdV1BjcPP9re_6xI8uJ-25dtY9Q", result)
|
||||
|
||||
test_url = "http://docs.google.com/spreadsheets/d/18vWlVH8BfjGegwY_GdV1BjcPP9re_6xI8uJ-25dtY9Q"
|
||||
test_url = "https://docs.google.com/spreadsheets/d/18vWlVH8BfjGegwY_GdV1BjcPP9re_6xI8uJ-25dtY9Q/#"
|
||||
result = Helpers.get_spreadsheet_id(test_url)
|
||||
self.assertEqual("18vWlVH8BfjGegwY_GdV1BjcPP9re_6xI8uJ-25dtY9Q", result)
|
||||
|
||||
|
||||
@@ -76,10 +76,11 @@ The [Google API rate limit](https://developers.google.com/sheets/api/limits) is
|
||||
|
||||
| Version | Date | Pull Request | Subject |
|
||||
| ------- | ---------- | -------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
||||
| 0.2.32 | 2023-02-13 | [22884](https://github.com/airbytehq/airbyte/pull/22884) | Do not consume http spreadsheets. |
|
||||
| 0.2.31 | 2022-10-09 | [](https://github.com/airbytehq/airbyte/pull/) | Revert 'Add row_id to rows and use as primary key' |
|
||||
| 0.2.30 | 2022-10-09 | [](https://github.com/airbytehq/airbyte/pull/) | Add row_id to rows and use as primary key |
|
||||
| 0.2.21 | 2022-10-04 | [15591](https://github.com/airbytehq/airbyte/pull/15591) | Clean instantiation of AirbyteStream |
|
||||
| 0.2.20 | 2022-10-10 | [17766](https://github.com/airbytehq/airbyte/pull/17766) | Fix null pointer exception when parsing the spreadsheet id. |
|
||||
| 0.2.20 | 2022-10-10 | [17766](https://github.com/airbytehq/airbyte/pull/17766) | Fix null pointer exception when parsing the spreadsheet id. |
|
||||
| 0.2.19 | 2022-09-29 | [17410](https://github.com/airbytehq/airbyte/pull/17410) | Use latest CDK. |
|
||||
| 0.2.18 | 2022-09-28 | [17326](https://github.com/airbytehq/airbyte/pull/17326) | Migrate to per-stream states. |
|
||||
| 0.2.17 | 2022-08-03 | [15107](https://github.com/airbytehq/airbyte/pull/15107) | Expose Row Batch Size in Connector Specification |
|
||||
|
||||
Reference in New Issue
Block a user