1
0
mirror of synced 2025-12-25 11:06:55 -05:00
Commit Graph

9201 Commits

Author SHA1 Message Date
Jimmy Ma
ff1ebb0e0a Improve performance of list connection operations (#20264)
* Enable source/destination filtering in /web_backend/connection/list

* Add tests on connection filtering

* Remove redundant DB call

* Make some methods static to avoid sneaky db calls

* Minor refactor

* Small refactoring + add filtering by source for catalog fetch events

* Add comment

* Trim WebBackendConnectionList response payload

* fix build errors

* Remove requests to list_by_workspace and list_latest

* Add sourcedefid and destdefid to source/dest snippets read

* fixed sourceDefinitionId and destinationDefinitionId

* Fix webbackend handler tests

Co-authored-by: Volodymyr Petrov <volodymyr.s.petrov@globallogic.com>
Co-authored-by: KC <krishna@airbyte.io>
2023-01-03 13:54:44 -08:00
Anne
dddaad5df2 Remove configRepo dependencies (#20690)
* Use ConnectionApi to fetch source ID (#20670)
2023-01-03 21:53:37 +00:00
Jimmy Ma
9dc418929b Fix copySecrets for top level oneOfs (#20848) 2023-01-03 21:36:17 +00:00
Xiaohan Song
4eca4a4302 OSS changes to support acceptance test on data plane (#20853)
* addlog

* fix applicaion.yml

* remove logging

* var name for boolean

* test setup

* test

* more fix for testing

* self review

* remove unrelated changes

* remove unwanted cdk changes

* more clean ups
2023-01-03 13:34:27 -08:00
Krishna (kc) Glick
b776a2d9f6 Use the new get out of date connectors endpoint (#20155)
* Add /v1/web_backend/check_updates

* Add constant for fallback cases

* Uses the new get out of date connectors endpoint

* Move connector service to its own file. Invalidate count on version change.

* Better upgrade all functionality

* Cleanup

Co-authored-by: Jimmy Ma <jimmy@airbyte.io>
2023-01-03 16:10:32 -05:00
Edmundo Ruiz Ghanem
a8e10245f2 Remove Transfer title from card in replication settings when new table is enabled (#20762) 2023-01-03 21:04:15 +00:00
Edmundo Ruiz Ghanem
526fe637ec Add cancelled status icon (#20774)
* Add cancelled state and update error to use crossicon instead of fontawesome

* Update cancelled icon to use fontawesome minus

* Show cancelled icon in connections job list and list table

* Update snapshots
2023-01-03 20:49:04 +00:00
Andrii Honcharenko
31f96cef76 build: added script that match github user to slack user/added action/changed workflow with user mentioning (#20815) 2023-01-03 22:41:18 +02:00
Jimmy Ma
04e6566527 Only add definitions updater cron when enabled (#20838)
* Only add definitions updater cron when enabled

* Remove unused property
2023-01-03 20:19:26 +00:00
Evan Tahler
177c13e6fc Store SQLs for Java source test datasets (#20955) 2023-01-03 12:07:47 -08:00
Teal Larson
9384c59a8e 🪟 🧹 Use custom arrow icon in the new Streams Table (#20678)
* update icon used in streams table and its headers

* wrap in arrowCell div
2023-01-03 15:04:20 -05:00
Jonathan Pearlin
a5fcbaa457 Ignore sigterm when closing source/destination (#20519)
* Ignore sigterm when closing source/destination

* Add tests
2023-01-03 14:32:00 -05:00
Edmundo Ruiz Ghanem
8c24158c14 🪟 🐛 Fix non-breaking schema changes preference issues (#20625)
* Add i18n for disabling the connection, limit supported preferences

* Remove custom style from NonBreakingChangsPreferenceField control label - not needed
2023-01-03 18:53:21 +00:00
Teal Larson
63446e6498 🪟 🐛 Focus Connection Name input on field selection (#20162)
* fix using autofocus

* see if this fixes e2e

* debug e2e

* cleanup
2023-01-03 18:10:52 +00:00
Jonathan Pearlin
8d658b76a5 Remove duplicate versions (#20979) 2023-01-03 12:34:44 -05:00
Jonathan Pearlin
a28f93747f Update to Micronaut 3.8.0 (#20716)
* Update to Micronaut 3.7.5

* Update to Micronaut 3.8.0 and corresponding dependencies
2023-01-03 12:22:29 -05:00
Jonathan Pearlin
c3987a9645 Skip validation when previous state is empty due to reset (#20585)
* Skip validation when previous state is empty due to reset

* Handle null state object

* Fix formatting

* Fix logic

* Fix method name
2023-01-03 12:17:59 -05:00
Jonathan Pearlin
4897e29525 Update to latest plugin (#20971) 2023-01-03 11:32:17 -05:00
Pedro S. Lopez
5bb3240dd1 fix: add HashMap import again (#20968) 2023-01-03 11:26:30 -04:00
Maxime Carbonneau-Leclerc
7685f5a3db [local airbyte cdk tests] update README.md to fix gradle command and support more docker images (#20821) 2023-01-03 10:18:23 -05:00
Joe Reuter
d7f4f46d36 🪟🐛 Connector form: Remove empty strings from form values for optional properties (#20808)
Remove empty strings from form values for properties without default
2023-01-03 15:23:02 +01:00
swyx
66696379cb [docs] airbyte dagster docs update (#20643)
Co-authored-by: Simon Späti <simon@airbyte.io>
2023-01-03 15:19:49 +01:00
Joe Reuter
3f0e117016 🪟🎉 Connector form: Use proper validation in array section (#20725)
* improve some types

* improve further

* clean up a bit more

* refactor loading state

* move loading state up

* remove isLoading references

* remove unused props and make fetch connector error work

* remove special component for name

* remove top level state for unifinished flows

* start removing uiwidget

* Update airbyte-webapp/src/views/Connector/ConnectorCard/ConnectorCard.module.scss

Co-authored-by: Tim Roes <tim@airbyte.io>

* remove undefined option for selected id

* remove unused prop

* fix types

* remove uiwidget state

* clean up

* adjust comment

* handle errors in a nice way

* do not respect default on oneOf fields

* rename to formblock

* reduce re-renders

* pass error to secure inputs

* simplify and improve styling

* align top

* code review

* remove comment

* review comments

* rename file

* be strict about boolean values

* add example

* track form error in error boundary

* review comments

* handle unexpected cases better

* enrich error with connector id

* rename prop

* use proper validation in array section

* fix test

* rename variable

Co-authored-by: Tim Roes <tim@airbyte.io>
2023-01-03 15:14:01 +01:00
Augustin
254714bde3 CDK: SingleUseRefreshTokenOauth2Authenticator update config with access tokens and expiration date (#20923) 2023-01-03 14:59:20 +01:00
Amruta Ranade
cae63965bd Deployment docs and sidebar cleanup (#20965) 2023-01-03 19:18:35 +05:30
Pedro S. Lopez
15689adcdb fix(oauth): dont convert config values to string when building consent url (#20932)
* fix: don't convert config values to strings

* tests

* add note
2023-01-03 09:25:44 -04:00
Pedro S. Lopez
c7f8e67ad6 fix(oauth): handle fields missing in the stored config when building consent url (#20933)
* fix: handle missing fields

* test
2023-01-03 09:25:25 -04:00
Akash Kulkarni
bac789e2cb Code cleanup in SourceOperations (#20874)
* Refactor SourceOperations class

* More cleanup

* Addressing comments

* Formatting
2023-01-03 03:09:48 -08:00
Joe Reuter
99905b2fd5 🪟🚨 Refactor connector form code (#20146)
* Remove uiWidgetsInfo state by finding the enum/const field defining the selected oneOf and adding it to the condition form block to check the selected value by looking at the formik state
* Only do default value calculation once before rendering the formik component the first time (remove PatchInitialValuesWithWidgetConfig hack)
* Build yup schema once by flattening the oneOf conditions into a single object and adding when conditions on the found condition key (remove RevalidateOnValidationSchemaChange hack)

The snowflake destination in version <=0.4.40 does not work together with the changes on this PR - existing connections will continue to work fine, but it's not possible to change the configuration. Please update the snowflake destination connector to 0.4.41.

oneOf properties not following the rules described in the documentation will stop working in the UI - the form will crash and a meaningful error is shown which also links to the documentation:
2023-01-03 10:49:36 +01:00
Alexandre Girard
2f2e530f40 [low-code] convert request.body to a dict when converting to AirbyteLogMessage (#20557)
* convert request body

* fix tests

* test body data

* more tests

* more tests

* _

* return stacktrace

* pretty print

* Revert "pretty print"

This reverts commit 091253803c.

* Revert "Revert "pretty print""

This reverts commit b6f62d645b.

* replace \n

* missing type hint
2023-01-03 01:45:36 -08:00
letiescanciano
74be2f8d77 🪟 🎉 Display "Credits" in sidebar and add info when user is running out of credits (#20595)
* 🪟 🎉 Display "Credits" in sidebar and add info when user is running out
of credits

Demo: https://www.loom.com/share/ca43d6b72dcc42208add0bd91e1b1efc
2023-01-03 10:06:30 +01:00
Augustin
8a429607c2 SAT: check for nullity of docker runner in previous_discovered_catalog (#20899) 2023-01-03 09:45:32 +01:00
Ryan Fu
64254a44f6 Destination Redshift: Introduces configurable value for file buffer count (#20879)
* Increased default buffer count and introduces configurable value for destination redshift

* Updates logic to ensure filebuffers are at minimum the default number

* Reverted changes to increase the file buffer default but allow for users to increase with adequate warnings

* Bumps version number and updates changelog

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2023-01-02 19:16:42 -08:00
Evan Tahler
2022f7d2a8 [faker] decouple stream state (#20492)
* [faker] decouple stream state

* add PR #

* commit Stream instantiate changes

* fixup expected record

* skip backward test for this version too

* Apply suggestions from code review

Co-authored-by: Augustin <augustin@airbyte.io>

* lint

* Create realistic datasets of 10GB, 100GB, and 1TB in size (#20558)

* Faker CSV Streaming utilities

* readme

* don't do a final pipe to jq or you will run out or ram

* doc

* Faker gets 250% faster (#20741)

* Faker is 250% faster

* threads in spec + lint

* pass tests

* revert changes to record helper

* cleanup

* update expected_records

* bump default records-per-slice to 1k

* enforce unique email addresses

* cleanup

* more comments

* `parallelism` and pass tests

* update expected records

* cleanup notes

* update readme

* update expected records

* auto-bump connector version

Co-authored-by: Augustin <augustin@airbyte.io>
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2023-01-02 18:04:44 -06:00
Joe Reuter
7033b1ea88 render input as number for type number (#20637) 2023-01-02 17:30:15 +01:00
Joe Reuter
1a237b7a86 change readme to use python command instead of pytest to run unit tests (#20867) 2023-01-02 17:28:19 +01:00
Joey Marshment-Howell
2a90345730 🪟 🎨 Fix typo in custom image modal 2023-01-02 16:24:49 +00:00
Joey Marshment-Howell
d71273d3d4 🪟 🔧 Refactor column selection callback (#20544) 2023-01-02 16:22:14 +00:00
Joe Reuter
2654e050dc Fix snowflake destination spec (#20566)
Fix spec to specify a const member for each possible object in a oneOf clause
2023-01-02 15:52:44 +01:00
Davin Chia
d95c06d357 Remove unused imports. (#20938) 2022-12-30 14:39:51 -08:00
Davin Chia
18593d91b5 Remove sneaky throws. (#20931)
The Java 19 toolchain doesn't like sneaky throws. Not entirely sure why. However, I think it's better practice to not use sneaky throws as it makes it clearer what is throw and where.

Example error message when trying to compile the current codebase with Java 19:

error: Error during the transformation of 'io.airbyte.validation.json.JsonSchemaValidatorTest'; post-compiler 'lombok.bytecode.SneakyThrowsRemover' caused an exception: java.lang.IllegalArgumentException: Unsupported class file major version 63
        at org.objectweb.asm.ClassReader.<init>(ClassReader.java:199)
        at org.objectweb.asm.ClassReader.<init>(ClassReader.java:180)
        at org.objectweb.asm.ClassReader.<init>(ClassReader.java:166)
        at lombok.bytecode.AsmUtil.fixJSRInlining(AsmUtil.java:37)
        at lombok.bytecode.SneakyThrowsRemover.applyTransformations(SneakyThrowsRemover.java:46)
        at lombok.core.PostCompiler.applyTransformations(PostCompiler.java:44)
        at lombok.core.PostCompiler$1.close(PostCompiler.java:87)
        at jdk.compiler/com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1508)
        at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:738)
2022-12-30 09:04:26 -08:00
Michael Siega
baf9d1144b tolerate missing source catalog used to make the configured catalog (#20928) 2022-12-29 15:42:36 -06:00
Davin Chia
2deac0f244 Prep for Java 19 Upgrade (#20911)
Upgrade all the necessary tooling dependencies to get us to Java 19.
2022-12-29 12:32:42 -08:00
github-actions[bot]
373cc84f74 Bump helm chart version reference to 0.43.13 (#20922)
Co-authored-by: xpuska513 <xpuska513@users.noreply.github.com>
2022-12-29 17:50:51 +02:00
Kyryl Skobylko
ee76bf052d fix template.labels (#20921) 2022-12-29 17:40:34 +02:00
github-actions[bot]
93cf33ef01 Bump helm chart version reference to 0.43.11 (#20918)
Co-authored-by: xpuska513 <xpuska513@users.noreply.github.com>
2022-12-29 16:42:59 +02:00
Kyryl Skobylko
8108f9c79a fix issues with extra labels feature (#20917) 2022-12-29 16:32:51 +02:00
Davin Chia
d98ddbbae7 Implement Progress Bar Persistence Read/Write (#20787)
Implement the persistence layer changes following #19191.

This PR handles writing and reading stats to the new stream stat_table and columns in the existing sync_stats table.

At the same time we introduce upserts of stats records - i.e. merge updates into a single record - in preparation for real time stats updates vs the current approach where a new stat record is always written.

There will be two remaining PRs after this:
- First PR will be to fully wire up and test the API.
- Second PR will be to actually save stats while jobs are running.
2022-12-28 13:47:42 -08:00
Davin Chia
54c0ef12b1 Add orchestrator label. (#20904)
Add the orchestrator label to orchestrators so we can better differentiate orchestrator pods.

This is useful since orchestrator pods are the only pods in the job namespace with a need to talk to the main Airbyte application pods. These labels allow us to apply more granular network filtering.

Also took the chance to do some clean up of labels.
2022-12-28 13:41:47 -08:00
Greg Solovyev
99335daca9 Refactor BigQuery Destination Integration tests (#20851)
* Refactor BigQuery Destination Integration tests
to reduce code duplication and move configuration
logic from code into config files.
This refactoring will make it easier to add more
test cases for configuration variations such as
data location, accounts with various permission combinations,
and account impersonation

* More refactoring

* fix typo

* Change secret file names to avoid conflict with current tests on master

* remove copy-pasted credential file paths

* more copu-pasta reduction
2022-12-28 15:37:33 -06:00